Serial Communication (PC to PIC)


Closed Thread
Results 1 to 3 of 3
  1. #1
    Simon Brodeur's Avatar
    Simon Brodeur Guest

    Default Serial Communication (PC to PIC)

    I have somes values to send to my PIC16F88 by the serial port.
    I made a program with VB and it can be resumed like this :

    1) I press a button
    2) The string "5000" is sent, corresponding to the value of a scrollingbar

    I try to read this by the pic as follow:

    SERIN RXRS,T2400,["/"],Peri where Peri is a word

    I got several bad or mismatched value. I then tought that the pic store in Peri a value of only one caracter. The value "5000" is composed of 4 caracter, which an only word cannot store. Am I right?

    What should I write to the pic, using the SERIN, that will give me a value for Peri of 5000? Is there any processing I should do or I can use a modifier or something like that?

    I also heard about binary transfert on VB...but I didn't understood.

    ----------------
    Simon Brodeur
    ----------------

  2. #2
    Simon Brodeur's Avatar
    Simon Brodeur Guest


    Did you find this post helpful? Yes | No

    Default

    Ops... I've just seen that for Serin2, the modifier DEC is all I need. But is there an alternative for Serin? I cannot use DEC with Serin....

    ----------------
    Simon Brodeur
    ----------------

  3. #3
    Simon Brodeur's Avatar
    Simon Brodeur Guest


    Did you find this post helpful? Yes | No

    Default

    After I looked the PB manual, I chose DEBUGIN, a command I never used (I always forget it).

    Thanks you guy but for now I am still able to learn by myself...
    But more question are to come...since I am on several other project.


    --------------
    Simon Brodeur
    --------------

Similar Threads

  1. serial to PIC
    By kindows in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 14th July 2009, 13:58
  2. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  3. pc to pic serial comm and i2c eeprom
    By elektroline in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd November 2006, 05:51
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. Serial communication to PC without a Max232
    By toalan in forum Off Topic
    Replies: 2
    Last Post: - 18th February 2005, 20:33

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