![FTDI FT51A Application Note Download Page 75](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158075.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
74
Copyright © 2015 Future Technology Devices International Limited
2.10.4
AIO ADC Mode
During ADC the incoming analogue signal to the AIO pad is sampled to provide a digital
representation of the wave.
The
AIO_SAMPLE_0
and
AIO_SAMPLE_1
registers determine which AIO ports shall be sampled by the
analogue to digital convertor.
Once the conversion is completed the interrupt bit for each AIO port is set in the
AIO_INTERRUPTS_0_7
or
AIO_INTERRUPTS_8_15
register. This signals that the digital representation of
the analogue value can be read from the ADC data registers,
AIO_x_ADC_DATA_L
and
AIO_x_ADC_DATA_U
. The reading is encoded into bits 0..9. The 2 lowest bits (0..1) should be
discarded.