| 数据搜索系统,热门电子元器件搜索 |
|
PCF8523T/1 数据表(PDF) 38 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PCF8523T/1 数据表(HTML) 38 Page - NXP Semiconductors |
|
38 / 75 page ![]() PCF8523 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved. Product data sheet Rev. 4 — 5 July 2012 38 of 74 NXP Semiconductors PCF8523 Real-Time Clock (RTC) and calendar When the interrupt generation is enabled (CTAIE = 1) and the countdown timer flag CTAF is set logic 1, an interrupt signal on INT1 is generated. The interrupt may be generated as a pulsed signal every countdown period or as a permanently active signal, which follows the condition of CTAF (register Control_2). The TAM bit (register Tmr_CLKOUT_ctrl) is used to control this mode selection. The interrupt output may be disabled with the CTAIE bit (register Control_2). 8.9.3 Timer B Timer B can only be used as a countdown timer and can be switched on and off by the TBC bit in register Tmr_CLKOUT_ctrl (0Fh). The generation of interrupts from the countdown timer is controlled via the CTBIE bit (register Control_2). When enabled, it counts down from the software programmed 8 bit binary value n in register Tmr_B_reg (13h). When the counter reaches 1 on the next rising edge of the timer clock, the following events occur (see Figure 21): • The countdown timer flag CTBF (register Control_2) is set logic 1 • When the interrupt generation is enabled (CTBIE = 1), interrupt signals on INT1 and INT2 are generated • The counter automatically reloads • The next timer-period starts At the end of every countdown, the timer sets the countdown timer flag CTBF (register Control_2). CTBF may only be cleared by using the interface. Instructions, how to clear a flag, is given in Section 8.7.5. When reading the timer, the current countdown value is returned and not the initial value n. Since it is not possible to freeze the countdown timer counter during read back, it is recommended to read the register twice and check for consistent results. In this example, it is assumed that the countdown timer flag (CTBF) is cleared before the next countdown period expires and that interrupt output is set to pulse mode. Fig 21. General countdown timer behavior 013aaa329 countdown value, n timer source clock countdown counter WD/CD [1:0] CTBF INT1/INT2 02 03 00 01 XX 03 XX 01 03 02 01 03 02 n duration of first timer period after enable may range from n −1 to n+1 n 01 03 |
|
链接网址 |
| 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 |