Electronic Components Datasheet Search
  English  ▼

X  

SH7262 Datasheet(PDF) 36 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) 36 Page - Renesas Technology Corp

Back Button SH7262 Datasheet HTML 32Page - Renesas Technology Corp SH7262 Datasheet HTML 33Page - Renesas Technology Corp SH7262 Datasheet HTML 34Page - Renesas Technology Corp SH7262 Datasheet HTML 35Page - Renesas Technology Corp SH7262 Datasheet HTML 36Page - Renesas Technology Corp SH7262 Datasheet HTML 37Page - Renesas Technology Corp SH7262 Datasheet HTML 38Page - Renesas Technology Corp SH7262 Datasheet HTML 39Page - Renesas Technology Corp SH7262 Datasheet HTML 40Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 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 36 of 45
3.18
Sample Program Listing "serial_flash.c" (15/19)
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
/*""FUNC COMMENT""**************************************************************
* ID
:
* Outline
: Execute command (With read data, longword transfer).
*------------------------------------------------------------------------------
* Include
:
*------------------------------------------------------------------------------
* Declaration
: static void io_cmd_exe_rdmode_cpu_l(unsigned char *ope, int ope_sz,
*
:
unsigned long *rd,
int rd_sz);
*------------------------------------------------------------------------------
* Description
: Executes the specified command.
*
: Transmits the argument ope, and then receives data in the argument rd.
*
: Transfer the read data in units of longword.
*
: Set one of the values between 0 and 8 in the ope_sz.
*
: Although more than 0 can be set in the rd_sz, set the value
*
: in multiples of 4.
*------------------------------------------------------------------------------
* Argument
: unsigned long *ope ; I : Start address of the opcode block and
*
address block to transmit
*
: int ope_sz
; I : Number of bytes in the opcode block and
*
: address block
*
: unsigned long *rd
; I : Buffer address to store the received data
*
: int rd_sz
; I : Number of bytes in the data block
*------------------------------------------------------------------------------
* Return Value : void
*------------------------------------------------------------------------------
* Note
: None
*""FUNC COMMENT END""**********************************************************/
static void io_cmd_exe_rdmode_cpu_l(unsigned char *ope, int ope_sz, unsigned long *rd, int
rd_sz)
{
/* ==== Resets buffer ==== */
RSPI0.SPBFCR.BYTE
= 0xC0u;
RSPI0.SPBFCR.BYTE
= 0x00u;
/* ---- Enables the SPI transfer ---- */
RSPI0.SPCR.BIT.SPE = 1;
/* ---- MOSI (command, address, dummy) ---- */
RSPI0.SPCMD0.BIT.CPOL= 1;
/* RSPCK when idling is 1 */
RSPI0.SPCMD0.BIT.CPHA= 0;
/* Outputs data on even (rising) edge */
while(ope_sz--){
RSPI0.SPDR.BYTE = *ope++;
/* Command size must be equal or less than 8 bytes */
}
io_wait_tx_end();
/* Waits for transfer end */



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