Hi - I have what is probably a simple problem, but I'm stumped. I'm trying to get the FDC1004 to do 2 single-ended measurements and everything seems good except it just sits there and never says the measurement is finished.
I start by setting these registers:
0x08 = 0x1000 // CHA = CIN1, CHB = CAPDAC, Offset = 0 0x09 = 0x3000 // CHA = CIN2, CHB = CAPDAC, Offset = 0 0x0D = 0x0000 // CH1 offset = 0 0x0E = 0x0000 // CH2 offset = 0 0x11 = 0x4000 // CH1 gain = 1.0 0x12 = 0x4000 // CH2 gain = 1.0
Then I set the sample register and start polling it to see when it's done
0x0C = 0x0480 // Rate = 100S/s, Measurement 1 enabled
But - the 0x0C register just keeps reading 0x0480 indefinitely and never sets the DONE_1 bit.
I tried setting CHB to both disabled and CAPDAC - didn't make any difference.
I'm failry sure the comms are ok - I can read the MFG and Device ID just fine. LSB/MSB's are all in the right place. Everything looks ok on the logic analyzer - I'm getting ACK's from the FDC1004 and responses on all reads.
I'm at a loss - I don't know why it won't trigger. What am I missing? Help.
I'm talking to the FDC1004 with an MSP430F5528 on a custom PCB, but I also have an F5529 launchpad and a FDC1004EVM module I can mock up tests with if there's something else I should try.