| Electronic Components Datasheet Search |
|
SH7262 Datasheet(PDF) 42 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7262 Datasheet(HTML) 42 Page - Renesas Technology Corp |
|
42 / 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 42 of 45 3.24 Sample Program Listing "serial_flash.h" (2/2) 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 #ifndef _SERIAL_FLASH_H_ #define _SERIAL_FLASH_H_ /* ==== Macro definition ==== */ #define SF_PAGE_SIZE 256 /* Page size of serial flash memory */ #define SF_SECTOR_SIZE 0x10000 /* Sector size = 64 KB */ #define SF_NUM_OF_SECTOR 32 /* Number of sectors: 32 */ enum sf_req{ SF_REQ_PROTECT = 0, /* Requests to protect */ SF_REQ_UNPROTECT /* Requests to unprotect */ }; /* ==== Function prototype declaration ==== */ void sf_init_serial_flash(void); void sf_protect_ctrl(enum sf_req req); void sf_chip_erase(void); void sf_sector_erase(int sector_no); void sf_byte_program(unsigned long addr, unsigned char *buf, int size); void sf_byte_read(unsigned long addr, unsigned char *buf, int size); void sf_byte_read_long(unsigned long addr, unsigned long *buf, int size); /* ==== Variable definition ==== */ #endif /* _SERIAL_FLASH_H_ */ /* End of File */ |
|
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 |