[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] SPI troubles on atmega8

From: Waldner, Ed
Subject: RE: [avr-gcc-list] SPI troubles on atmega8
Date: Wed, 11 Dec 2002 10:00:35 -0500

Although your comment next to the SS_BIT pin states correctly that when in 
master mode (which seems like what you are trying to do) it should be 
configured as output, your DDRB assignment configures it as an input. It may 
not be the root cause of your problem, but it certainly contributes to a sickly 
behaving SPI interface.


-----Original Message-----
From: Jamie Morken [mailto:address@hidden
Sent: Wednesday, December 11, 2002 2:25 AM
To: address@hidden
Subject: [avr-gcc-list] SPI troubles on atmega8


I am trying to get the SPI on my atmega8 chip to send 1 byte over the MOSI
After doing the send I wait for the transmit complete flag in the SPI status
to be set.  For some reason the flag is not being set and I don't think that
any data is
being transmitted either.

I put the code I am using here:

It locks up right before the line:
       PRINT("byte sent");


avr-gcc-list at http://avr1.org
avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]