2 questions


Closed Thread
Results 1 to 14 of 14

Thread: 2 questions

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default 2 questions

    Hi Everyone,
    I have 2 serial related data questions.
    1.How, do I make PIC Basic Pro, interpret a string sent Serially from a P/C or another PIC as a command? Using Hserin and the variable called Char I tried something like this:
    Code:
    While char = value
    PortA.1 = 1
    wend
    Question 2:
    I hooked my serial backpack up to my P/C.
    The backpack uses the hserin protocol in and the lcdout protocol to output data to the LCD. It is equipped with a max232 to interface with the P/C. When I send data to it from the P/C it prints strings of text on screen in this order, Line 1, line 3, line 2, line 4. it completely ignores the commands $FE, $C0 and so on, rather printing them onscreen as part or the text string, so in many ways this question is related to question 1. When I send the data to it from a PIC it properly formats the screen with the normal LCDOUT commands.
    Thank You,
    JS

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default

    Hi Joe,
    What software are you using send the data from the PC to the LCD? If it's a terminal program you need to figure out how to send the ASCII representation of $FE. You can't just type "$FE" because that will send the three characters $,F,E and not the LCD's "command identifier".

    If you are using Hyperterminal it MAY work by doing this:
    Hold down the left ALT key on you keyboard, then, on the numerical keyboard type 254 and let go of the ALT key. Then do the same but type 192 instead. This should be the same as sending $FE,$C0

    If you're using the Serial communicator in MCS look for "Parse Control Characters" in the help file.

    /Henrik Olsson.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Serial Sender

    Quote Originally Posted by HenrikOlsson
    Hi Joe,
    What software are you using send the data from the PC to the LCD? If it's a terminal program you need to figure out how to send the ASCII representation of $FE. You can't just type "$FE" because that will send the three characters $,F,E and not the LCD's "command identifier".

    If you are using Hyperterminal it MAY work by doing this:
    Hold down the left ALT key on you keyboard, then, on the numerical keyboard type 254 and let go of the ALT key. Then do the same but type 192 instead. This should be the same as sending $FE,$C0

    If you're using the Serial communicator in MCS look for "Parse Control Characters" in the help file.

    /Henrik Olsson.
    Hi Henrik,
    I am using something I found SOMEWHERE called serial sender, I was unable to get hyperterminal to work. Thanks, JS

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I found SerialSender here:
    http://www.seetron.com/vfdmnl/mnl.htm

    If that is what you got it looks like this is the way to send ASCII:
    Try typing <254><192>LCDTest and then hit Send.

    /Henrik Olsson.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Solved question 2

    Thanks Henrik,
    that is the way!
    JS

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Joe,
    Do you have VB5 or any sort of programming language for the PC? If not, I could probably whip you up a simple program this weekend to do those types of things for you with a click instead of all the extra characters, and just for the serial backpack type of thing.
    Heck, I may just whip one up for myself anyways...might come in handy...
    JDG

Similar Threads

  1. ICSP (2) questions
    By Ramonetnet in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 28th April 2008, 10:03
  2. LOTS of questions....
    By reaper0995 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2008, 17:00
  3. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 22:40
  4. PicKit 2 Questions
    By dmairspotter in forum General
    Replies: 3
    Last Post: - 11th November 2007, 21:10
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27

Members who have read this thread : 1

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