turning gpio.0 high after pwm command


Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108

    Default turning gpio.0 high after pwm command

    i've just developed a dimmer for the internal light of the car using pic12f629 but i've a problem:

    when gpio.1 goes low, gpio.0 goes high (turning the lamp on) (gpio.0 = 1)
    just after that, when gpio.1 goes high, gpio.0 goes low with PWM. (pwm gpio.0,duty,cycle)

    at the first execution, it works fine. But if gpio.1 goes low again, gpio.0 DOESNT go high and when gpio.1 goes high, the PWM works...

    the code is attached.

    thanks, Sylvio
    Attached Files Attached Files

Similar Threads

  1. SERIN MIDI out of Synch?
    By jncortes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th June 2009, 20:08
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. need help simulating PS/2 mouse
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th December 2007, 21:49
  4. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 02:37
  5. Strangw results when using PWM command
    By malc-c in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 10th July 2006, 12:14

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