TLC1543 ADC not getting data
dev/null
Posts: 381
Hi
I am trying to get an ADC to work (TLC1543). The signal is coming from a small preamplifier with a microphone on it. The problem is that I get only zero bits out. It's 10-bit so should be able to pick up the slightest of voltages.
Datasheet attached. I wired it like this:
I am trying to use "mode 1" from the datasheet. Here is the code:
Thanks for any help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I am trying to get an ADC to work (TLC1543). The signal is coming from a small preamplifier with a microphone on it. The problem is that I get only zero bits out. It's 10-bit so should be able to pick up the slightest of voltages.
Datasheet attached. I wired it like this:
I am trying to use "mode 1" from the datasheet. Here is the code:
Init: addr = %0000 ' Select input A0 ReadADC: HIGH cs ' Start measure PAUSE 2 LOW cs ' Activate TLC1543 PAUSE 1 SHIFTOUT dat, clk, MSBFIRST, [noparse][[/noparse]add] ' Send address SHIFTIN dat, clk, MSBPRE, [noparse][[/noparse]bits\10] DEBUG BIN10 bits,CR PAUSE 1000 GOTO ReadADC
Thanks for any help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Comments
SHIFTIN commands?
The ADC needs 21 usec to complete the conversion.
phil
I found some code that worked for a 12-bit ADC, and it works for this one! The following code works for the 1543 (it's a miracle!):
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy