| Electronic Components Datasheet Search |
|
UPD17P136ACT Datasheet(PDF) 148 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17P136ACT Datasheet(HTML) 148 Page - NEC |
|
148 / 292 page ![]() CHAPTER 13 PERIPHERAL HARDWARE 129 13.3.2 Functions of A/D Converter (1) ADC0 – ADC3 These pins are used to input 4-channel analog voltage to the A/D converter. The A/D converter contains a sample hold circuit. Analog input voltage is internally retained during A/D conversion. (2) VADC This pin is used to input the power supply and the reference voltage for the A/D converter. A signal input to ADC0 to ADC3 is converted to a digital signal based on voltage applied across VADC and GND. To reduce the current consumption of the microcontroller, the A/D converter has a function for automatically stopping the current which flows into the VADC pin when the converter is not operating. Current flows into the VADC pin in the following cases. <1> Successive mode (ADCSOFT=0) From when the ADCSTRT flag is set (1) until the ADCEND flag is set (1). <2> Single mode (ADCSOFT=1) From when the ADCSTRT flag is set (1) or from when a value of the 8-bit data register is written until the result of comparison by the comparator is written in the ADCCMP flag. Caution If the HALT Instruction is executed while the A/D conversion is in progress, the A/D converter stops conversion. Note that, in this case, the HALT mode is set with current flowing to the VADC pin. When the HALT mode has been released, the A/D conversion is resumed. At this time, however, the value of ADCR is undefined, and the correct conversion result cannot be obtained. Remark A/D conversion is stopped if the STOP instruction is executed while the conversion is in progress. In this case, the A/D converter is initialized, and the current to the VADC pin is also cut. The A/D converter remains stopped even if the STOP mode has been released. (3) 8-bit data register (ADCR) In the successive mode, this 8-bit data register stores A/D conversion results for successive approximation. It is read by the GET instruction. In the single mode, the data in this register is converted to analog voltage by the internal D/A converter and the comparator compares this voltage with an analog signal input from the ADCn pin. A value can be written in this register by using the PUT instruction. (4) Comparator The comparator compares an analog input voltage from a pin with voltage output from the D/A converter. Value 1 is output if analog input voltage from the pin is high. Value 0 is output if this voltage is low. The comparison result is stored in the 8-bit data register (ADCR) in the successive mode. It is stored in the ADCCMP flag in the single mode. (5) A/D converter control register Figure 13-14 shows the A/D converter control register. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |