On page 117 of my ATmega328P datasheet the document clearly show the DDRB register with its corresponding bit names: DDRB7...DDRB0
Yet, when I input a code line in Studio7 , I get an indication that DDRB1 is not a valid constant name.
DDRB |= (1 << DDRB1) ; // an underscore appear on DDRB1 DDRB |= (1 << DDB1) ; // instead DDB1 seems to be the correct name
Also, if I open the DDRB file with "Goto Implementation" feature of Studio7, I find that , indeed, the iom328p.h file open and show the correct name for all DDRB bits are "DDB1"
So, I have to conclude that the Microchip Datasheet for the ATmega328P is wrong.
Is that a correct assumption ?
Or is the iom328p.h file wrong ?