| Electronic Components Datasheet Search |
|
SH7262 Datasheet(PDF) 18 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7262 Datasheet(HTML) 18 Page - Renesas Technology Corp |
|
18 / 45 page ![]() SH7262/SH7264 Group High-speed Read/Write Serial Flash Memory Using the Renesas Serial Peripheral Interface REJ06B0889-0100/Rev.1.00 June 2009 Page 18 of 45 2.4.3 Main Function The figure below shows the flow chart of the main function in the sample program. The sample program writes data in the entire memory array, and compares the written value to the read value. Main function Verify OK? Yes No • To access serial flash memory, initialize the RSPI as described in 2.4.1 RSPI Initialization Example. Initialize the RSPI • Unprotect serial flash memory using the Write Status Register command (H'01). Unprotect serial flash memory Read one sector (64 KB) data from serial flash memory (note) Display an error Protect serial flash memory • Execute the Read Array command (H'0B). As this command reads the entire memory array continuously, the command reads data in sectors in this application. Specify the access width to the Data register (SPDR) in longword. Write one page (256 bytes) data in serial flash memory • Execute the Byte/Page Program command (H'02). As the Byte/Page program command cannot write data more than the size of one page (256 bytes), continue to execute this command to write in the entire memory array. Writing in all sectors completed? Yes No Compare the written data value with the provided data Erase the entire memory array • Erase the entire memory array in serial flash memory using the Chip Erase command (H'C7). Generate one sector write data (64 KB) Writing one sector data completed? No Yes Reading all sectors completed? Yes No Note: When using the DMA transfer, cache coherency must be maintained by software. This sample program assigns the transfer destination buffer in cache-disabled space. Figure 15 Main Function Flow Chart |
|
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 |