PIC12F635 - Any advise?


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I would reduce the code of Receiver Program in this way:

    Code:
    start:
    serin GPIO.2,N2400,100,start,["abc"],w1
    
    if w1=12 then zero
    if w1=56 then one
    if w1=90 then four
    if w1=34 then five
    goto start
    
    zero:
    toggle gpio.0
    pause 2000
    goto start
    
    one:
    toggle gpio.1
    pause 2000
    goto start
    
    four:
    toggle gpio.4
    pause 2000
    goto start
    
    five:
    toggle gpio.5
    pause 2000
    goto start
    
    END
    Remember decoupling cap (10nF) on the pic and snubber diodes on relays


    Al.
    Last edited by aratti; - 20th July 2009 at 18:27.
    All progress began with an idea

Similar Threads

  1. Need advise how find problem in PID controller
    By phoenix_1 in forum Off Topic
    Replies: 0
    Last Post: - 28th October 2009, 01:22
  2. suitable resistance values to hold PIC12f635 pins to the ground
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th August 2009, 03:08
  3. Need advise on PIC controlling a variable resistor
    By baldwics in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th February 2006, 20:35
  4. Problems with variable - Advise welcome
    By tracking in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th June 2005, 18:40
  5. Newbie - Advise Please
    By tracking in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th June 2005, 18:37

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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