Author Topic: AVR 0 series- TCA in split mode  (Read 1024 times)

0 Members and 1 Guest are viewing this topic.

Offline sanka1pTopic starter

  • Contributor
  • Posts: 28
  • Country: us
AVR 0 series- TCA in split mode
« on: October 16, 2023, 04:39:28 pm »
Hi All, I am trying to use TCA in split mode in Atmega1608. I read Datasheet and Application note but few things are unclear to me. First one is, what does Low Byte count and High Byte count mean? How can I use them to make 2 PWMs? Can I just use LCMP0 and LCMP1 to generate those? It is quite confusing. I tried the understand the waveform on page 200 of datasheet, but it manly describes the count down nature of split timer. My Ultimate goal is to make a PWM of 2Hz on one pin and a 1Khz PWM on other pin.
Using Analog in a Digital world.
 

Offline TizianoHV

  • Regular Contributor
  • *
  • Posts: 122
  • Country: it
    • My Website
Re: AVR 0 series- TCA in split mode
« Reply #1 on: October 16, 2023, 04:56:26 pm »

Offline sanka1pTopic starter

  • Contributor
  • Posts: 28
  • Country: us
Re: AVR 0 series- TCA in split mode
« Reply #2 on: October 16, 2023, 06:03:44 pm »
On github there are some examples.

Yes, I went through the application note. One big question I have is,  when it says "A TCA instance can be split into two completely independent 8-bit timers" does that mean LPER and HPER register are 8 bit register or 16 bit?
Using Analog in a Digital world.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf