HD6433308 HITACHI [Hitachi Semiconductor], HD6433308 Datasheet - Page 227

no-image

HD6433308

Manufacturer Part Number
HD6433308
Description
Hitachi Single-Chip MicroComputer
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6433308CP
Quantity:
5 510
Part Number:
HD6433308CP
Quantity:
5 510
Part Number:
HD6433308CP97CP
Manufacturer:
HITACAI
Quantity:
20 000
Part Number:
HD6433308FL18
Manufacturer:
HITACHI
Quantity:
648
Part Number:
HD6433308L71F
Manufacturer:
RENESAS
Quantity:
176
Part Number:
HD6433308RL60F
Manufacturer:
TOSHIBA
Quantity:
2 160
The following example explains the A/D conversion process in single mode when channel 1 (AN1)
is selected and the external trigger is disabled. Figure 10-3 shows the corresponding timing chart.
(1) Software clears the ADST bit to “0,” then selects the single mode (SCAN = “0”) and channel 1
(2) The A/D converter converts the voltage level at the the AN
(3) ADF = “1” and ADIE = “1,” so an A/D interrupt is requested.
(4) The user-coded A/D interrupt-handling routine is started.
(5) The interrupt-handling routine reads the ADCSR value, then writes a “0” in the ADF bit to
(6) The interrupt-handling routine reads and processes the A/D conversion result.
(7) The routine ends.
Steps (2) to (7) can now be repeated by setting the ADST bit to “1” again.
(CH2 to CH0 = “001”), enables the A/D interrupt request (ADIE = “1”), and sets the ADST bit
to “1” to start A/D conversion.
Coding Example: (when using the slow clock, CKS = “0”)
BCLR #5, @H’FFE8
MOV.B #H’7F, ROL
MOV.B ROL, @H’FFEA
MOV.B #H’61, ROL
MOV.B ROL, @H’FFE8
Value set in ADCSR:
end of the conversion process the A/D converter transfers the result to register ADDRB, sets
the ADF bit is set to “1,” clears the ADST bit to “0,” and halts.
clear this bit to “0.”
ADF
0
ADIE
1
;Clear ADST
;Disable external trigger
;Select mode and channel and set ADST to "1"
ADST
1
SCAN
215
0
CKS
0
1
input pin to a digital value. At the
CH2
0
CH1
0
CH0
1

Related parts for HD6433308