BL0080 and PIC18877

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

Moderator: Benj

Post Reply
JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

BL0080 and PIC18877

Post by JFinlayson »

Hi
I am having trouble with programming PIC 16F18877, I am using EB023 and unable to get this working using 16FPIC18877 but switched to PIC 18F2680 and it works fine. I also have problems with this chip using SPI and I2C. but other chips work fine. Any idea why?
The older the boy the bigger the toy

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: BL0080 and PIC18877

Post by Benj »

Hello,

Does the 16F18877 work ok with simple none comms based programs e.g. a 1 second flasher?

Can you post a program that is currently not working on the 16F18877 device?

Is your copy of v8 fully up to date? e.g. 8.2 with all the latest updates?

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: BL0080 and PIC18877

Post by JFinlayson »

V8 not up to date I will test it later with update and let you know. :o
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: BL0080 and PIC18877

Post by JFinlayson »

OK Flowcode 8 fully up to date ver 8.2.0.12.

The attached program works fine with 18F2680, But not with 16F18877. This is still the case it hangs on first call to EB023.
My guess is that there may be something not correct with remap pins, but its only a guess.

:?
Attachments
TransponderInterfaceUDPTestTX.fcfx
(24.43 KiB) Downloaded 171 times
The older the boy the bigger the toy

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: BL0080 and PIC18877

Post by LeighM »

Could you try setting SPI to read sample point middle.
I cannot check the project at the moment.
You might need to configure Flowcode to expose the component property tree

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: BL0080 and PIC18877

Post by JFinlayson »

I tried SPI component on middle and end. There was no difference
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: BL0080 and PIC18877

Post by JFinlayson »

On other devices it was working sometimes but not others so added Rx::setdestination and its reliable on other devices. but not on PIC18877.
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: BL0080 and PIC18877

Post by JFinlayson »

Here is working code, I am using. works fine.
Attachments
TransponderInterfaceTest.fcfx
(35.21 KiB) Downloaded 184 times
The older the boy the bigger the toy

Post Reply