Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

AVR128DB28 Timer TCA and TCB

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

Bascom Member



Joined: 15 Oct 2004
Posts: 534

philippines.gif
PostPosted: Tue Jan 18, 2022 9:14 am    Post subject: AVR128DB28 Timer TCA and TCB Reply with quote

Hi,

I am studying if I should take the plunge into the AVR DB family, more particularly the AVR128DB28 which has a DIP28 configuration available. Digging through the datasheet, it appears the timers/counters are quite different. It has 1-16 bit TCA timer and 3-16Bit TCB timers. Reading through the datasheet several times, I still cannot figure out if the TCB can function as normal timer/counter mode, meaning counting external event from an input pin like the other AVRs. I read that TCA can the normal timer function but am really confused with the TCB functions as a normal timer/counter.

Thank you for any assistance.

Albert

[b][color=red](BASCOM-AVR version : 2.0.8.5 )[/b][/color]
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5915
Location: Holland

blank.gif
PostPosted: Tue Jan 18, 2022 9:43 am    Post subject: Reply with quote

TCB can not take a pin input directly. but it can take input from the event system. and you can configure an event for a pin change.
in the evsys you have generators of events. for example the PORTx.

And timer TCB is an event user. you can have a count on event (edge)
while more work to configure the beauty is that it is handled without the processor.

DB is more like a new Xmega. Some times with less features, other times with more.

_________________
Mark
Back to top
View user's profile Visit poster's website
ATIU

Bascom Member



Joined: 15 Oct 2004
Posts: 534

philippines.gif
PostPosted: Tue Jan 18, 2022 7:35 pm    Post subject: Reply with quote

Hi Mark,

Thanks for clarifying and will look forward to receiving the AVR DB to play with.

Albert
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