Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Problem with timer in Bascom 2.0.8.0

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

Bascom Member



Joined: 27 Jul 2017
Posts: 1

PostPosted: Thu Jul 27, 2017 7:23 am    Post subject: Problem with timer in Bascom 2.0.8.0 Reply with quote

Hi,
I've recently upgraded to version 2.0.8.0. One of the programs I've successfully used for XM16A4 in the previous Bascom version, stopped working. If I program the chip with the HEX file compiled with the old version of Bascom, it works perfectly; but, when I program the file compiled with the new version, it does not work.
I've realized one issue is with the timer, TCC1_CNT always shows 0. Any idea about the reason and how to solve this problem?

Config TcC1 = Normal , Prescale = 1024
Do
var=TCC1_CNT
print #4, var
waitms 100
Loop


Why TCC1_CNT is always 0 here? Do I need to add any command to start the timer or...

Thanks,

(BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 )
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