Posted: Sat May 08, 2021 5:59 pm Post subject: Atxtiny1616
Hi,
attached programme shows a lot off errors:
Error : 117 Line : 14 Unknown interrupt [PINC.3]
Error : 86 Line : 20 Invalid parameter for CONFIG parameter or value [IDLE]
Error : 86 Li[ne : 20 Invalid parameter for CONFIG parameter or value [IDLE]
Error : 372 Line : 20 SE entry missing in DAT file
Error : 124 Line : 20 LOOP expected
Who can give me a hand? Thanks in advance.
Best regards
interrupt : 'On Pinc.3 Isr_portc does not exist.
this should be : On Portc_int Isr_portc
writing to PIN register can be done since it is a register, but it is intended for reading. so it will not do much.
On some AVR chips writing to PIN will toggle the PORT. Not so on Xtiny.
So best use the PORT register for this.
config powermode seems to have a bug for xtiny.
but you an simply use a work around :
Code:
SLPCTRL_CTRLA=1
!sleep
for IDLE you write a 1
for STANDBY you write 3
and for powerdown you write 5 _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum