Page 1 of 1

Bug - Deleted 7Seg that shows error on simulation run

Posted: Sun Jun 05, 2011 4:37 pm
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 238 times

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

Posted: Sun Jun 05, 2011 5:02 pm
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.

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

Posted: Sun Jun 05, 2011 6:22 pm
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

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

Posted: Sun Jun 05, 2011 9:50 pm
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

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

Posted: Sun Jun 05, 2011 10:14 pm
by medelec35
Your welcome Ian,
So long as your sorted.

Martin