[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] SPI troubles on atmega8
From: |
Jamie Morken |
Subject: |
Re: [avr-gcc-list] SPI troubles on atmega8 |
Date: |
Wed, 11 Dec 2002 23:22:41 -0800 |
Hi,
> Try reading the SPSR register before writing the SPDR register.
> Reading the SPSR register will clear the flag.
The SPIF flag (in SPSR) isn't set until the data transmission is done.
The problem I had was because I wasn't holding the slave select pin
high on the master, so it was reverting into slave mode.
cheers,
Jamie
avr-gcc-list at http://avr1.org