Page 1 of 1

16LF18857

Posted: Thu Mar 28, 2019 11:19 am
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 281 times

Re: 16LF18857

Posted: Fri Mar 29, 2019 10:56 am
by CSM2711
I think you should use a output component (LED) to visualize the Programm and configure the Port pins.

Re: 16LF18857

Posted: Fri Mar 29, 2019 3:10 pm
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 5443 times

Re: 16LF18857

Posted: Sat Mar 30, 2019 8:21 pm
by Jan Lichtenbelt
Hi Ben

I use 3.3 Volt as power for this microchip.

kind regards

Jab

Re: 16LF18857

Posted: Sun Mar 31, 2019 4:22 pm
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 5394 times
Remark: Yellow LED is power on.

What to do now?

Kind regards

Jan

Re: 16LF18857

Posted: Fri Apr 05, 2019 2:45 pm
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?

Re: 16LF18857

Posted: Sat Apr 06, 2019 1:52 pm
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

Re: 16LF18857

Posted: Sat Apr 06, 2019 3:16 pm
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 ?

Re: 16LF18857

Posted: Sun Apr 07, 2019 6:38 pm
by Jan Lichtenbelt
Hi Martin

Thanks for help. mLoader detects the chip 16LF18857.

What is the next step?

Kind regards

Jan

Re: 16LF18857

Posted: Tue Apr 16, 2019 1:06 pm
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