28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - 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.

Non-Volatile Memory FLASH (CMFR)<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

CLKPM[6:0] — Clock Period Multiplier Field<br />

The third term of the timing control is the linear clock multiplier, M. The<br />

clock period multiplier, CLKPM[6:0], defines a linear multiplier for the<br />

program or erase pulse. M is defined by:<br />

M = 1 + (CLKPM[6:0])<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

NOTE:<br />

This allows the program/erase pulse to be from 1 to 128 times the<br />

pulse set by the system clock period, SCLKR[2:0] and CLKPE[1:0].<br />

The default reset state of CLKPM[6:0] is binary 000 0000, which gives<br />

a multiplier of 1.<br />

The CLKPM[6:0] bits are not write protected by the SES bit. Unless the<br />

PAWS[2] bit is set, writes to CLKPM[6:0] in software should not be<br />

changed if SES = 1.<br />

No.<br />

1<br />

2<br />

3<br />

Table 9-6 shows an example of calculating the values of SCLKR[2:0],<br />

CLKPE[1:0] and CLKPM[6:0] for a 1-ms program pulse, ERASE = 0,<br />

in a system with a 33.0-MHz system clock having a period of 30.3 ns.<br />

Table 9-6. Determining SCLKR[2:0], CLKPE[1:0],<br />

and CLKPM[6:0]<br />

Example Calculation<br />

Determine SCLKR[2:0] — Table 9-4 shows that a SCLKR[2:0] value of 100<br />

and an R value of 3 gives a system clock frequency from 24 MHz to 36 MHz.<br />

Determine CLKPE[1:0] — 9.7.1 Control Registers shows that when<br />

ERASE = 0, a 1-ms program pulse can be generated by an N value of 7<br />

(CLKPE[1:0] = 10) or 8 (CLKPE[1:0] = 11). An N value of 8 is used in this<br />

example.<br />

Determine CLKPM[6:0] — Using the selected values of N and R in the pulse<br />

width equation, pulse width = system clock period × R × 2 N × M and solving<br />

for M yields 42.97. Rounding M to 43 and using the M equation,<br />

M = 1 + (CLKPM[6:0]) and solving for CLKPM[6:0] yields 42.<br />

4<br />

Check the results — pulse width = 30.3 ns × 3 × 2 8 × 43 = 1.00 ms where<br />

SCLKR[2:0] = 100, CLKPE[1:0] = 11, CLKPM[6:0] = 0101010, ERASE = 0,<br />

system clock frequency = 33.0 MHz<br />

Technical Data <strong>MMC2107</strong> – Rev. 2.0<br />

200 Non-Volatile Memory FLASH (CMFR) MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

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

Saved successfully!

Ooh no, something went wrong!