Page 1 of 1

Minor error in help file on accessing individual bits

Posted: 18 Nov 2008 17:54
by sadavis80
The help file says
HELP FILE (Accessing Individual Bits) wrote: Also, you can simply use the direct member selector (.) with a variable, followed by one of identifiers B0, B1, … , B7 with B7 being the most significant bit:

// Clear bit 0 on PORTA
PORTA.0 = 0;
If I use 'PORTA.3 = 1' in code, the compiler gives error.
35 399 ; expected, but '.3' found Timer1 interrupt DF.c

If I use 'PORTA.B3 = 1', (or 'PORTA3 = 1' as indicated in help file), then compiler says OK and compiles correctly.

Steve

Posted: 20 Nov 2008 10:26
by filip
Thank you for reporting this error.
It will be fixed.