MC9S08QD2CSC Freescale, MC9S08QD2CSC Datasheet - Page 52
![](/photos/31/37/313719/mc9s08qd2csc_sml.jpg)
MC9S08QD2CSC
Manufacturer Part Number
MC9S08QD2CSC
Description
Manufacturer
Freescale
Datasheet
1.MC9S08QD2CSC.pdf
(198 pages)
Specifications of MC9S08QD2CSC
Cpu Family
HCS08
Device Core Size
8b
Frequency (max)
8MHz
Total Internal Ram Size
128Byte
# I/os (max)
4
Number Of Timers - General Purpose
3
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
4-chx10-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
8
Package Type
SOIC N
Program Memory Type
Flash
Program Memory Size
2KB
Lead Free Status / RoHS Status
Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC9S08QD2CSC
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
MC9S08QD2CSCR
Manufacturer:
FREESCALE
Quantity:
310
Chapter 5 Resets, Interrupts, and General System Control
5.4
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 counter periodically. If the application program gets lost and fails to reset the COP counter
before it times out, a system reset is generated to force the system back to a known starting point.
After any reset, the COPE becomes set in SOPT1 enabling the COP watchdog (see
Options Register 2
application, it can be disabled by clearing COPE. The COP counter 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 counter.
The COPCLKS bit in SOPT2 (see
information) selects the clock source used for the COP timer. The clock source options are either the bus
clock or an internal 32 kHz clock source. With each clock source, there is an associated short and long
time-out controlled by COPT in SOPT1.
COPT bits. The COP watchdog defaults to operation from the 32 kHz clock source and the associated long
time-out (2
Even if the application will use the reset default settings of COPE, COPCLKS and COPT, the user must
write to the write-once SOPT1 and SOPT2 registers during reset initialization to lock in the settings. That
way, they cannot be changed accidentally if the application program gets lost. The initial writes to SOPT1
and SOPT2 will reset the COP counter.
The write to SRS that services (clears) the COP counter 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.
In Background debug mode, the COP counter will not increment.
When the bus clock source is selected, the COP counter does not increment while the system is in stop
mode. The COP counter resumes once the MCU exits stop mode.
When the 32 kHz clock source is selected, the COP counter is re-initialized to zero upon entry to stop
mode. The COP counter begins from zero once the MCU exits stop mode.
52
Computer Operating Properly (COP) Watchdog
8
cycles).
1
Values are shown in this column based on t
“Control
COPCLKS
(SOPT2),” for additional information). If the COP watchdog is not used in an
0
0
1
1
Timing,” for the tolerance of this value.
Control Bits
MC9S08QD4 Series MCU Data Sheet, Rev. 6
Table 5-1. COP Configuration Options
Section 5.8.5, “System Options Register 2
COPT
0
1
0
1
Table 5-1
Clock Source
summaries the control functions of the COPCLKS and
~32 kHz
~32 kHz
RTI
Bus
Bus
= 1 ms. See t
RTI
COP Overflow Count
2
2
13
10
in the
cycles (256 ms)
cycles (32 ms)
2
2
13
18
Section A.8.1,
cycles
cycles
(SOPT2),” for additional
Section 5.8.5, “System
1
Freescale Semiconductor
1