How many Xmega timers?

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

According to the ATxmega128A1 datasheet we are supposed to have "Eight 16-bit Timer/Counters" however I can only see definitons for TCC0 and TCC1 in the ATxmega128A1def.inc.

I can see that timer 0 can be split into 2 8 bit timers but maybe not timer1??

Also if we use the timers as 32 bit timer then we only have a total of 1 32bit timer. :roll:

I only really need 1 16 bit timer and 2 8 bit timers so that would still be ok, how do we account for the eight 16-bit Timer/Counters?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
I can only see definitons for TCC0 and TCC1 in the ATxmega128A1def.inc.

Search in the file for TCD0,TCD1,TCE0,TCE1,TCF0 and TCF1.

Ozhan KD
Knowledge is POWER

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I see thanks! :-)

This is what they mean by "closely related peripheral modules", I was only looking at TCCx because the Mega range has that notation for the timers.

I'll see if I can burts a few more neurons on these.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is one of the things the device-specific datasheets are good for. For example, the A4U datasheet gives an overview of the timer/counters and at the very end of the overview says

Quote:
PORTC and PORTD each has one Timer/Counter 0 and one Timer/Counter1. PORTE has one
Timer/Conter0. Notation of these are TCC0 (Time/Counter C0), TCC1, TCD0, TCD1 and TCE0,
respectively.

Annoyingly, this usually comes at the end of the overview, as opposed to enumerating them in the features list.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For timers, I use the "Preliminary" manual and the "Pinout & Pin Function" section to get me going, esp. if I need to do PWM.

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In this case the timers are not touching any pins, that's why I didn't even think of looking at anything but TCCx which is the case with the Mega chips. :-)

....almost at the top of the hill now...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does it take to change an LED?

Four legs good, two legs bad, three legs stable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

?? :roll: Huh?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
?? :roll: Huh?

How many Xmega timers does it take to change an LED?

Four legs good, two legs bad, three legs stable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

How many Xmega timers does it take to change an LED?

Oh great minds. When I first saw the title of this thread I thought it was going to be some kind of hi-tech changing lightbulb joke!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Me? A joker? :roll: .......

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly