Results 1 to 2 of 2

Thread: Using a PIC with Zehnder's LCDplugin - First Time Programing.

  1. #1
    Variable Bitrate
    Join Date
    Jul 2000
    Location
    Ottawa, Canada
    Posts
    422

    Using a PIC with Zehnder's LCDplugin - First Time Programing.

    Ok the newest release of Markus Zehnder's LCD plugin now supports input on the serial port. I asked him how it works and he replyed
    at the moment it's character based at the specified speed with 8 data bits and 1 stop bit
    So it needs serial data on Pin X. (i asked which one).

    What i want to do is use a PIC to convert high/low signals from the five buttons to serial data that the plugin can read.
    I've access to a PIC programmer at school ( i hope it's working). so i just need help with the programming stuff. at school we are using BASIC and then converting it to assembler and then hex. (using CH Flash and MP Labs software i beleave)

    so what do i need to know about BASIC to get this to work?

    i want to have each button having its own character, a button double clicked having a separate character, and a held button having an other character. and perhaps two buttons push at the same time sending different character (for shutting down)

    BTW whats a stop bit?
    [SIZE=1]'91 Nissan Stanza

    [XXXXXXXXXXXXXXXXXXXX] XX% Completed -
    Car Totaled and i bought a 20G mp3 player

    http://machs-fuel.tk
    a DIY video projector page

  2. #2
    Variable Bitrate
    Join Date
    May 2002
    Posts
    239
    Serial communications look like this

    <tt>
    ----- &nbsp; ------------------------------------------
    &nbsp;&nbsp;&nbsp;&nbsp;| &nbsp; | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
    &nbsp;&nbsp;&nbsp;&nbsp;-------------------------------------
    </tt>

    the stop bit is bit 8 in picture above.
    it's a bit at the rest voltage and is also the voltage before the first drop, or start bit).
    bits 0-7 in between are data bits.

    hope this helps

Bookmarks

Posting Permissions

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