HD6475328-CP10 HITACHI [Hitachi Semiconductor], HD6475328-CP10 Datasheet - Page 299

no-image

HD6475328-CP10

Manufacturer Part Number
HD6475328-CP10
Description
original Hitachi CMOS microcomputer unit (MCU)
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet
Note on Scan Mode: If the ADST bit is cleared to 0 while two or more channels are being
converted in scan mode, incorrect values may be set in the A/D data registers.
This problem is limited to ZTAT versions. It does not occur in versions with masked ROM.
Solution: Read the A/D data registers only when the ADST bit is set to 1.
Example:
MOV.B
BSET.B
ADI:
The A/D data registers should be read before ADST is cleared, as in the preceding example. (It is
not necessary to clear ADST in order to read the A/D data registers.)
<A/D conversion continues>
MOV.W
MOV.W
MOV.W
MOV.W
BCLR.B
BCLR.B
#5B
#5
,@ADCSR
,@ADCSR
@ADDRA , R0
@ADDRB , R1
@ADDRC , R2
@ADDRD , R3
#5
#7
, @ADCSR
, @ADCSR
; 4-channel scan mode
; Start conversion (set ADST)
285
; read ADDRA
; read ADDRB
; read ADDRC
; read ADDRD
; clear ADST
; clear ADF

Related parts for HD6475328-CP10