| 数据搜索系统,热门电子元器件搜索 |
|
4584 数据表(PDF) 49 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
4584 数据表(HTML) 49 Page - Renesas Technology Corp |
|
49 / 157 page ![]() Rev.3.00 2004.08.06 page 49 of 155 REJ03B0010-0300Z 4584 Group PRELIMINARY Notice: This is not a final specification. Some parametric limits are subject to change. (1) A/D control register • A/D control register Q1 Register Q1 controls the selection of A/D operation mode and the selection of analog input pins. Set the contents of this register through register A with the TQ1A instruction. The TAQ1 instruc- tion can be used to transfer the contents of register Q1 to register A. • A/D control register Q2 Register Q2 controls the selection of P60/AIN0, P61/AIN1. Set the contents of this register through register A with the TQ2A instruc- tion. The TAQ2 instruction can be used to transfer the contents of register Q2 to register A. • A/D control register Q3 Register Q3 controls the selection of A/D converter operation clock. Set the contents of this register through register A with the TQ3A instruction. The TAQ3 instruction can be used to transfer the contents of register Q3 to register A. (2) Operating at A/D conversion mode The A/D conversion mode is set by setting the bit 3 of register Q1 to “0.” (3) Successive comparison register AD Register AD stores the A/D conversion result of an analog input in 10-bit digital data format. The contents of the high-order 8 bits of this register can be stored in register B and register A with the TABAD instruction. The contents of the low-order 2 bits of this reg- ister can be stored into the high-order 2 bits of register A with the TALA instruction. However, do not execute these instructions dur- ing A/D conversion. When the contents of register AD is n, the logic value of the com- parison voltage Vref generated from the built-in DA converter can be obtained with the reference voltage VDD by the following for- mula: Logic value of comparison voltage Vref Vref = ✕ n n: The value of register AD (n = 0 to 1023) VDD 1024 (4) A/D conversion completion flag (ADF) A/D conversion completion flag (ADF) is set to “1” when A/D con- version completes. The state of ADF flag can be examined with the skip instruction (SNZAD). Use the interrupt control register V2 to select the interrupt or the skip instruction. The ADF flag is cleared to “0” when the interrupt occurs or when the next instruction is skipped with the skip instruction. (5) A/D conversion start instruction (ADST) A/D conversion starts when the ADST instruction is executed. The conversion result is automatically stored in the register AD. (6) Operation description A/D conversion is started with the A/D conversion start instruction (ADST). The internal operation during A/D conversion is as follows: ➀ When the A/D conversion starts, the register AD is cleared to “00016.” ➁ Next, the topmost bit of the register AD is set to “1,” and the com- parison voltage Vref is compared with the analog input voltage VIN. ➂ When the comparison result is Vref < VIN, the topmost bit of the register AD remains set to “1.” When the comparison result is Vref > VIN, it is cleared to “0.” The 4584 Group repeats this operation to the lowermost bit of the register AD to convert an analog value to a digital value. A/D con- version stops after 2 machine cycles + A/D conversion clock (31 µs when f(XIN) = 6.0 MHz in XIN through mode, f(ADCK) = f(INSTCK)/ 6) from the start, and the conversion result is stored in the register AD. An A/D interrupt activated condition is satisfied and the ADF flag is set to “1” as soon as A/D conversion completes (Figure 36). Table 13 Change of successive comparison register AD during A/D conversion Comparison voltage (Vref) value Change of successive comparison register AD At starting conversion ± ± ± ± ± ✼1: 1st comparison result ✼3: 3rd comparison result ✼9: 9th comparison result ✼2: 2nd comparison result ✼8: 8th comparison result ✼A: 10th comparison result 1st comparison 2nd comparison 3rd comparison After 10th comparison completes 1 ✼1 ✼1 ✼1 ----- ----- ----- ----- 0 1 ✼2 ✼2 0 0 1 ✼3 0 0 0 ✼8 0 0 0 ✼9 0 0 0 ✼A A/D conversion result VDD 2 VDD 2 VDD 2 VDD 2 VDD 4 VDD 4 VDD 8 VDD 1024 ------------- ------------- ------------- ------------- ------------- ------------- ------------- ------------- |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |