PDA

View Full Version : need hex code to make 12c509 a flip flop,



bruce3mn
- 14th November 2004, 06:50
does anybody have a hex code to make a 12c509 pic into a simple flip flop, i want to use a negative going square wave.
You can do what i want with a cmos 4027, but a 12c509 would be ideal for the experiment, just need one input pin, and two output pins that flip flop.
i have been searching around but have not found any code that is only a simple flip flop
thanks
bruce

mister_e
- 15th November 2004, 04:23
InputPin VAR GPIO.0
Qout VAR GPIO.1
Q_out VAR GPIO.2

Qout=0
Q_out=1

start:
while InputPin=0
wend

Toggle Qout
Toggle Q_out

while InputPin
wend

goto start