Word varibale needed for high speed SPI type interface
Hi All.
I believe and just read it going thru the help files re SXB compiler that we now can use
Word variabels.. but nowhere can I find that we can use it together with the Shiftin or Shiftout
instruction.
I need to be able to do shiftin at > 60KHZ which falls within the specs..10 bit data..
But cannot do two 2 bits shiftins as this would add time to the low or high time
of the clock signal to a SSI type encoder ..it resets the buffer (10bit data) after the clock stay's
hi or low for longer than 40 micro-seconds...
I reckon to time to jump from one shiftin ( for the first byte) to the next shiftin to get the next byte
of data would be an issue .. so that why the question can we do 10 bits into 1word now using the
shiftin function ( with SX B compiler )
We can bit bash this in either propeller or SX asm but why bother if the SX B compiler can do it ..
Can somebody please advise me on this issue ..
Ronald Nollet··· Australia
·
I believe and just read it going thru the help files re SXB compiler that we now can use
Word variabels.. but nowhere can I find that we can use it together with the Shiftin or Shiftout
instruction.
I need to be able to do shiftin at > 60KHZ which falls within the specs..10 bit data..
But cannot do two 2 bits shiftins as this would add time to the low or high time
of the clock signal to a SSI type encoder ..it resets the buffer (10bit data) after the clock stay's
hi or low for longer than 40 micro-seconds...
I reckon to time to jump from one shiftin ( for the first byte) to the next shiftin to get the next byte
of data would be an issue .. so that why the question can we do 10 bits into 1word now using the
shiftin function ( with SX B compiler )
We can bit bash this in either propeller or SX asm but why bother if the SX B compiler can do it ..
Can somebody please advise me on this issue ..
Ronald Nollet··· Australia
·
Comments
· Use \10 after the word variable to shiftin 10 bits.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Thanks mate
Will try that thanks .. this SX B complier is starting to get pretty cool.
Too easy ..why bother doing it any other way.. SX 28 cheap and fast.
Are you the guy that did this SX B compiler ?
Ronald Nollet Australia
I do everything will SX/B (with possibly some embedded assembler if needed). So I agree.
I currently take care of changes to the compiler.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·