ATMega32 Timer1 Question

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

Hi

I'm using Timer-1 Input Compare ICR1 to capture a pulse stream which works great. Can I use Output Compare OCR1A for another Timing function at the same time as I'm using ICR1 ? Do I need to use Timer2 instead because my Input Capture stops operating when I enable OCR1A.  I'm using the ATMega32 40pdip on a STK500 with JTAGICEmk2 WinAvr on AVRStudio4.17

Thank you

Don

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

You should be able to use both capture and compare at the same time. Your code should not start/stop the timer or write to TCNT1.

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

I think they where firing at the same time. I'm gonna try to delay the transmit side half a bit period.