Bug - Deleted 7Seg that shows error on simulation run

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
swanflow
Flowcode V4 User
Posts: 4
Joined: Sun Jun 05, 2011 4:19 pm
Location: Swanage,Dorset UK
Contact:

Bug - Deleted 7Seg that shows error on simulation run

Post by swanflow »

I am running a Student V3.7.48 Flowcode - soon to Upgrade to latest Professional Version 4.
I have built some 'traffic lights' code that works very well - ADC input for variable delays etc..
But I tried adding and subsequently deleting a 7Seg display.
This component still seems to be embedded in the Flowcode as it comes up with the following error when I run it:
"One or more pins of component LED7Seg1(0) are not connected to the microcontroller"
If I ignore it the code will run but.......!
How do I get rid of this as it will probably affect assembly to my PIC?
Thanks!
Ian
I have attached the FC file concerned.
TrafficLights.fcf
File containg phantom reference to 7Seg Display after deletion
(15.5 KiB) Downloaded 218 times

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Bug - Deleted 7Seg that shows error on simulation run

Post by JohnCrow »

Hi
Just had a quick look at you code, I was able to delete the 7seg display and resave .
Im using FC4 pro

The code seems to work on simulation.

I think you may have problems using PortA for the LEDs

i.e. RA0 and the ADC0 use the same pin.

You could delete the 4 green leds on port C which just reflect in binary the digital reading on the LCD.
Then move the traffic light leds to port C.

Are you using the ECIO28?

Your other option is to use a larger device and put the traffic light leds on port D

Tried this on my system and it works in simulation.
1 in 10 people understand binary, the other one doesn't !

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: Bug - Deleted 7Seg that shows error on simulation run

Post by medelec35 »

swanflow wrote: How do I get rid of this as it will probably affect assembly to my PIC?
Thanks!
Ian
To delete component:
Click on 'View' Menu, and 'Attached Components'
All components that are not ticked, you won't be able to see.
Select LED7Seg so it has a tick.
Now it should be visible, so you can delete it. Just click on the x as normal to delete component.

Martin
Martin

swanflow
Flowcode V4 User
Posts: 4
Joined: Sun Jun 05, 2011 4:19 pm
Location: Swanage,Dorset UK
Contact:

Re: Bug - Deleted 7Seg that shows error on simulation run

Post by swanflow »

Hi Martin
Thanks - that's done the trick!
I will be deleting the LCD as it was just a device to work out timings from the ADC.
So there should be enough ports now.
Ian

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: Bug - Deleted 7Seg that shows error on simulation run

Post by medelec35 »

Your welcome Ian,
So long as your sorted.

Martin
Martin

Post Reply