TYPE A, TYPE B and TYPE D TIMERS?

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

Has anyone seen a write up about the differences between TYPE A , TYPE B and TYPE D TIMERS. These types are on the Ttiny series 1 MCUs.  Looks like soon to be on the New ATmega mcus.

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

One thing I noticed is they have different power consumption:

 

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

I had the impression that type D timer is made from type D flip-flop:

https://en.wikipedia.org/wiki/Flip-flop_(electronics)

 

But it's probably wrong. And I want to find out. Search with "type D counter", not "timer"

Last Edited: Mon. Feb 19, 2018 - 12:02 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, type D timer is just a name for one of the timer types inside the xtiny MCU family. You can learn what it is in the datasheet: http://ww1.microchip.com/downloa...

 

It doesn't mean it's made of type D flip-flops. I'm sure it has quite a few flip-flops inside, but the internal structure is known only to the manufacturer.

 

edit: Since it is a 12 bit counter, it has at least 12 flip-flops organized as a ripple counter.

Last Edited: Mon. Feb 19, 2018 - 02:28 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Miau wrote:
I had the impression that type D timer is made from type D flip-flop

Where did you get that impression ??

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From d'sheet

 

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

...and the following subsections have a summary.

 

But, like I think OP is asking for, it might be very nice to have a feature comparison chart.  A bit of a comparison here https://jaycarlson.net/pf/atmel-... but it really ends up to be a summary of the Overview sections.

 

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Is it too soon for Micomel to have some app notes for these new toys I wonder? It's in those you might usually expect to see something arguing the relative merits of each type. As we know from past discussion the datasheet isn't there as a tutorial. Just to present the facts. It's up to the reader to determine the why's and wherefore's.

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

When looking for current datasheets for any of the Atmel devices, now Microchip devices, make sure to go directly to the top of the Microchip.com page and perform a device search via the search field.

 

You will find all documentation on the product page.​

 

ATtiny817 - Product Page - http://www.microchip.com/wwwproducts/en/attiny817

 

ATtiny417/817 - Complete Datasheet - http://ww1.microchip.com/downloads/en/DeviceDoc/40001901B.pdf

 

ATtiny1614/ATtiny1616/ATtiny1617 Datasheet ​ - http://ww1.microchip.com/downloads/en/DeviceDoc/40001893B.pdf

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Mon. Feb 19, 2018 - 05:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have started a table, all from Datasheets.  Also the Jay Carlson article:

 

Characteristics of TIMERS  on the ATtiny Series 1 (417,917,1617)

        TCA                                                  TCB                                                                          TCD
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Size of counter          ========================================================================

        16 or (two x 8)                                16 (8 in PWM mode)                                                 12

Power consumption    ============================================================================

        12.5uA                                            7.4uA                                                                        NDS (not in Datasheet)

 

Conditions:   1mHz CPU Clock, 3v.   Note:  The power consumption of the System active mode, with peripherals inactive,at 20mHz, 5v is 10.2mA, while at 1mHz, 5v it's 360uA (28X increase from 1mHz to 20mHz).  If the same scaling:

        350uA (guess)                              207uA (guess)

Input clock    ==================================================================================

        CLK_PER                                         CLK_PER                                                                    MAIN_CLK
        EVENT SYSTEM                                CLK_TCA (Prescaled)                                                 CLK_PER
                                                               EVENT SYSTEM                                                           EXTERNAL CLOCK

Prescaler    ==================================================================================

        CLK_PER/                                        CLK_PER/ (1,2)                                                          ALL CLOCKS/
        (1,2,4,8,16,64,256,1024)                CLK_TCA                                                                    (1,2,4,8,16,32,64,128,256)

 

NOTE: CLK_PER can be prescaled from the MAIN_CLK by (1,2,4,6,8,10,16,24,32,48,64) and the MAIN_CLOCK can be
OSC20M (at 16 or 20mHz), 32kHz Osc, 32.768 crystal Osc. Or an External Clock.
    
Pinmux    ==================================================================================

        Yes, 5 WO each have alternate       Yes, 1 WO has alternate                                           NO

 

        TCA                                                  TCB                                                                           TCD
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

PWM output    =================================================================================

        one 16bit, four 8bit                          one 8bit                                                                     two 12 bit