On Sat, Mar 23, 2013 at 6:15 PM, Josh Koffman wrote: > Hi all, > > I've been trying to figure this out on my own, but so far I'm having > no luck at Microchip's site. I'm new to C programming, but I am > starting to pick up speed on my learning. I'd like to try some serial > comms, namely SPI, and possibly I2C with C. Are there libraries > available for XC (specifically XC8 for PIC18) that help with this? I > can't find any mention of them on Microchip's site, though it could be > the searches I've tried. I downloaded the XC8 user manual, but > couldn't find much in there either. > > I'm sure I've missed something obvious, but I'm at a loss. > If you install xc8, then there is a file called pic18_plib.pdf which has details for the PIC18 Peripheral Library. For example under my Mac OS X 10.7 xc8 1.12, there are quite a few files here. mymacmini:docs xiaofanc$ pwd /Applications/microchip/xc8/v1.12/docs mymacmini:docs xiaofanc$ ls Installing_And_Licensing_MPLAB_XC_C_Compilers_52059B.pdf MPLAB XC8 C Compiler License (v1 012512).doc RLM_Enduser.html XCLM_CommandLine.htm chips files license.txt manual.pdf pic18_chipinfo.html pic18_plib.pdf pic_chipinfo.html readme.pdf readme.txt rlm_enduser_images --=20 Xiaofan --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .