Triggering 5 TTL clocks simultaneously


Results 1 to 40 of 84

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    IF vertpulse < 512 THEN GOTO horizloop ELSE GOTO buttonloop
    I prefer like this

    Code:
    IF vertpulse < 512 THEN 
        GOTO horizloop 
    ELSE 
        GOTO buttonloop
    ENDIF
    Using Alias to i/o
    Code:
    TRISA = 255 ' Set PORTA as input
    
    PushButton1 var PORTA.0
    PushButton2 var PORTA.1
    PushButton3 var PORTA.2
    
    IF PushButton1 then ' Same as PushButton=1
       ' do your stuff here
    ENDIF
    Last edited by mister_e; - 22nd February 2005 at 00:37.
    Steve

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

Similar Threads

  1. PICs can do more if use others than delays instructions
    By hardcore in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th February 2010, 19:52
  2. How do I set GPIO 0-2 and 5 simultaneously?
    By cstack in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th August 2009, 09:32
  3. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  4. Replies: 11
    Last Post: - 13th July 2005, 19:26

Members who have read this thread : 0

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