-
Notifications
You must be signed in to change notification settings - Fork 90
Description
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?