Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

SPI Soft Bit order

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
StefanHamburg

Bascom Member



Joined: 02 Mar 2008
Posts: 73
Location: Germany

blank.gif
PostPosted: Mon Nov 10, 2014 10:05 am    Post subject: SPI Soft Bit order Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon Nov 10, 2014 10:46 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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