PIC12F629 or 8pin


Results 1 to 24 of 24

Threaded View

  1. #18
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Andy,

    andy>>Ok, to recap and hopefully stop pestering you guys this is what I assume is correct:<<


    Hey, keep on pestering us...This is what fun is all about. learning, helping, communicating, and enjoying.


    Yes, you are correct. Now, if you want to control a bunch of chips, the same principal applies... for example

    Transmitter chip:

    Main:
    .......
    Gosub Loop:
    goto Main

    Loop:
    SEROUT pinx,2400,"Chip3","Y"
    if (pinRx <>1 goto Loop 'this is the pin to confirm received.

    Serout Pinx,2400,"Hello World! this is Chip3"

    Loop2:
    Serout Pinx2400, Chip5,"Y"
    If pinRx<>1 goto Loop2 'this is the pin to confirm received

    Serout Pinx2400, "Howdy! my chip 5 is working\"
    Return


    Your receiver 3 is as follows:

    Loop1:
    Serin Pinx,2400,Chip3,Var
    If Var <>"Y" then Loop1
    PinRx=1 'send a high to the transmitter to tell it to send data fAST!

    while val<>"\"
    Serin Pinx,2400,val
    LCDout Val
    Wend
    PinRx=0 ' don't keep that pin on! other receivers may need it



    Your other receivers are exactly the same...Just change teh second line down from

    Serin Pinx,2400,Chip3,Var

    to

    Serin Pinx,2400,Chip5,Var (for receiver 5)


    Granted I did all of this in Psuedo code. But if you put the correct punctuation in it, it should come close to running. like putting the "N" before the 2400 to make it N2400, or whatever you like.

    I am uploading a picture for you....don't mind my professional drawing...The chips are how mine look after a weeks worth of use <g>.

    Dwayne
    Attached Images Attached Images  
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. semaphore pic12f629
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 7th November 2008, 13:55
  2. pic12f629 EEPROM problem in MPLABSIM
    By nicholastyc in forum General
    Replies: 1
    Last Post: - 16th May 2008, 18:10
  3. Ultrasound with PIC12F629
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th February 2007, 16:22
  4. Serial Input, PIC12f629
    By kdh0009 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th August 2006, 10:40
  5. PIC12F629, useing all I/O pins
    By Jcee324 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th December 2004, 11:05

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