Minor error in help file on accessing individual bits

Beta Testing discussion on mikroC PRO for AVR.
Post Reply
Author
Message
sadavis80
Posts: 114
Joined: 15 Nov 2008 19:27

Minor error in help file on accessing individual bits

#1 Post by sadavis80 » 18 Nov 2008 17:54

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

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

#2 Post by filip » 20 Nov 2008 10:26

Thank you for reporting this error.
It will be fixed.

Post Reply

Return to “mikroC PRO for AVR Beta Testing”