need hex code to make 12c509 a flip flop,


Closed Thread
Results 1 to 2 of 2
  1. #1
    bruce3mn's Avatar
    bruce3mn Guest

    Default need hex code to make 12c509 a flip flop,

    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

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Code:
    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
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Timer PIC16F57
    By leonel in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 1st July 2005, 08:14
  4. Writing code for battery operated projects
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th June 2005, 03:39
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts