| Electronic Components Datasheet Search |
|
PC87591L Datasheet(PDF) 252 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
PC87591L Datasheet(HTML) 252 Page - National Semiconductor (TI) |
|
252 / 437 page ![]() Embedded Controller Modules (Continued) www.national.com 252 Revision 1.07 4. Read the data as follows: a. Set IR to Flash Data Read Scan instruction. b. Scan out of the chip the first word of the data. c. Repeat step b for additional data words for consecutive addresses. Flash Data Erase Pages, sections or the entire flash device (special erase) can be erased. If the flash is locked (FLAEN in the Flash Status register is set), a special erase must be performed. To select and perform a flash erase, perform the following sequence: 1. Enable flash access (if not already enabled). 2. Set the desired erase mode as follows: a. Set IR to Flash Control and Status Scan instruction. b. Scan in a code of 810016 (page erase), 820016 (section erase) or 840016 (special erase). 3. Set the address as follows: a. Set IR to Flash Address Scan instruction. b. Scan an address into the memory block to be erased, specifying the correct block. 4. Erase the page or section as follows: a. Set IR to Flash Data Erase Scan instruction. b. Scan the erase command into the chip with 116 data. c. Repeat the scan with 016 data until the Busy status flag indicates erase completion. The Error bit indicates if the erase was successful. In case of an error, the failing address is provided in Flash Address register. d. To erase additional pages or sections, repeat the Set Address (3) and Erase (4) operations. 5. Erase the entire flash device (special erase) as follows: a. Set IR to Flash Data Erase Scan instruction. b. Scan the erase command into the chip with 116 data. c. Repeat the scan with 016 data until the Busy status flag indicates erase completion. The Error bit indicates if the erase was successful. In case of an error, the failing address is provided in Flash Address register. d. If there is no error indication, repeat steps b and c two more times. Flash Data Write Writing data to the flash should be done after properly erasing the page (see “Flash Page Organization and Erase Options” on page 221 for flash write after erase limitations). To write data, perform the following sequence: 1. Enable flash access (if not already enabled). 2. Set the flash to Program mode as follows: a. Set IR to Flash Control and Status Scan instruction. b. Scan in a code of 808016 for program enable. 3. Set the address as follows: a. Set IR to Flash Address Scan instruction. b. Scan an address into the memory address to be written. 4. Write the block as follows: a. Set IR to Flash Data Write Scan instruction. b. Scan the write data into the chip with the data byte/word and Valid bit set. c. Repeat the scan instruction as long as the Valid bit is cleared, checking for the returned Valid status flag to indicate a ‘not busy’ status. The Error bit indicates if an error occurred during the write process of the previous word. On suc- cessful write completion, the address is incremented to the next address. In case of an error, the failing address is provided in Flash Address register; further writes are disabled until the error flag is cleared. The exact source of the error is provided in FL_CT_ST register. The error may be cleared using FL_CT_ST register. 5. Repeat the write operation (step 4) for writing data to successive addresses. 6. Check that the write is completed by reading the Flash Status bit until it indicates that the flash is not busy; to do this: a. Set IR to Flash Control and Status Scan instruction. b. Scan in a code of 808016, maintaining the program enable. c. Check the capture status for completion of the last write (the FMBUSY bit should be cleared). d. Repeat steps b and c until the flash is not busy. |
|
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 |