From: Jason Mcmullan <jason.mcmullan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: AT91 SPI Slave - Anyone get it to work?
Date: Fri, 25 May 2007 10:06:56 -0400 [thread overview]
Message-ID: <1180102016.23577.25.camel@localhost> (raw)
I'm working on an AT91SAM9260EK board, and am trying to use the
SPI1 bus in slave mode under Linux.
I have an interrupt handler, and am doing byte-at-time transactions
using SPI_TDR and SPI_RDR (and SPI_TDRE and SPI_RDRF interrupts)
I can receive bytes fine, but my transmitted bytes seem garbled.
My scoped lines looks like clean data and clock, just *wrong* data.
I am running at 100Khz, so it shouldn't be a speed issue.
I'm using 8-bit data buffers.
I've been working on this for about a week, and I'm ready to tear my
hair out in frustration.
Has *anyone* gotten their AT91 SPI to work in slave mode in any fashion?
Thanks.
--
Jason Mcmullan <jason.mcmullan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Evil Labs
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
reply other threads:[~2007-05-25 14:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1180102016.23577.25.camel@localhost \
--to=jason.mcmullan-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.