How long the comparator mux settling time, tweensy 3.2?

Status
Not open for further replies.

Takao Shimizu

New member
//MUX Control Register (CMPx_MUXCR), comparator Plus Input Mux Control (PSEL bit 5-3) & Minus Input Mux Control(MSEL bit 2-0)
CMP0_MUXCR = 0b00011010; // Comparator0+ In3 "U"(bit 5-3), Comparator0- In2 "V"(bit 2-0)
//--------------------------------------------------------------
//Comparator settling time
delayMicroseconds (1); // not specified in Tweensy 3.2 MPU manual
//--------------------------------------------------------------
//CMP Status and Control Register (CMPx_SCR), Analog Comparator Output(bit0)
if (CMP0_SCR & 1)
{
Serial.println (F("U>V"));
}
else
{
Serial.println (F("U<V"));
}
I could not find the comparator settling time sepcs. in MPU manual.

Takao
 
Status
Not open for further replies.
Back
Top