16LF18857

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

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

16LF18857

Post by Jan Lichtenbelt »

I like to use the 16LF18857 only with 32MHz internal oscillator and MCLR pin as input pin. In the test program I just set 2 ouput pins on, but it does not work. Wrong config word? Or something else?

Kind regards

Jan
Test_LEDs.fcfx
(7.12 KiB) Downloaded 230 times

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: 16LF18857

Post by CSM2711 »

I think you should use a output component (LED) to visualize the Programm and configure the Port pins.

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: 16LF18857

Post by Benj »

Hello,

Configuration settings look ok to me. What voltage are you running the device at?

Looks like you need to be between 2.5V and 3.6V for the LF device to run at 32MHz.
Voltages.jpg
Voltages.jpg (26.56 KiB) Viewed 4733 times

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: 16LF18857

Post by Jan Lichtenbelt »

Hi Ben

I use 3.3 Volt as power for this microchip.

kind regards

Jab

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: 16LF18857

Post by Jan Lichtenbelt »

Becasue the problem can also be a hardware problem, I made a new set up by means of a breadboard, see picture. But the same results, no green and/or red LED's are going on. I changed the flowcode that all A-ports should be going on and all C-ports. Nothing happens.
16LF18857 breadboard.jpg
16LF18857 breadboard.jpg (129.24 KiB) Viewed 4684 times
Remark: Yellow LED is power on.

What to do now?

Kind regards

Jan

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: 16LF18857

Post by Benj »

Hi Jan,

Are you having any progress with this?

Does the program go into the micro ok? If not then can you shorten your programming cable at all?

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: 16LF18857

Post by Jan Lichtenbelt »

Hi Ben,

No progress. As far as I know the program has been stored correctly into the microchip. I only get the warning message that the "flash memory not verified".

"Attachment deleted by Jan"

What to do?

Kind regards

Jan
Last edited by Jan Lichtenbelt on Thu Apr 11, 2019 6:54 pm, edited 4 times in total.

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: 16LF18857

Post by medelec35 »

Jan Lichtenbelt wrote:I only get the warning message that the "flash memory not verified".
Hi Jan,
In my experience that message is always displayed when mLoader was unable to program chip.

Have you got an alternative programmer you can try?

What happens if you load mLoader and select Autodetect ?
Martin

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: 16LF18857

Post by Jan Lichtenbelt »

Hi Martin

Thanks for help. mLoader detects the chip 16LF18857.

What is the next step?

Kind regards

Jan

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: 16LF18857

Post by Jan Lichtenbelt »

Decreasing the length of the ICSP cable from about 30 cm to 10 cm solved most of the problems.

Ben and Martin thanks for helping.

Kind regards

Jan

Post Reply