| Electronic Components Datasheet Search |
|
R5F3640MNFB Datasheet(PDF) 99 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R5F3640MNFB Datasheet(HTML) 99 Page - Renesas Technology Corp |
|
99 / 398 page ![]() REJ09B0392-0064 Rev.0.64 Oct 12, 2007 Page 78 of 373 Under development Preliminary Specification Specification in this preliminary version is subject to change. M16C/64 Group 10. Clock Generation Circuit Figure 10.4 CM2 Register NOTES : 1. Rewrite this register after setting the PRC0 bit in the PRCR register to 1 (write enabled). 2. When the CM20 bit is set to 1 (oscillation stop and re-oscillation detection function enabled), the CM27 bit is set to 1 (oscillation stop and re-oscillation detection interrupt), and the CPU clock source is the main clock, the CM21 bit is set to 1 (125 kHz on-chip oscillator clock) if the main clock stop is detected. 3. If the CM20 bit is set to 1 and the CM23 bit is set to 1 (main clock stops), do not set the CM21 bit to 0. 4. This bit is set to 1 when the main clock stop is detected and the main clock re-oscillation is detected. When this flag changes state from 0 to 1, an oscillation stop or a re-oscillation detection interrupt is generated. Use this bit in an interrupt routine to determine the factors of interrupts between the oscillation stop, re-oscillation etection interrupt and the watchdog timer interrupt. This bit is set to 0 by writing 0 in a program. (This bit remains unchanged even if a 1 is written. Nor is it set to 0 when an oscillation stop or a re-oscillation detection interrupt request is acknowledged.) When the CM22 bit is set to 1 and an oscillation stop or a re- oscillation is detected, an oscillation stop or a re-oscillation detection interrupt is not generated. 5. Determine the main clock status by reading the CM23 bit several times in an oscillation stop or a re-oscillation detection interrupt routine. 6. This bit is valid when the CM07 bit in the CM0 register is set to 0. 7. When the PM21 bit in the PM2 register is set to 1 (disable clock modification), this bit remains unchanged even if writing to the CM20 bit. 8. When the CM20 bit is set to 1 (oscillation stop and re-oscillation detection function enabled), the CM27 bit is 1 (oscillation stop and re-oscillation detection interrupt), and the CM11 bit is set to 1 (PLL clock is selected as the CPU clock source), the CM21 bit remains unchanged even if a main clock stop is detected. When the CM22 bit is set to 0 under these conditions, an oscillation stop, a re-oscillation detection interrupt request is generated at main clock stop detection. Set the CM21 bit to 1 (125 kHz on-chip oscillator clock) in the interrupt routine. 9. Set the CM20 bit to 0 (disabled) before entering stop mode. Exit stop mode before setting the CM20 bit back to 1 (enabled). 10. Set the CM20 bit in the CM2 register to 0 (disabled) before setting the CM05 bit in the CM0 register to 1 (main clock stops). 11. Bits CM20, CM21, and CM27 remain unchanged at the oscillation stop detection reset. 12. When the CM21 bit is set to 0 (main clock or PLL clock) and the CM05 bit is set to 1 (main clock stops), the CM06 bit is fixed to 1 (divide-by-8 mode) and the CM15 bit is fixed to 1 (drive capacity high). b7 0 0 b6 b5 b4 b1 b2 b3 Oscillation Stop Detection Register (1) Symbol CM2 Address 000Ch Bit Symbol Bit Name RW After Reset 0X000010b (11) b0 Function CM20 Oscillation stop and re-oscillation detection enable bit (7, 9, 10,11) 0: Oscillation stop and re-oscillation detection function disabled 1: Oscillation stop and re-oscillation detection function enabled RW CM21 System clock select bit 2 (2, 3, 6, 8, 11, 12) RW 0: Main clock or PLL clock 1: 125 kHz on-chip oscillator clock CM22 Oscillation stop and re-oscillation detection flag (4) RW 0: Main clock stops and re-oscillation not detected 1: Main clock stops and re-oscillation detected CM23 XIN monitor flag (5) RO 0: Main clock oscillates 1: Main clock stops — (b5-b4) Reserved bits Set to 0 RW — (b6) No register bit. If necessary, set to 0. Read as undefined value — CM27 Operation select bit (when an oscillation stops and re-oscillation is detected) (11) 0: Oscillation stop detection reset 1: Oscillation stop, re-oscillation detection interrupt RW |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |