At 05:28 PM 14/01/04 -0500, you wrote:
>>So you are not using mode 3 as CPHA and CPOL are zero. (have deleted your
>>previous email)
>
>
>My slave isn't really SPI, just clocked serial.
>I need to send 104 bytes as fast as possible, so the SPI works nicely.
Well in that case there are 2 things you can try.
Use the code snippets I send earlier, even though it's not
what you want, you will be able to see something happening
IF the hardware is not faulty. This code is used on a project
I'm working on currently where the M8 is talking to a GSM
modem and data is sent to a 68HC11 board via the SPI.
Change to mode 3 temporarily (CPHA and CPOL are one)
and use the low speed SPI mode. If it works then you can
try changing things and see where it fails.
Also make sure that the SS pin is set as an output so it doesn't
influence the SPI.
Don't know if I can do anymore as I know that you are quite
experienced, but sometimes just talking about a problem will
show the answer. I talk to my budgies regularly and they are
quite IT savvy :-))
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://ampertronics.com.au
* Electronic Design * Technical Services * Contract Assembly
******************************************************Message
Re: [AVR-Chat] M8 SPI
2004-01-15 by John Samperi
Attachments
- No local attachments were found for this message.