Other Parts Discussed in Thread: TDC1011
Currently using the TDC7200 along with the TDC1011PWR to determine time-of flight.
We are getting the trigger out of the TDC7200 when we write to Config0 bit 0 and the TDC1011PWR is giving us the START then 32uS later the TDC1011PWR is giving us the STOP, the problem is we are never seeing the INTB going low and when we read the interrupt mask register we get 0xFF.
The clock into the TDC7200 is shared with the TDC1011PWR and is a 6MHz clock and we are programming the TDC7200 for "Measurement Mode 2" .
Looking at only the first TOF, if we do the math, then the STOP = 32uS with a 6MHz clock we are at a "CLOCK_COUNT1" = 204 (0xC8) so we set the CLOCK COUNTER OVERFLOW = 0xCA and the CLOCK COUNTER STOP MASK = 0xC2 so that the overflow interrupt would not halt the measurement.
The following are the registers and what values we are storing into them before we send the START_MEAS bit.
Name (Address) = Value written
Confg1 (0x00) = 0x40,
Confg2 (0x01) = 0x00,
IRQ_St (0x02) = 0x1F,
Int_Mask (0x03) = 0x04
CCOH (0x04) = 0x00,
CCOL = (0x05) = 0x02
CLCOH (0x06) = 0x00
CLCOL (0x07) = 0xCA
CLCMH (0x08) = 0x00
CLCML (0x09) = 0xC2
Can you see any issues with the values we loaded the above registers with?
Are there additional registers we need to make changes from the default values in order to get the INTB to toggle?
Any help would be appreciated.
Thanks