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"
SPEED CAN-BUS inernal external
Moderator: Benj
-
- Posts: 59
- Joined: Mon Aug 04, 2014 12:59 pm
- Has thanked: 8 times
- Been thanked: 4 times
Re: SPEED CAN-BUS inernal external
This variant sends only one message
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.
Code: Select all
36,010 6C1 8 01 01 00 03 00 00 00 00 ASCII:
- Attachments
-
- TestCheck.fcfx
- (22.69 KiB) Downloaded 231 times
-
- Posts: 59
- Joined: Mon Aug 04, 2014 12:59 pm
- Has thanked: 8 times
- Been thanked: 4 times
Re: SPEED CAN-BUS inernal external
Thanks!
It helps!
It helps!
Code: Select all
FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160);
FCV_FREE1 = FCR_RETVAL & 0x04;
-
- Posts: 59
- Joined: Mon Aug 04, 2014 12:59 pm
- Has thanked: 8 times
- Been thanked: 4 times
Re: SPEED CAN-BUS inernal external
How about configure bits?Barmaley_GMN wrote:Thanks!
It helps!
Code: Select all
FCR_RETVAL = FC_CAN_SPI_CAN_Status_2(160); FCV_FREE1 = FCR_RETVAL & 0x04;
____
I solve (attachment).
Code: Select all
<format >
<byte value='0x1F' />
- Attachments
-
- 18F25K80.fcdx
- (32.18 KiB) Downloaded 210 times