Forum - MCS Electronics
View previous topic :: View next topic
Author
Message
StefanHamburg Joined: 02 Mar 2008 Posts: 73 Location: Germany
Posted: Mon Nov 10, 2014 10:05 am Post subject: SPI Soft Bit order
Hello,
one question regarding the configuration for Soft-SPI:
In BASCOM-8051 the Help says
Quote: CONFIG SPI = SOFT, DIN = PIN, DOUT = PIN , CS = PIN, CLK = PIN ,DATA ORDER = DO , NOCS =
Quote: DATA ORDER
Use MSB or LSB. With MSB, MS bit will be sent first. LSB option will send the LS bit first.
whereas in BASCOM-AVR the Help says:
Quote: Syntax for software SPI
CONFIG SPI|SPISOFT = SOFT, DIN = PIN, DOUT = PIN , SS = PIN|NONE, CLOCK = PIN , SPIIN=value , MODE=mode
How can I configure the Bitorder in BASCOM AVR for Soft-SPI?
(I understand that MODE is for configuring cpol and cpha)
Thank you
Regards
Stefan
(BASCOM-AVR version : 2.0.7.7 )
Back to top
albertsm Joined: 09 Apr 2004 Posts: 5913 Location: Holland
Posted: Mon Nov 10, 2014 10:46 am Post subject:
hi Stefan
The soft spi is MS bit first. And this is fixed. But if you require it,send me a private email and we can discuss it. _________________ Mark
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum