Sample Program 2 For The 8/10-Bit A/D Converter (Continuous Conversion Mode Using Ei 2 Os) - Fujitsu MB90390 Series Hardware Manual

Table of Contents

Advertisement

CHAPTER 18 8/10-BIT A/D CONVERTER
18.9
Sample Program 2 for the 8/10-Bit A/D Converter
(Continuous Conversion Mode Using EI
This section contains a sample program for A/D conversion in continuous conversion
2
mode using EI
OS.
■ Sample Program for Continuous Conversion Mode Using EI
Processing
• Analog inputs AN3 to AN5 are converted twice. Two conversion data items are obtained for each
channel.
• The conversion data is sequentially transferred to addresses "600
• A resolution of 10 bits is selected.
• The conversion is activated by 16-bit reload timer 1.
Figure 18.9-1 Flowchart of Program Using EI
Start conversion
304
Interrupt
Transfer by EI
AN3
AN4
Interrupt
Transfer by EI
Interrupt
AN5
Transfer by EI
2
OS)
2
OS
" to "60B
H
2
OS (Continuous Conversion Mode)
2
OS
2
OS
Interrupt sequence
2
OS
End
".
H
After a total of
six transfers

Advertisement

Table of Contents
loading

Table of Contents