Strangw results when using PWM command


Results 1 to 21 of 21

Threaded View

  1. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Now this is getting silly !

    Code:
    Main:
    for i = 1 to 254                                             
    Pwm GPIO.0,i,1
    if i=253 then goto down
    next i
    
    down:
    high gpio.0 
    pause 1000
    low gpio.0
    goto main
    The above test even fails... it simple runs the main loop and doesn't branch off to the down routine !


    EDIT:

    As does the following
    Code:
    Main:
    for i = 1 to 254                                             
    Pwm GPIO.0,i,1
    if i=253 then t=1
    if t=1 then goto down
    next i
    This is doing my head in
    Last edited by malc-c; - 9th July 2006 at 14:08.

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. turning gpio.0 high after pwm command
    By sirvo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st February 2007, 18:22
  4. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57
  5. Searches
    By bearpawz in forum Forum Requests
    Replies: 11
    Last Post: - 7th November 2005, 18:47

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