Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

SPI slave in codevision help

SPI slave in codevision help

2003-12-08 by ckbanner

Hello,

I am in desperate need of some slave code for SPI bus in codevision.  
All I want the mega8 (my microcontroller of choice) to do is 
constantly send out a value.  This is just for testing purposes.  I 
have another controller (OOPic-R) capable of SPI and it is configured 
as the master.  I have it onstantly reaing the SPI bus for the data 
coming from my avr, but I never recieve anything.  Here is part of my 
Codevision code:

In used codewizard avr to generate the code so I am assuming that 
that part is right.

I have included all the needed files here

char sendvalue;
sendvalue = 0b01010101


while(1)
{

spi(sendvalue);

}


Could someone please help me?

Thanks,
Kc

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.