Example Of Program-2 Of 8/10-Bit A/D Converter (Example Of Starting The Ei 2 Os In The Continuous Mode) - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 19 8/10-BIT A/D CONVERTER
19.7
Example of Program-2 of 8/10-bit A/D Converter (Example
of Starting the EI
This section shows the A/D conversion program started the EI
2
Example of EI
OS Start Program in Continuous Mode
Processing specification
Convert the analog inputs AN3 to AN5 twice to acquire two converted data for each of channels.
The converted data is transferred to addresses 600
Resolution is assumed to be ten bits.
Start up is performed by 16-bit reload timer 0
Figure 19.7-1 shows flow of the EI
Figure 19.7-1 Flow of the EI
Activation
start
Coding example
BAPL
BAPM
BAPH
ISCS
IOAL
IOAH
DCTL
DCTH
DDR7
ADER0
ICR12
ADMR
ADCS0
452
2
OS in the Continuous Mode)
2
OS start program (continuous mode).
2
OS Start Program (Continuous Mode)
AN3
Interrupt
AN4
Interrupt
AN5
Interrupt
EQU
000100H
EQU
000101H
EQU
000102H
EQU
000103H
EQU
000104H
EQU
000105H
EQU
000106H
EQU
000107H
EQU
000017H
EQU
00001EH
EQU
0000BCH
EQU
000045H
EQU
000040H
2
to 60B
.
H
H
After 6 times transfer
2
EI
OS transfer
2
EI
OS transfer
Interrupt sequence
2
EI
OS transfer
; Buffer address pointer lower
; Buffer address pointer middle
; Buffer address pointer upper
2
; EI
OS status register
; I/O address register lower
; I/O address register upper
; Data counter lower
; Data counter upper
; Port 7 direction register
; Analog input enable register 0
; Interrupt control register for A/DC
; A/D conversion channel set register
; A/D Control status register
OS in continuous mode.
End

Advertisement

Table of Contents
loading

Table of Contents