Rev. 1.1 (May 2011) 7 © DLP Design, Inc.
channel as an A/D input, and 0x43 / 0x44 must have been called to configure the
voltage reference.
Example: 0x3, 0x40 0x00 – Performs the A/D conversion and, using ADC0, returns 2 bytes of
data
0x41 – Disable A/D
Length: 3 Bytes
Parameters: 0=ADC0, 1=ADC1
Returns: 1 Byte: command echo acknowledgement=0x41
Function: This function disables the specified A/D converter
Example: 0x3, 0x41 0x01 – Disables A/D Converter 1
0x42 – Select A/D Input
Length: 3 Bytes
Parameters: 0x00=Select input A0 (P6.0)
0x01=Select input A1 (P6.1)
0x02=Select input A2 (P6.2)
0x03=Select input A3 (P6.3)
0x04=Select input A4 (P6.4)
0x05=Select input A5 (P6.5)
0x06=Select input A6 (P6.6)
0x07=Select input A7 (P6.7)
0x08=Select internal input Veref+
0x09=Select internal input Vref-/Veref-
0x0A=Select internal temperature diode
0x0B=Select internal input (Avcc – Avss)/2
Returns: 1 Byte: command echo acknowledgement=0x42
Function: This function selects the analog input to be used by the specified A/D converter
Example: 0x3, 0x42 0x03 – Selects analog input A3
0x43 – External Reference
Length: 2 Bytes
Parameters: None
Returns: 1 Byte: command echo acknowledgement=0x43
Function: This function sets the A/D and D/A references to be external
Example: 0x2, 0x43 – Select External Voltage Reference
0x44 – Internal Reference
Length: 2 Bytes
Parameters: None
Returns: 1 Byte: command echo acknowledgement=0x44
Function: This function sets the A/D and D/A references to be internal; use command 0x50 to
select the Internal Voltage Reference value
Example: 0x2, 0x44 – Select Internal Voltage Reference