Fujitsu MB91460 SERIES FR60 User Manual page 920

32-bit microcontroller
Table of Contents

Advertisement

Chapter 44 A/D Converter
6.Q & A
To specify an external trigger/software trigger
To specify a reload timer/software trigger
To specify an external trigger/reload timer/software trigger
The converter A/D is activated on the first instance of any one of these causes selected.
6.7 To activate the A/D converter
• Generating a software trigger
A software trigger is generated using A/D Conversion Software Trigger bits (ADCS.STRT).
Operation
To generate a software trigger
• Activating A/D converter with reload timer 7
The reload timers must be setup and activated. For more information, see
No.775)" When an underflow of a reload timer causes the reload timer output signal to rise, an activation
trigger is generated.
• Activating A/D converter with an external trigger
Use external trigger input pin ATGX to generate an external trigger.
The external trigger input pin is set using Port Function bits (PFR16.7) and Extra Port Function Register
(EPFR16.7).
Operation
To program the ATGX pin as a trigger input
6.8 To verify the end of a conversion
There are two ways to verify the end of a conversion, as follows:
• Checking the A/D Conversion End Interrupt Request bits (ADCS.INT)
(INT)
If the read value is "0"
If the read value is "1"
• Checking the Operation Verification bits (ADCS.BUSY)
(BUSY)
If the read value is "0"
If the read value is "1"
6.9 How do I read a conversion value?
The conversion value can be read from Data Buffer register ADCR.
6.10 How do I force an A/D conversion operation to a stop?
Use the Forced Stop bits (ADCS.BUSY)
Operation
To force an A/D conversion operation to a stop
The operation of the A/D is unaffected by writing "1" to the Forced Stop bit (BUSY).
904
To specify a software trigger
A/D Conversion Software Trigger Bit (STRT)
Write "1".
Setting
Set PFR16.7 = '0' and DDR16.7 = '0' (port input mode)
Set PFR16.7 = '1' and EPFR16.7 = '1' (function mode)
Description
No A/D conversion end interrupt request
A/D conversion end interrupt request
Setting
A/D conversion end (stop)
A/D conversion in progress
Forced Stop Bit (BUSY)
Write "0".
Set "00".
Set "01".
Set "10".
Set "11".
"Chapter 38 Reload Timer (Page

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents