16f688 <-> Max232


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    43

    Default 16f688 <-> Max232

    I am new to this so excuse my ignorance.

    I have a board set up that reads inputs on 8 pins on a 16F688 Microchip. I also have a RS232 board that use a MAX232 chip. When I see an input go high, I need to send a message out to a computer serial port. Ie: "Input #1 ON". I will also get back a duplicate message form the computer.

    I am connecting the TX/RX from the 16F688 to the RX/TX on the MAX232

    What do have to setup in my program(I am using MicroCode Studio) to make this work? How do I send to the Serial port?
    How do I receive from the Serial port?

    Sincerely,
    Bob Hiller
    Lifts for the Disabled LLC

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

    Default

    have a look for HSERIN/HSEROUT.

    First, try a HSEROUT loop and look if your computer receive your data properly. You can use MicroCode Studio Serial Communication (F4).
    Steve

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

Similar Threads

  1. Interface Pic --> Max232 --> GSM Modem
    By SangkiMangki in forum GSM
    Replies: 1
    Last Post: - 28th September 2013, 13:57
  2. < We need hints and tips area of forum >
    By electroken in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th December 2009, 17:34
  3. Multiple if then optimization
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 35
    Last Post: - 5th March 2008, 13:15
  4. The Best Solution
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 28th May 2007, 06:25
  5. Help with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st October 2006, 00:12

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