Skip to content

Testing the dead time of timer1 and question of how to use timer3 #94

@walon81

Description

@walon81

first of all, I tested dead time function of timer1. According to manual, basis signal is OC1B and by setting DTEN bit in TCCR1C, we can enable deadtime. And DTR1 determine deadtime duration. I figure out that DTR1H delay rising timing of OC1B as much as counter clock compare to original OC1B(waveform of OC1B when DTEN is disabled). DTR1L delay rising timing of OC1A.

But I have problem. Timer3 is not work. According to manual, pin 31,32(PD1,PD2) are OC3A and OC3B. timer1 and timer3 have same register structure. just replace 1 to 3(e.g. TCCR3A instead of TCCR1A) and done. But when I tested PD1 and PD2 by oscilloscope, there is no signal. just they are in low voltage(zero voltage with noise) all the way. Interrupt vector is also obscure.
Anyone know how to use timer3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions