| Electronic Components Datasheet Search |
|
SH7262 Datasheet(PDF) 25 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7262 Datasheet(HTML) 25 Page - Renesas Technology Corp |
|
25 / 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 25 of 45 3.7 Sample Program Listing "serial_flash.c" (4/19) 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 /*""FUNC COMMENT""************************************************************** * ID : * Outline : Chip erase *------------------------------------------------------------------------------ * Include : *------------------------------------------------------------------------------ * Declaration : void sf_chip_erase(void); *------------------------------------------------------------------------------ * Description : Erases all bits in serial flash memory. * : Before erasing or programming, issue the Write Enable command. * : After erasing or programming, make sure to check the status of * : serial flash memory if it is not busy. *------------------------------------------------------------------------------ * Argument : void *------------------------------------------------------------------------------ * Return Value : void *------------------------------------------------------------------------------ * Note : None *""FUNC COMMENT END""**********************************************************/ void sf_chip_erase(void) { unsigned char cmd[1]; cmd[0] = SFLASHCMD_CHIP_ERASE; write_enable(); io_cmd_exe(cmd, 1, NULL, 0); busy_wait(); } /*""FUNC COMMENT""************************************************************** * ID : * Outline : Sector erase *------------------------------------------------------------------------------ * Include : *------------------------------------------------------------------------------ * Declaration : void sf_sector_erase(void); *------------------------------------------------------------------------------ * Description : Erases the specified sector in serial flash memory. * : Before erasing or programming, issue the Write Enable command. * : After erasing or programming, make sure to check the status of * : serial flash memory if it is not busy. *------------------------------------------------------------------------------ * Argument : int sector_no ; I : Sector number *------------------------------------------------------------------------------ * Return Value : void *------------------------------------------------------------------------------ * Note : None *""FUNC COMMENT END""**********************************************************/ |
|
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 |