PIC12F629 or 8pin


Results 1 to 24 of 24

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    "SERIN portx,N2400,[“Chip1”],Var,

    Will Var always only be one character in length?

    So if my string sent was say chip1AZ would var just have the A and ignore the Z"

    IMO without testing it, it depend if your VAR is a WORD or BYTE. If is a BYTE only A will be stored in. WORD size AZ will be stored. IF you want to receive more than one character i suggest you.

    SERIN portx,N2400,[“Chip1”],Var1,Var2,Var3....

    or you can use this also:

    SERIN portx,N2400,[“Chip1”]
    n=0
    While Var !="z"
    SERIN portx,N2400,ToBeStore
    DataReceive[n]=ToBeStore
    n=n+1
    wend

    this will allow you to store everything you want (depending of the PIC memory space) in a same variable DataReceive.
    Last edited by mister_e; - 27th October 2004 at 13:24.
    Steve

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

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