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

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

Advertisement

19.8
Example of Program-3 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
Analog input AN3 is converted for 12 times in a constant period.
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.8-1 shows flow of the EI
Activation
start
Coding example
BAPL
BAPM
BAPH
ISCS
IOAL
IOAH
DCTL
DCTH
DDR7
ADER0
ICR12
ADMR
ADCS0
2
OS in the Stop Mode)
2
OS start program (stop mode).
Figure 19.8-1 Flow of the EI
AN3
Interrupt
STOP
External edge start
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
CHAPTER 19 8/10-BIT A/D CONVERTER
to 617
.
H
H
2
OS Start Program (Stop Mode)
2
EI
OS transfer
Interrupt sequence
; 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
2
OS in stop mode.
After 12 times transfer
End
455

Advertisement

Table of Contents
loading

Table of Contents