Page 1 of 1

SPI bus to External Output Pin ASM code

Posted: Fri May 18, 2012 11:46 am
by dswheeley
Hi all

Not a great ASM coder, I have some existing ASM code from a PIC application note, but I need to access some of the data on the SPI bus on an external PIN, any thoughts on how to do this.

Any help would be greatly appreciated

Best Regards

Darren

Re: SPI bus to External Output Pin ASM code

Posted: Mon May 21, 2012 11:03 am
by Benj
Hi Darren,

Any chance you can use the SPI component in Flowcode? This should provide you with master SPI functionality without having to resort to assembler. You then simply need to use an output icon in single bit mode to control the CS signal and the SPI component macros to shift the data in or out.

Re: SPI bus to External Output Pin ASM code

Posted: Tue May 22, 2012 12:16 pm
by dswheeley
Hi Ben,
Many thanks for that I will certainly try that and see if it works, we do have working ASM code that compiles but internal values are passed via the SPI bus we just need to bring this out to an external pin, sounds simple...:)

Best Regards

Darren

Re: SPI bus to External Output Pin ASM code

Posted: Wed May 23, 2012 2:14 pm
by Benj
Hi Darren,

There are some examples of using assembler code inside Flowcode here.
http://www.matrixmultimedia.com/mmforum ... f=5&t=3230