mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 174

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Clock, Reset and Power Management (S12CPMU_UHV)
It is possible to generate with the API a waveform at the external pin API_EXTCLK by setting APIFE and
enabling the external access with setting APIEA.
4.7
4.7.1
Usually applications run in MCU Normal Mode
It is recommended to write the CPMUCOP register in any case from the application program initialization
routine after reset no matter if the COP is used in the application or not, even if a configuration is loaded
via the flash memory after reset
right value for the application) the write once for the COP configuration bits (WCOP,CR[2:0]) takes place
which protects these bits from further accidental change
runaway) the COP configuration can not be accidentally modified anymore
4.7.2
In many applications the COP is used to check that the program is running and sequencing properly. Often
the COP is kept running during Stop Mode and periodic wake-up events are needed to service the COP on
time and maybe to check the system status
For such an application it is recommended to use the ACLK as clock source for both COP and API. This
guarantees lowest possible IDD current during Stop Mode
using the same clock source for both, COP and API
The Interrupt Service Routine (ISR) of the Autonomous Periodic Interrupt API should contain the write
instruction to the CPMUARMCOP register. The value (byte) written is derived from the “main routine”
(alternating sequence of $55 and $AA) of the application software
Using this method, then in the case of a runtime or program sequencing issue the application “main
routine” is not executed properly anymore and the alternating values are not provided properly. Hence the
COP is written at the correct time (due to independent API interrupt request) but the wrong value is written
(alternating sequence of $55 and $AA is no longer maintained) which causes a COP reset
If the COP is stopped during any Stop Mode it is recommended to service the COP shortly before Stop
Mode is entered.
174
Initialization/Application Information
General Initialization information
Application information for COP and API usage
The first period after enabling the counter by APIFE might be reduced by
API start up delay t
.
MC9S12VR Family Reference Manual,
By doing a “controlled” write access in MCU Normal Mode (with the
Preliminary - Subject to Change Without Notice
sdel
.
.
.
NOTE
.
.
In case of a program sequencing issue (code
.
Additionally it eases software implementation
.
Rev. 2.2
.
Freescale Semiconductor
.

Related parts for mc9s12vr48