SPEED CAN-BUS inernal external

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

User avatar
LeighM
Matrix Staff
Posts: 2093
Joined: Tue Jan 17, 2012 10:07 am
Contact:

Re: SPEED CAN-BUS inernal external

Post by LeighM »

Looks like you are using software SPI, could you try a different Sample Point, e.g. Middle?
Also the "While Free1" loop should have the test the loop at "End"

Barmaley_GMN
Posts: 59
Joined: Mon Aug 04, 2014 12:59 pm
Contact:

Re: SPEED CAN-BUS inernal external

Post by Barmaley_GMN »

This variant sends only one message

Code: Select all

36,010 6C1      8 01 01 00 03 00 00 00 00 ASCII: 
And it always compile hex with mistake in configuration chip. It sets bits 5 and 7 in address 30000 as 1. But they can't be set as 1.
Attachments
TestCheck.fcfx
(22.69 KiB) Downloaded 63 times

User avatar
LeighM
Matrix Staff
Posts: 2093
Joined: Tue Jan 17, 2012 10:07 am
Contact:

Re: SPEED CAN-BUS inernal external

Post by LeighM »

so you need to go back to the version that masks the status with 0x04, just to get the Tx Buffer 0 status

Barmaley_GMN
Posts: 59
Joined: Mon Aug 04, 2014 12:59 pm
Contact:

Re: SPEED CAN-BUS inernal external

Post by Barmaley_GMN »

Thanks!
It helps!

Code: Select all

FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
FCV_FREE1 = FCR_RETVAL & 0x04;

Barmaley_GMN
Posts: 59
Joined: Mon Aug 04, 2014 12:59 pm
Contact:

Re: SPEED CAN-BUS inernal external

Post by Barmaley_GMN »

Barmaley_GMN wrote:Thanks!
It helps!

Code: Select all

FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
FCV_FREE1 = FCR_RETVAL & 0x04;
How about configure bits?
____
I solve (attachment).

Code: Select all

 <format >
            <byte value='0x1F' />
Attachments
18F25K80.fcdx
(32.18 KiB) Downloaded 56 times

Post Reply