Skip to content

AVR32DD20 Cascaded TCBs = 32bit timer but CAPT pulses are intermittently missed and CCMP counts seems wrong #441

Answered by SimonMerrett
SimonMerrett asked this question in Q&A
Discussion options

You must be logged in to vote

So I have found the problem with the second two phenomena. The short pulse (90 ns pulse width from a supposed 100 ns source) means that as the two very stable clock process past each other (ie gradual phase shift) they can get into a phase where the pulse edge is detected by the TCB0 input but the event doesn't last long enough to be treated as a CAPT signal. Interesting.

So I tried using the CCL to lengthen the pulses, taking inspiration from the logic library latch without sequencer example:

void CCL0_init(void)
{
  /*
                                              3-input     truth table:
                                              |IN2|IN1|IN0| Y |
                                   …

Replies: 8 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SimonMerrett
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SimonMerrett
Comment options

You must be logged in to vote
3 replies
@SimonMerrett
Comment options

@coburnw
Comment options

@SimonMerrett
Comment options

Comment options

You must be logged in to vote
1 reply
@SimonMerrett
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants