Panasonic MN103001G/F01K User Manual Page 362

  • Download
  • Add to my manuals
  • Print
  • Page
    / 466
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 361
A/D Converter
14-8
(2) Multiple channels/one-time conversion for each channel
If "multiple channels/one-time conversion for each channel" is selected as the operating mode (ADMD1 to
0), a number of AN inputs, starting from AN0, are converted one time only. Set channel 0 in the conversion
channel selection bits used for converting any one channel (ADSC1 to 0), and set the number of channels to be
converted in the conversion channel selection bits (ADMC1 to 0). (Conversion starts with channel 0.) An A/D
interrupt request is generated simultaneously with the completion of conversion of all channels.
When starting up conversion through software, set the conversion start trigger selection bits (ADST1 to 0) to
"00", and set the conversion start/execution flag (ADEN) to "1".
If the conversion start trigger selection bits (ADST1 to 0) are set to "external trigger," then the conversion
start/execution flag (ADEN) is set to "1" when a falling edge is input to the ADTRG pin, A/D conversion then
starts.
And if the conversion start trigger selection bits (ADST1 to 0) are set to "timer trigger," then the conversion
start/execution flag (ADEN) is set to "1" when a timer 2 underflow occurs, A/D conversion then starts.
The conversion start/execution flag (ADEN) is "1" while conversion is in progress, and is then set to "0"
after conversion of all channels is completed. The conversion channel selection bits that are used for selecting any
one channel for conversion (ADSC1 to 0) indicate the current channel number being converted, and are then set to
"00" when conversion of all channels is completed.
Note: If multiple channels are to be converted, be certain to include a capacitor of at least 0.1 µF between each AN
pin and AVSS. Each capacitor should be placed as closely as possible to each AN pin.
Fig. 14-5-2 External Trigger Input Conversion Example (for Channels 0 to 2, One Time Each)
External trigger input
(ADTRG pin)
ADEN flag
Status
Set
Reset automatically when
conversion is completed
Interrupt request
Channel 0
conversion
Channel 1
conversion
Channel 2
conversion
Page view 361
1 2 ... 357 358 359 360 361 362 363 364 365 366 367 ... 465 466

Comments to this Manuals

No comments