EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Problem interfacing 23k256 w/ MSP430f2619

Started by Unknown October 1, 2012
Hello!

I'm facing some problems when interfacing my msp430f2619 with 23k256 (SPI).

The problem is that i cannot read the RAM chip (even tough i'm sending the
commands). Can you guys please help me?

Here's my project:

1) Electrical connections

23k256 -> MSP430F2619
1 (/CS) -> P5.0
2 (SO) -> P5.2
3 (NC)
4 (GND) to Gnd
5 (SI) -> P5.1
6 (CLK) -> P5.3
7 (/Hold) to +Vcc
8 (VCC) to + Vcc

2) Codes
a) Pin configuration

b) SPI configuration

-- QUESTION: In 23k256 datasheet it says: data "Set on rising clk, capture
on falling". So i shouldn't change the clock polarity, right? (i've seen
some projects they change... but when changing mine, nothing changes at
all....)
--
c) Function calls


d) Function definitions


e) My defines


That's all, guys. Hope you can help me. Been 1 week looping this and up to
now, no solution...

Beginning Microcontrollers with the MSP430

Just adding new info:

Apparently my 23k256 is working fine. When i switch SIMO and SOMI ports and send data to device, SO high output state causes voltage loss in the instruction sent...
Checked VCC, /HOLD and GND pins -> OK
Functions (SO/Si/CLK/CS) can be seen is scope.
SI versus CLK working fine.
CS versus SI working fine.
CS versus CLK working fine.

SO not working at all....

Signals seen is scope are just same as AN1277 from microchip site...

Added: Screen shots of wave forms.

ALL CLK (yellow) versus SI (data in 23k256) (blue)
-- Sending write status register cmd and 0x1 (byte_mode + hold_off)--
http://imageshack.us/a/img829/7087/p011012113801.jpg
-- Sending read status register cmd and dummy write --
http://imageshack.us/a/img255/6731/p0110121138.jpg
Cheers

The 2024 Embedded Online Conference