18F4520 first time use

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Frank607
Posts: 194
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times

18F4520 first time use

Post by Frank607 »

Hi,

This the first time that I play with a 18F4520. I have it mounted on a breadboard with ICSP. To test my setup I have made a simple flowchart. LED on and off. I use a crystal 19.66.. MHz

The LED is constant turned on, it will not go on and off.

I know I do something wrong, but I don’t know what. The hardware is very simple, so it has to do something with the flowchart (config)

For a 18F4520 there are so many options…… Please can someone take a look to my flowchart? I want this PIC to work :-)

Thanks

Frank
Attachments
18F4520 - Led On - Off.fcf
(11 KiB) Downloaded 248 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: 18F4520 first time use

Post by medelec35 »

Hi Frank,
You will need to disable watchdog timer which is causing you hardware to keep resetting.

Can you also disable both low voltage programming and Extended CPU.
As they will cause different issues.

Martin
Martin

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: 18F4520 first time use

Post by dazz »

Hi Frank
Another to watch out for is the PortB A/D Enable If you use an Lcd you will need to set it to digital ( I spent the best part of 4 days trying to work out why an Lcd would not run a few months ago :lol: , now its the first config setting i got to)

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Frank607
Posts: 194
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times

Re: 18F4520 first time use

Post by Frank607 »

Hi,

It was indeed the watchdog timer, thanks, all is working now.

The setting PortB A/D is standard to digital. I will keep this setting in mind.

Thanks and regards,

Frank

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: 18F4520 first time use

Post by medelec35 »

Your welcome Frank.
We are all just glad your up and running.

Martin
Martin

Post Reply