| 数据搜索系统,热门电子元器件搜索 |
|
R8C/2G 数据表(PDF) 76 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/2G 数据表(HTML) 76 Page - Renesas Technology Corp |
|
76 / 344 page ![]() R8C/2G Group 7. Comparator Rev.1.00 Apr 04, 2008 Page 56 of 318 REJ09B0387-0100 7.4 Functional Description Comparator 1 and comparator 2 operate independently. The comparison result of the reference input voltage and analog input voltage can be read by software. The result can also be output from the VCOUTi (i = 1 or 2) pin. An internal reference voltage or input voltage to the CVREF pin can be selected as the reference input voltage. The comparator 1 interrupt or the comparator 2 interrupt also can be used by selecting non-maskable or maskable for each interrupt. 7.4.1 Comparator 1 Table 7.3 lists the Procedure for Setting Bits Associated with Comparator 1 Interrupt, Figure 7.12 shows an Operating Example of Comparator 1 (When Digital Filter Enabled), and Figure 7.13 shows an Operating Example of Comparator 1 (When Digital Filter Disabled). NOTE: 1. When the VW1C0 bit is set to 0, steps 6 and 7 can be executed at the same time (with one instruction) Table 7.3 Procedure for Setting Bits Associated with Comparator 1 Interrupt Step When Using Digital Filter When Not Using Digital Filter 1 Set the COMPSEL bit in the PINSR4 register to 1 (comparator 1, comparator 2) 2 Set the VCAB5 bit in the VCAB register to 1 (VCMP1 pin input voltage) 3 Set the VCA26 bit in the VCA2 register to 1 (comparator 1 circuit enabled) 4 Wait for td(E-A) 5 Select the interrupt type by the IRQ1SEL bit in the ALCMR register 6 Select the sampling clock by bits VW1F0 and VW1F1 in the VW1C register Set the VW1C1 bit in the VW1C register to 1 (digital filter disabled) 7(1) Set the VW1C1 bit in the VW1C register to 0 (digital filter enabled) − 8 Select the interrupt request timing by the VCAC1 bit in the VCAC register and the VW1C7 bit in the VW1C register 9 Set the VW1C2 bit in the VW1C register to 0 10 Set the CM14 bit in the CM1 register to 0 (low-speed on-chip oscillator on) − 11 Wait for 2 cycles of the sampling clock of the digital filter. − (No wait time required) 12 Set the VW1C0 bit in the VW1C register to 1 (comparator 1 interrupt enabled) |
|
链接网址 |
| 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 |