All, I'm delving into embedded C with MPLAB and have what are probably some basic questions. In my .c file, I have #included p24HJ256GP206.h. However, the C statement: SPI1STATBITS.SPIEN = 1; //enable SPI1 is generating a compile time error: error: syntax error before '.' token and I can't figure out why. (It used to generate an undeclared identifier error, so I know that I'm at least getting close.) What simple step did I overlook when writing this code? Thanks -Matthew -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist