This design is an interface that allows a TI TLV2556 ADC to be controlled via a UART. The ADC settings are static. The UART interface allows prompting a conversion and will receive the measured value as human readable values.
Requires a 48 MHz clock.
Connect a TLV2556 and a UART to the appropriate pins. Note that the CTS and RTS pins have opposite polarity as they're intended to be connected directly to a CH340 UART-over-USB chip.
Connect with a terminal emulator set to 230400 Baud, 8N1.
Send a single hexadecimal character from 0 to B over the serial port. The digit represents the channel you wish to convert. The design will cause the tlv2556 to do a conversion, read out the measured value and send it back in human readable form over the serial port.
Type CR or LF to enter "continuous mode". The design will loop through all channels, converting each in turn, and print a page worth of measured values to the serial port.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | adc_dout | adc_clk | |
1 | adc_eoc | adc_cs | |
2 | UART RxD | adc_din | |
3 | UART CTS_n (opposite polarity) | UART TxD | |
4 | UART RTSn (opposite polarity) | ||
5 | |||
6 | |||
7 |