Writing The Fclkdiv Register - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Functional description
The figure below shows a general flowchart of the flash command write sequence.
Clock Divider
Value Check
FCCOB
Availability Check
Access Error and
Protection Violation
Check
Bit Polling for
Command Completion
Check
Figure 11-1. Generic flash command write sequence flowchart
158
START
Read: FCLKDIV register
FDIV
no
Correct?
yes
Read: FSTAT register
no
CCIF
Set?
yes
ACCERR/
FPVIOL
Set?
no
Write to FCCOBIX register
to identify specific command
parameter to load.
Write to FCCOB register
to load required command parameter.
More
Parameters?
no
Write: FSTAT register (to launch command)
Clear CCIF 0x80
Read: FSTAT register
CCIF Set?
yes
EXIT
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
CCIF
Read: FSTAT register
Set?
yes
Write: FCLKDIV register
Results from previous Command
yes
Write: FSTAT register
Clear ACCERR/FPVIOL 0x30
yes
no
no
Note: FCLKDIV must be
set after each reset
NXP Semiconductors

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents