03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FCCOB<br />

Availability Check<br />

Clock Divider<br />

Value Check<br />

START<br />

Read: FCLKDIV register<br />

Access Error and<br />

Protection Violation<br />

Check<br />

FDIV<br />

Correct?<br />

yes<br />

Read: FSTAT register<br />

no<br />

CCIF<br />

Set?<br />

Bit Polling for<br />

Command Completion<br />

Check<br />

no<br />

yes<br />

ACCERR/<br />

FPVIOL<br />

Set?<br />

no<br />

Write to FCCOBIX register<br />

to identify specific command<br />

parameter to load.<br />

Write: FSTAT register (to launch command)<br />

Clear CCIF 0x80<br />

Figure 17-25. Generic Flash Command Write Sequence Flowchart<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

64 KByte Flash Module (S12FTMRG64K512V1)<br />

Write: FSTAT register<br />

Clear ACCERR/FPVIOL 0x30<br />

<strong>Freescale</strong> <strong>Semiconductor</strong> 485<br />

yes<br />

Write to FCCOB register<br />

to load required command parameter.<br />

More<br />

Parameters?<br />

no<br />

Read: FSTAT register<br />

CCIF Set?<br />

yes<br />

EXIT<br />

Read: FSTAT register<br />

yes<br />

no<br />

CCIF<br />

Set?<br />

yes<br />

no<br />

Write: FCLKDIV register<br />

Note: FCLKDIV must be<br />

set after each reset<br />

Results from previous Command

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!