Hi, I am trying to store some constants in flash memory of TINY10 and use them.
- Studio 5 latest version
unsigned char current_comp PROGMEM=
In the main function, I put the following codes to use those constants.
OCR0A = pgm_read_byte(&(current_comp));
Then, I got the following erros when ran compiler.
- illegal opcode lpm for mcu attiny10
- register number above 15 required
Any helps on this matter would be appreciated. Thanks!