欢迎访问ic37.com |
会员登录 免费注册
发布采购

MC9S08RD32PE 参数 Datasheet PDF下载

MC9S08RD32PE图片预览
型号: MC9S08RD32PE
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路光电二极管时钟
文件页数/大小: 234 页 / 1755 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S08RD32PE的Datasheet PDF文件第54页浏览型号MC9S08RD32PE的Datasheet PDF文件第55页浏览型号MC9S08RD32PE的Datasheet PDF文件第56页浏览型号MC9S08RD32PE的Datasheet PDF文件第57页浏览型号MC9S08RD32PE的Datasheet PDF文件第59页浏览型号MC9S08RD32PE的Datasheet PDF文件第60页浏览型号MC9S08RD32PE的Datasheet PDF文件第61页浏览型号MC9S08RD32PE的Datasheet PDF文件第62页  
Resets, Interrupts, and System Configuration  
The MC9S08RC/RD/RE/RG has these sources for reset:  
Power-on reset (POR)  
Low-voltage detect (LVD)  
Computer operating properly (COP) timer  
Illegal opcode detect  
Illegal address (16K and 8K devices only)  
Background debug forced reset  
The reset pin (RESET)  
Each of these sources, with the exception of the background debug forced reset, has an associated bit in  
the system reset status register. Whenever the MCU enters reset, the reset pin is driven low for 34 internal  
bus cycles where the internal bus frequency is one-half the OSC frequency. After the 34 cycles are  
completed, the pin is released and will be pulled up by the internal pullup resistor, unless it is held low  
externally. After the pin is released, it is sampled after another 38 cycles to determine whether the reset pin  
is the cause of the MCU reset.  
5.4  
Computer Operating Properly (COP) Watchdog  
The COP watchdog is intended to force a system reset when the application software fails to execute as  
expected. To prevent a system reset from the COP timer (when it is enabled), application software must  
reset the COP timer periodically. If the application program gets lost and fails to reset the COP before it  
times out, a system reset is generated to force the system back to a known starting point. The COP  
watchdog is enabled by the COPE bit in SOPT (see Section 5.8.4, “System Options Register (SOPT),” for  
additional information). The COP timer is reset by writing any value to the address of SRS. This write does  
not affect the data in the read-only SRS. Instead, the act of writing to this address is decoded and sends a  
reset signal to the COP timer.  
After any reset, the COP timer is enabled. This provides a reliable way to detect code that is not executing  
as intended. If the COP watchdog is not used in an application, it can be disabled by clearing the COPE  
bit in the write-once SOPT register. Also, the COPT bit can be used to choose one of two timeout periods  
18  
20  
(2 or 2 cycles of the bus rate clock). Even if the application will use the reset default settings in COPE  
and COPT, the user must write to write-once SOPT during reset initialization to lock in the settings. That  
way, they cannot be changed accidentally if the application program gets lost.  
The write to SRS that services (clears) the COP timer must not be placed in an interrupt service routine  
(ISR) because the ISR could continue to be executed periodically even if the main application program  
fails.  
When the MCU is in active background mode, the COP timer is temporarily disabled.  
5.5  
Interrupts  
Interrupts provide a way to save the current CPU status and registers, execute an interrupt service routine  
(ISR), and then restore the CPU status so processing resumes where it was before the interrupt. Other than  
the software interrupt (SWI), which is a program instruction, interrupts are caused by hardware events such  
MC9S08RC/RD/RE/RG Data Sheet, Rev. 1.11  
58  
Freescale Semiconductor