Timer channel names
Timer channel names
I setup a few test circuits to test out my Pyboard. One had a simple photo-resistor hooked to one of the ADC lines (X8). I then read the ADC and converted it to a 0-100 value and fed it into the duty cycle of a PWM channel. I used pin Y12 which according to the diagram is timer 1 channel "CH3N ". It worked except it was opposite of what I was expecting - I assume the "N" at the end of the channel name means inverted?
Re: Timer channel names
Yes - N = negated or inverted (that was how they were labelled in the datasheets, so that naming was carried through when coming up with the names).
The N channels (of TIM1 and TIM8) are particularly useful when driving both halves of an H-Bridge. You use the non-N channel to drive the top of the H-Bridge, and N channel to drive the bottom (or vice-versa) and there is also a deadband parameter which controls the delay between the switching edges.
The N channels (of TIM1 and TIM8) are particularly useful when driving both halves of an H-Bridge. You use the non-N channel to drive the top of the H-Bridge, and N channel to drive the bottom (or vice-versa) and there is also a deadband parameter which controls the delay between the switching edges.