Just want to verify - is the Comparator (CMP) used for anything in the default Teensy3.1 startup code. I searched thru the code and couldn't find anything, so it looks like I will be okay. I found some reference in the comments for AnalogWrite. If I use the Comparator, will I interfere with anything? Anything in particular I should watch out for?
Now I need to vent to someone, so feel free to ignore. I want to latch the FTM counter counting Quadrature position from an external switch. Looked like it should be feasible, however, as I looked closer, the pin definitions have hardware input for latching is on the same pin as the Quadrature input. (Grrr...). And FTM2 has only one pin selection. So I can do the function, just don't have a pin to get to it. Now in a completely different part of the documentation, it looks like I can use the Comparator as the input, however, only for Channel 0. So if I move the Output Compare from Channel 0 to Channel 1, Mux input triggers Capture on Channel 0, just might be able to make it work.
Yes, we provide all this capability ... but you really have to want it to figure out the one path to get it to work.
TLB
Now I need to vent to someone, so feel free to ignore. I want to latch the FTM counter counting Quadrature position from an external switch. Looked like it should be feasible, however, as I looked closer, the pin definitions have hardware input for latching is on the same pin as the Quadrature input. (Grrr...). And FTM2 has only one pin selection. So I can do the function, just don't have a pin to get to it. Now in a completely different part of the documentation, it looks like I can use the Comparator as the input, however, only for Channel 0. So if I move the Output Compare from Channel 0 to Channel 1, Mux input triggers Capture on Channel 0, just might be able to make it work.
Yes, we provide all this capability ... but you really have to want it to figure out the one path to get it to work.
TLB