Interfaces and Connectors
EBX-22 Reference Manual
55
IN
AX, DX
;16bit input reads current conversion data
;from SPIDATA1 into AH and from SPIDATA0 into
;AL
For more detailed informA
NALOG
I
NPUT
“B
IT
B
ANG
”
R
EGISTER
A special register is available at 1D5h that enables the direct control (“bit banging”) of the ADC.
To use this register, ADC field (bits D1-D0) of the MODCON register (1DFh) must be set to 0h
(see Table 44 for mode control settings).
ADCBB (Read/Write) 1D5h
D7 D6 D5 D4 D3 D2 D1 D0
ADCIN Reserved Reserved Reserved Reserved ADCCLK ADCOUT ADCCS0
Table 28: ADCBB Register Bit Assignments
Bit Mnemonic
Description
D7 ADCIN
Analog Input
– This bit is read only.
D6-D3 –
Reserved
– These bits have no function.
D2 ADCCLK
Analog Clock
– This bit is read/write.
D1 ADCOUT
Analog Output
– This bit is read/write.
D0 ADCCS0
Analog Chip Select
– This bit is read/write.
StockCheck.com