spi command bytes

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times
Contact:

spi command bytes

Post by Tony Brown »

Hi,

I need to send a 4 byte command sequence (C7h, 94H, 90H and 9AH) via spi interface to erase an external eprom, anyone know how I do this. When I try entering it in spi_send_char it says "parameter 1 is invalid".

Thanks

Tony

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: spi command bytes

Post by medelec35 »

Hi Tony,
Have you tried 0xC7 etc?


Martin
Martin

Tony Brown
Posts: 81
Joined: Wed Jun 20, 2012 9:59 pm
Has thanked: 36 times
Been thanked: 5 times
Contact:

Re: spi command bytes

Post by Tony Brown »

That seems to work. Do you know if I have to send the bytes separately or is there a way I can send them altogether?

Post Reply