> 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 > It's case sensitive, and I think it should be: SPI1STATbits.SPIEN = 1; //enable SPI1 Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist