| 数据搜索系统,热门电子元器件搜索 |
|
HC705JB2GRS/H 数据表(PDF) 66 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
HC705JB2GRS/H 数据表(HTML) 66 Page - NXP Semiconductors |
|
66 / 128 page ![]() GENERAL RELEASE SPECIFICATION August 28, 1998 PROGRAMMABLE TIMER MC68HC705JB2 9-8 REV 1.1 1. Disable interrupts by setting the I bit in the condition code register. 2. Write to the OCRH. Compares are now inhibited until OCRL is written. 3. Read the TSR to arm the OCF for clearing. 4. Enable the output compare registers by writing to the OCRL. This also clears the OCF flag bit in the TSR. 5. Enable interrupts by clearing the I bit in the condition code register. A software example of this procedure is shown below. 9.5 TIMER CONTROL REGISTER (TCR) The timer control register is shown in Figure 9-10 performs the following functions: • Enables input capture interrupts • Enables output compare interrupts • Enables timer overflow interrupts • Control the active edge polarity of the TCAP signal on pin PB0/TCAP Reset clears all the bits in the TCR with the exception of the IEDG bit which is unaffected. ICIE - INPUT CAPTURE INTERRUPT ENABLE This read/write bit enables interrupts caused by an active signal on the PB0/ TCAP pin. Reset clears the ICIE bit. 1 = Input capture interrupts enabled. 0 = Input capture interrupts disabled. 9B ... ... B7 B6 BF ... ... 9A 16 13 17 SEI ... ... STA LDA STX ... ... CLI OCRH TSR OCRL DISABLE INTERRUPTS ..... ..... INHIBIT OUTPUT COMPARE ARM OCF FLAG FOR CLEARING READY FOR NEXT COMPARE, OCF CLEARED ..... ..... ENABLE INTERRUPTS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 TCR R ICIE OCIE TOIE 000 IEDG 0 $0012 W reset: 000000 Unaffected 0 Figure 9-10. Timer Control Register (TCR) Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
链接网址 |
| 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 |