Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Atxtiny1616

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
2New

Bascom Member



Joined: 11 Feb 2007
Posts: 25

blank.gif
PostPosted: Sat May 08, 2021 5:59 pm    Post subject: Atxtiny1616 Reply with quote

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

(BASCOM-AVR version : 2.0.8.3 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5207
Location: Holland

blank.gif
PostPosted: Sat May 08, 2021 8:06 pm    Post subject: Reply with quote

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
Back to top
View user's profile Visit poster's website
2New

Bascom Member



Joined: 11 Feb 2007
Posts: 25

blank.gif
PostPosted: Sun May 09, 2021 7:21 am    Post subject: ATxtiny1616 Reply with quote

Hi Mark.
Thanks a lot. Good help.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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