Electronic Components Datasheet Search
  English  ▼

X  

SH7262 Datasheet(PDF) 26 Page - Renesas Technology Corp

Part # SH7262
Description  High-speed Read/Write Serial Flash Memory
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

SH7262 Datasheet(HTML) 26 Page - Renesas Technology Corp

Back Button SH7262 Datasheet HTML 22Page - Renesas Technology Corp SH7262 Datasheet HTML 23Page - Renesas Technology Corp SH7262 Datasheet HTML 24Page - Renesas Technology Corp SH7262 Datasheet HTML 25Page - Renesas Technology Corp SH7262 Datasheet HTML 26Page - Renesas Technology Corp SH7262 Datasheet HTML 27Page - Renesas Technology Corp SH7262 Datasheet HTML 28Page - Renesas Technology Corp SH7262 Datasheet HTML 29Page - Renesas Technology Corp SH7262 Datasheet HTML 30Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 45 page
background image
SH7262/SH7264 Group
High-speed Read/Write Serial Flash Memory
Using the Renesas Serial Peripheral Interface
REJ06B0889-0100/Rev.1.00
June 2009
Page 26 of 45
3.8
Sample Program Listing "serial_flash.c" (5/19)
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
void sf_sector_erase(int sector_no)
{
unsigned char cmd[4];
unsigned long addr = sector_no * SF_SECTOR_SIZE;
cmd[0] = SFLASHCMD_SECTOR_ERASE;
cmd[1] = (addr >> 16) & 0xff;
cmd[2] = (addr >>
8) & 0xff;
cmd[3] =
addr
& 0xff;
write_enable();
io_cmd_exe(cmd, 4, NULL, 0);
busy_wait();
}
/*""FUNC COMMENT""**************************************************************
* ID
:
* Outline
: Program data
*------------------------------------------------------------------------------
* Include
:
*------------------------------------------------------------------------------
* Declaration
: void sf_byte_program(unsigned long addr, unsigned char *buf, int size);
*------------------------------------------------------------------------------
* Description
: Programs the specified data 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.
*
: The maximum write data size depends on the type of the device.
*------------------------------------------------------------------------------
* Argument
: unsigned long addr ; I : Address in serial flash memory to write
*
: unsigned char *buf ; I : Buffer address to store the write data
*
: int size
; I : Number of bytes to write
*------------------------------------------------------------------------------
* Return Value : void
*------------------------------------------------------------------------------
* Note
: None
*""FUNC COMMENT END""**********************************************************/
void sf_byte_program(unsigned long addr, unsigned char *buf, int size)
{
unsigned char cmd[4];
cmd[0] = SFLASHCMD_BYTE_PROGRAM;
cmd[1] = (unsigned char)((addr >> 16) & 0xff);
cmd[2] = (unsigned char)((addr >>
8) & 0xff);
cmd[3] = (unsigned char)( addr
& 0xff);
write_enable();
io_cmd_exe(cmd, 4, buf, size);
busy_wait();
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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