Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8051 interfacing with microchip 23k256 sram

Status
Not open for further replies.

arogyareddyg

Newbie level 2
Joined
Apr 3, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
hi,

how to interface 8051 microcontroller with microchip 23k256 sram, any one have the c program and circuit diagram.

with regards,
ArogyaReddy.G
 

What is the make and model of your 8051 variant?

The 23k256 offers a standard SPI interface, many 8051 variants have an embedded SPI module.


BigDog
 

The SRAM interface is standard SPI. Here is the wiring between the 8051 and the SRAM.

23k256 <> 8051
Pin 1 /CS < Use any GPIO pin //not chip select, line is low to select device
Pin 2 SO > MISO //master in slave out, the 8051 is the master
Pin 3 NC - No connection
Pin 4 Vss > Ground
Pin 5 SI < MOSI //master out slave in, the 8051 is the master
Pin 6 SCK < SCK (aka SCLK) //SPI SCK
Pin 7 /Hold < Use any GPIO or connect to Vcc if not used //typically not used and tied to Vcc
Pin 8 Vcc < +2.7V to +3.6V

The 8051 is configured as master. Because it is master the not slave select pin (NSS, aka SS or other names) on the 8051 is not used. This 8051 pin can be configured as a GPIO and used for other purposes.

The software is dependent on which 8051 you are using and the IDE, neither was specified.

Hope this helps.
 
Last edited:

thanks for ur reply,

i am using nxp's P89V51RD2 microcontroller,

just i want to send and receive the from and to the 23k256 sram, using P89V51RD2 MCU.

please give me the circuit diagram and sample c code.

Thanks and regards,
Arogya Reddy.G
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top