Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Help simulate timer0 with bascom avr

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
al

Bascom Member



Joined: 29 Jun 2004
Posts: 7

PostPosted: Tue Sep 14, 2004 8:21 am    Post subject: Help simulate timer0 with bascom avr Reply with quote

Hello,
wenn i sim the code:

Config Timer0 = Timer , Prescale = 1024

'Define the ISR handler
On Ovf0 Tim0_isr
'you may also use TIMER0 for OVF0, it is the same

Enable Timer0 ' enable the timer interrupt
Enable Interrupts 'allow interrupts to occur
Do
'your program goes here
Loop

'the following code is executed when the timer rolls over
Tim0_isr:
Print "*";
Return

End


with the mega8535 with bacom sim it works fine (the sim print ****)
with the mega16 the sim works no (the sim print nothing)
bug in simulator?
please help
Bascom 1.11.7.4
Back to top
View user's profile
Frankeman

Bascom Member



Joined: 11 Aug 2004
Posts: 948
Location: the Netherlands

netherlands.gif
PostPosted: Tue Sep 14, 2004 10:17 pm    Post subject: Reply with quote

I tested all the chips with your program, and i can comfirm that only the M16 don't respond to an interrupt in the simulator.

So Mark (the developer of Bascom) has to jump in at this point.

Frank.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive 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