If you write a BASIC program for an ATmega328pb and use the HWI2C instructions, an assembly error occurs. This happens because the register names in the ATmega328pb's chip data differ from those of other microcontrollers (e.g., ATmega328p).
The error can be fixed by inserting a script like this into the hwi2c.h file:
Hi,
If you write a BASIC program for an ATmega328pb and use the HWI2C instructions, an assembly error occurs. This happens because the register names in the ATmega328pb's chip data differ from those of other microcontrollers (e.g., ATmega328p).
The error can be fixed by inserting a script like this into the hwi2c.h file:
Cheers
Great change. I will add the master HWI2C.h now.
I have added this. It is a faster method.
Evan
I did miss testing IC2 in the 328pb. Here is what was formally tested.
ATMEGA328pb_boards
https://github.com/GreatCowBASIC/Demonstration_Sources/tree/main/Vendor_Boards/ATMEGA328pb_boards