| Electronic Components Datasheet Search |
|
M38C89MB Datasheet(PDF) 29 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
M38C89MB Datasheet(HTML) 29 Page - Renesas Technology Corp |
|
29 / 55 page ![]() 28 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 38C8 Group A-D CONVERTER [A-D Conversion Registers (ADL, ADH)] 003216, 003316 The A-D conversion registers are read-only registers that contain the result of an A-D conversion. During A-D conversion, do not read these registers. [A-D Control Register (ADCON)] 003116 The A-D control register controls the A-D conversion process. Bits 0 to 2 are analog input pin selection bits. Bit 3 is an A-D conversion completion bit and “0” during A-D conversion, then changes to “1” when the A-D conversion is completed. Writing “0” to this bit starts the A-D conversion. When bit 5, which is the A-D external trigger valid bit, is set to “1”, A-D conversion is started even by a rising edge or falling edge of an ADT input. Comparator and Control Circuit The comparator and control circuit compares an analog input volt- age with the comparison voltage and stores the result in the A-D conversion register. When an A-D conversion is completed, the con- trol circuit sets the A-D conversion completion bit and the A-D inter- rupt request bit to “1”. Because the comparator consists of a capacitor coupling, a deficient conversion speed may cause lack of electric charge and make the conversion accuracy worse. When A-D conversion is performed, set f(XIN) to at least 500 kHz. When both bit 5 and bit 4 of the CPU mode register are set to “1”, A-D conversion is performed by using the built-in self-oscillation circuit. Trigger Start When using the A-D external trigger, set the port shared with the ADT pin to input. The polarity of INT1 interrupt edge also applies to the A-D external trigger. When the INT1 interrupt edge polarity is switched after an external trigger is validated, an A-D conversion may be started. Fig. 26 A-D converter block diagram Fig. 25 Structure of A-D control register Resistor ladder The resistor ladder outputs the comparison voltage by dividing the voltage between VDD and VSS by resistance. Channel Selector The channel selector selects one of the ports P33/AIN3–P30/AIN0 and ports P10/AIN4–P13/AIN7, and inputs it to the comparator. A-D control register (ADCON : address 003116) Analog input pin selection bits 0 0 0 : P30/AIN0 0 0 1 : P31/AIN1 0 1 0 : P32/AIN2 0 1 1 : P33/AIN3 1 0 0 : P10/AIN4 1 0 1 : P11/AIN5 1 1 0 : P12/AIN6 1 1 1 : P13/AIN7 b7 b0 b7 b9 b8 b7 b6 b5 b4 b3 b2 b9 b8 b7 b6 b5 b4 b3 b2 •8-bit read (Read only address 003216.) A-D conversion register (low-order) (ADL: Address 003216) •10-bit read (Read address 003316 first.) Note: High-order 6 bits of address 003316 becomes “0” at reading. b1 b0 b0 A-D conversion register (low-order) (ADL: Address 003216) A-D conversion register (high-order) (ADH: Address 003316) b7 b0 b7 b0 A-D conversion completion bit 0 : Conversion in progress 1 : Conversion completed Not used (return “0” when read) A-D external trigger valid bit 0 : A-D external trigger invalid 1 : A-D external trigger valid Not used (return “0” when read) A-D control circuit VSS b7 b0 3 P30/AIN0 P31/AIN1 P32/AIN2 P33/AIN3 P10/AIN4 P11/AIN5 P12/AIN6 P13/AIN7 10 P41/INT1/ADT (H) (L) VCC Data bus A-D control register A-D conversion register Resistor ladder Comparater A-D interrupt request A-D conversion 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 |