From: Manu <man...@gm...> - 2006-11-07 15:01:18
|
Hi We have a robot competition in Madrid, Spain. We try students make their robots and we use to teach a 18F442 based PCB and MPLAB and C18 compiler to build proyects in C. I was looking for a new way to do this in linux systems and I discovered SDCC :-) I didn't find enought information of functions that I can use in SDCC. I know I can use TRIS, PORT for example, but I don't know how to find the funcitons to use for adc, delays. etc. I can suppose some of them, but I need a complete reference of the libraries. I read the documentation installed and i didn't find clear answer for these questions. Anyone help me? Manuel. |
From: Raphael N. <rn...@we...> - 2006-11-07 15:20:05
|
Hi Manu, > I was looking for a new way to do this in linux systems and I > discovered SDCC :-) I didn't find enought information of functions > that I can use in SDCC. I know I can use TRIS, PORT for example, but I > don't know how to find the funcitons to use for adc, delays. etc. I Some code for accessing built-in I/O (ADC, I2C, USART) can be found in and below device/lib/pic16/libio/ in the SDCC source package. To link them into your project, add libio18f442.lib to the (gplink) command line (possibly by adding '-l libio18f442.lib' to the sdcc command line). > can suppose some of them, but I need a complete reference of the > libraries. I read the documentation installed and i didn't find clear > answer for these questions. Sorry, documentation is--as so often--rather scarce. "Use the source." The PIC libraries are not (yet?) soooooo large as to make this approach unfeasible. > Anyone help me? Not sure, did I? ;-) Regards, Raphael |
From: Manu <man...@gm...> - 2006-11-09 17:48:47
|
Thank you all for your answers :-) Well, I made my first program! But I have a new problem now. I know it is not exactly a topic of this mailing-list, but... I have a XUbuntu, and I am trying to program a 18F442. I tried to install PikDev and PikLab, but it was impossible without KDE. Do you know a good programmer for family 18Fxxx? Thank you, Manuel. |