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.

Problem in SPI communication

Status
Not open for further replies.

bm_soe

Member level 1
Joined
Jan 6, 2004
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
170
I 've some problem in SPI communication between two BF561 EZ

lite kit.

i've made proper connection,i.e.,SCK-SCK,

MISO-MISO,MOSI-MOSI,

PF1(slave select from master)-PF0(SPISS of Slave).

some typical values i 've used is

SPI_BAUD=85;

SPI_CTL=0x5C00(for master) (SPE,MASTER,CPOL,CPHA,TIMOD-00)

SPI_CTL=0x4C01(for slave) (SPE, Slave, CPOL, CPHA, EMISO, TIMOD-01)

interrupt ivg9 is used for both master and slave.

master continously receive and slave continously transmit 0xAA .

But data is not received properly,i.e., when slave sends

0xAA, Master receives other values like 0x55,0x0A,0xAB and other garbage type values. Sometimes it receives 0xAA.

what is the problem?
 

Hi

This might be your problem :

"MISO-MISO,MOSI-MOSI,"

connect

MISO->MOSI,

you might also heve soft problem

use demo software to cjeck it

All the best

Bobi
 

no man we can't connect like this. as for slave is transmitting so slave out and master is receiving so master in .
so MISO-MISO
and MOSI-MOSI
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top