| Electronic Components Datasheet Search |
|
R8C2K Datasheet(PDF) 398 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C2K Datasheet(HTML) 398 Page - Renesas Technology Corp |
|
398 / 471 page ![]() R8C/2K Group, R8C/2L Group 20. Flash Memory Rev.1.10 Dec 21, 2007 Page 381 of 450 REJ09B0406-0110 20.4.3.2 Suspend Function The suspend function halts auto-erasure and auto-programming temporarily while these operations are in progress. This function is used for interrupt handling as the user ROM area can be read after the above operations have been suspended. When using erase-suspend or program-suspend in EW0 mode, first check the status of the flash memory in the interrupt routine and then enter erase-suspend or program-suspend. Figure 20.15 shows the Timing of Suspend Operation in EW0 Mode. The procedure for entering erase-suspend during auto-erase operation is as follows: (1) Set the FMR40 bit to 1 (suspend enabled) (2) Set the FMR41 bit to 1 (erase-suspend request). (3) Wait for td (SR-SUS). (4) Confirm that the FMR46 bit is set to 1 (reading enabled) (5) Access the user ROM area. (6) When the FMR41 bit is set to 0 (erasure restarts), auto-erase operation restarts. The procedure for entering program-suspend during auto-programming operation is as follows: (1) Set the FMR40 bit to 1 (suspend enabled) (2) Set the FMR42 bit to 1 (program-suspend request). (3) Wait for td (SR-SUS). (4) Confirm that the FMR46 bit is set to 1 (reading enabled) (5) Access the user ROM area. (6) When the FMR42 bit is set to 0 (programming restarts), auto-programming operation restarts. Figure 20.15 Timing of Suspend Operation in EW0 Mode FMR00 bit in FMR0 register FMR46 bit in FMR4 register FMR44 bit in FMR4 register FMR43 bit in FMR4 register 1 0 1 0 1 0 1 0 Erasure starts Erasure suspends Programming starts Programming suspends Programming restarts(1) Programming ends During erasure During programming During programming Erasure restarts Erasure ends During erasure Check that the FMR43 bit is set to 1 (during erase execution), and that the erase-operation has not ended. Check that the FMR44 bit is set to 1 (during program execution), and that the program has not ended. Check the status, and that the programming ends normally. Check the status, and that the erasure ends normally. NOTE: 1. If program-suspend is entered during erase-suspend, restart programming first. The above figure shows an example of the use of program-suspend during programming following erase-suspend. FMR41 bit in FMR4 register FMR42 bit in FMR4 register 1 0 1 0 Set to 1 by a program Set to 1 by a program Set to 0 by a program Set to 0 by a program Remains 1 during suspend Remains 0 during suspend |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |