| 数据搜索系统,热门电子元器件搜索 |
|
R8C/2G 数据表(PDF) 79 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/2G 数据表(HTML) 79 Page - Renesas Technology Corp |
|
79 / 344 page ![]() R8C/2G Group 7. Comparator Rev.1.00 Apr 04, 2008 Page 59 of 318 REJ09B0387-0100 7.4.2 Comparator 2 Table 7.4 lists the Procedure for Setting Bits Associated with Comparator 2 Interrupt, Figure 7.14 shows an Operating Example of Comparator 2 (When Digital Filter Enabled), and Figure 7.15 shows an Operating Example of Comparator 2 (When Digital Filter Disabled). NOTE: 1. When the VW2C0 bit is set to 0, steps 6 and 7 can be executed at the same time (with one instruction). Table 7.4 Procedure for Setting Bits Associated with Comparator 2 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 VCAB6 bit in the VCAB register to 1 (VCMP2 pin input voltage) 3 Set the VCA27 bit in the VCA2 register to 1 (comparator 2 circuit enabled) 4 Wait for td(E-A) 5 Select the interrupt type by the IRQ2SEL bit in the ALCMR register 6 Select the sampling clock by bits VW2F0 and VW2F1 in the VW2C register Set the VW2C1 bit in the VW2C register to 1 (digital filter disabled) 7(1) Set the VW2C1 bit in the VW2C register to 0 (digital filter enabled) − 8 Select the interrupt request timing by the VCAC2 bit in the VCAC register and the VW2C7 bit in the VW2C register 9 Set the VW2C2 bit in the VW2C 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 VW2C0 bit in the VW2C register to 1 (comparator 2 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 |