| Electronic Components Datasheet Search |
|
SH7262 Datasheet(PDF) 24 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7262 Datasheet(HTML) 24 Page - Renesas Technology Corp |
|
24 / 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 24 of 45 3.6 Sample Program Listing "serial_flash.c" (3/19) 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 void sf_init_serial_flash(void) { /* ==== Initializes the RSPI0 ==== */ io_init_rspi(); } /*""FUNC COMMENT""************************************************************** * ID : * Outline : Protect/unprotect operation *------------------------------------------------------------------------------ * Include : "serial_flash.h" *------------------------------------------------------------------------------ * Declaration : void sf_init_serial_flash(void); *------------------------------------------------------------------------------ * Description : Protects or unprotects serial flash memory. * : Use the argument req to specify. Default setting and unprotecting * : method depends on the specifications of the serial flash memory. *------------------------------------------------------------------------------ * Argument : enum sf_req req ; I : SF_REQ_UNPROTECT -> Write-enable all sectors * : SF_REQ_PROTECT -> Write-protect all sectors *------------------------------------------------------------------------------ * Return Value : void *------------------------------------------------------------------------------ * Note : None *""FUNC COMMENT END""**********************************************************/ void sf_protect_ctrl(enum sf_req req) { if( req == SF_REQ_UNPROTECT ){ write_status( UNPROTECT_WR_STATUS); /* Unprotects total area */ } else{ write_status( PROTECT_WR_STATUS ); /* Protects total area */ } } |
|
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 |