Well for now I have been able to start the SD card from the module (AT commands).<br><br>// open SPI channel<br>AT^SSPI=1010,0000,0000,0000,0000<br><br>// in data mode: initialize SD card<br><a000008400000000095><br>
<br>It seems to be possible to start the card (i'm getting on stuff on the data out of the SD card), but I'm not sure I can proceed further. How should I change (possibly) the state of that CS card (if I could !) ?
<br><br>Thanks<br><br>Romain<br><br><div><span class="gmail_quote">2007/10/18, Marcin Mazurek <<a href="mailto:mmazure2@wp.pl">mmazure2@wp.pl</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, here is some code snippets which I use to communicate from TC65 to<br>ATMega with SPI:<br><br>Open SPI channel:<br>AT^SSPI=1010,0000,0000,0000,0000<br><br>this is SPI channel in mode 0 on 250 kbps.<br><br>Now You have to open input and output stream:
<br><br> OutputStream atOs = atCmd.getDataOutputStream();<br> InputStream atIs = atCmd.getDataInputStream();<br><br>After that, You have open SPI channel with streams to which You can<br>write and read from.
<br>That should be enaugh to communicate with any SPI device, but with SD<br>card is one problem.<br>When you want to initialize SD card, you have to change the state of CS<br>line, and when You open SPI channel, You cannot controll CS line.
<br>Thats what I know. I hope this will help You.<br>And I hope You'll chare your experience with TC65 and SD card. Let me<br>know, if You'll have any problem.<br><br>Best regards<br>Marcin Mazurek<br><br><a href="mailto:dev65-request@castrov.cuug.ab.ca">
dev65-request@castrov.cuug.ab.ca</a> pisze:<br>> Send dev65 mailing list submissions to<br>> <a href="mailto:dev65@castrov.cuug.ab.ca">dev65@castrov.cuug.ab.ca</a><br>><br>> To subscribe or unsubscribe via the World Wide Web, visit
<br>> <a href="http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65">http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65</a><br>> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:dev65-request@castrov.cuug.ab.ca">dev65-request@castrov.cuug.ab.ca</a><br>><br>> You can reach the person managing the list at<br>> <a href="mailto:dev65-owner@castrov.cuug.ab.ca">
dev65-owner@castrov.cuug.ab.ca</a><br>><br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of dev65 digest..."<br>><br>><br>> Today's Topics:<br>
><br>> 1. Siemens TC65 Platform and SPI (Romain Farkas)<br>><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1<br>> Date: Thu, 18 Oct 2007 15:49:24 +0200
<br>> From: "Romain Farkas" <<a href="mailto:romain.farkas@epfl.ch">romain.farkas@epfl.ch</a>><br>> Subject: [dev65] Siemens TC65 Platform and SPI<br>> To: <a href="mailto:dev65@castrov.cuug.ab.ca">
dev65@castrov.cuug.ab.ca</a><br>> Message-ID:<br>> <<a href="mailto:87a7df4f0710180649t270fb0a5n77355575393a3819@mail.gmail.com">87a7df4f0710180649t270fb0a5n77355575393a3819@mail.gmail.com</a>><br>> Content-Type: text/plain; charset="iso-8859-1"
<br>><br>> Hello,<br>><br>> I'm looking for a code snippet using the AT^SSPI command to configure a<br>> device on the SPI bus. We're trying to implement a SD card reader on the<br>> Siemens Wireless platform.
<br>><br>> Many thanks,<br>><br>> Romain Farkas<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <a href="http://castrov.dyndns.org/pipermail/dev65/attachments/20071018/478c1e29/attachment-0001.htm">
http://castrov.dyndns.org/pipermail/dev65/attachments/20071018/478c1e29/attachment-0001.htm</a><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> dev65 mailing list
<br>> <a href="mailto:dev65@castrov.cuug.ab.ca">dev65@castrov.cuug.ab.ca</a><br>> <a href="http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65">http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65</a><br>>
<br>><br>> End of dev65 Digest, Vol 4, Issue 1<br>> ***********************************<br>><br>><br>><br><br><br>_______________________________________________<br>dev65 mailing list<br><a href="mailto:dev65@castrov.cuug.ab.ca">
dev65@castrov.cuug.ab.ca</a><br><a href="http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65">http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65</a><br></blockquote></div><br>