SPI 18F46K22

Moderator: Benj

Post Reply
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:

SPI 18F46K22

Post by medelec35 »

This one is odd in channel mode.
With the FT800 Flowchart.
chip select is not working at all.
When added output icons for chip select the MOSI finished low instead of high.
Most data was correct except for the end of course.
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SPI 18F46K22

Post by Benj »

Hi Martin,

Hmm this sounds pretty odd. Maybe check the Auto Chip Select property in the cal_spi component is set to disabled? I noticed it was set to enabled in the last program. Shouldn't cause too many issues though as long as the pin is valid.

The chip select is driven in the FT800 macros via references to the root component CS pin property.

Could it be a config setting clashing with the pin stopping it from being enabled as an output?

Out of interest which pin is it?

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 18F46K22

Post by medelec35 »

Hi Ben,
Thanks for your reply.
I will check out your suggestions.
Benj wrote:Out of interest which pin is it?
Pins setup:

Code: Select all

SCK  - C3
MISO - C4
MOSI - C5
CS    - C7
What about MOSI finishing low rather than high?
I will of course double check that when trying your suggestions.
Martin

Post Reply