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.
Bug - Deleted 7Seg that shows error on simulation run
Moderator: Benj
- JohnCrow
- 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
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.
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 !
-
- 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
To delete component:swanflow wrote: How do I get rid of this as it will probably affect assembly to my PIC?
Thanks!
Ian
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
-
- 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
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
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
-
- 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
Your welcome Ian,
So long as your sorted.
Martin
So long as your sorted.
Martin
Martin