Pickit2 switch

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Post Reply
newbieSwe
Posts: 2
Joined: Tue Feb 03, 2009 4:26 pm
Contact:

Pickit2 switch

Post by newbieSwe »

Hi, I am new to the flowcode, but has managed to lab around and get my lights to flash, etc.. I have Pickit2 with 4 lights and a switch.
But I have not managed to program the swtich it is always active. If i do a simple program that makes one lamp to light the switch button is enabled as a reset button. How do i inactivate the button and activate it when i whant to use it.

*edit*
when i use the sample that camed with pickit2 the button is always off, and activated if its used

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Pickit2 switch

Post by Benj »

Hello

If the switch is hardwired into the MCLR or Reset pin then the switch will have the functionality of resetting the chip. The only way to get around this is to change the chip configuration to disable the MCLR Reset function. If you are using our PPP tool then you can do this via the expert configuration screen. Once you have disabled the MCLR input you can use the pin as a normal input pin.

Post Reply