ATtiny1616 -> Frequency Measurement (TMRB) Diagnosis

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

I've a 20Hz signal coming in to AC1, which interrupts correctly. I feed the output via EVTSYS into TMRB0 which has been set up for frequency measurement on falling edge. Unfortunately, the interrupt for it never fires.

TMRB0 is clocked from TMRA which is working fine. I've played with all options and I still haven't figured out what's up. Anyone got any idea(s)?

Cheers, Andrew

Attachment(s): 

This topic has a solution.
Last Edited: Tue. Sep 29, 2020 - 06:01 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

More datasheet, less gui.  CAPTEI, Capture Event Input Enable

 

 

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

Sorry that screenshot wasn't a good-one, I'd already tried that and was playing around. 

 

It wasn't what I thought, the MPLAB Snap kept silently crashing so when it appeared the int wasn't firing...

 

The timer waiting until the value has been read is a lovely feature. Love this little chip. :)

Last Edited: Tue. Sep 29, 2020 - 06:04 PM