Hi all.
Firstly, I'm a programming virgin and finding this microcontroller programming testing to say the least!
I've managed to make several LED flashing programs using Matrix multimedia's Flowcode software which has made it LOTS easier.
I am now trying to utilise switches in another learning process for the PIC and what I thought would be an easy project has me at a dead end from the start!
I would appreciate any help you programmers could give me.
The project:
I have 4 push to make switches connected to the inputs on portA.
When switch number one is pressed I want an output on portB to illuminate an LED and stay illuminated.
When any of the other switches are then pressed I would like the LED that was switched on by switch one to go off and the next LED that corresponds with that switch to illuminate.
In short switches must latch when pressed and then un-latch when another switch is pressed.
Any help on starting this project would be greatly received.
regards
Gaz
Firstly, I'm a programming virgin and finding this microcontroller programming testing to say the least!
I've managed to make several LED flashing programs using Matrix multimedia's Flowcode software which has made it LOTS easier.
I am now trying to utilise switches in another learning process for the PIC and what I thought would be an easy project has me at a dead end from the start!
I would appreciate any help you programmers could give me.
The project:
I have 4 push to make switches connected to the inputs on portA.
When switch number one is pressed I want an output on portB to illuminate an LED and stay illuminated.
When any of the other switches are then pressed I would like the LED that was switched on by switch one to go off and the next LED that corresponds with that switch to illuminate.
In short switches must latch when pressed and then un-latch when another switch is pressed.
Any help on starting this project would be greatly received.
regards
Gaz
Last edited: