MAX232 Level Converter


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

    Default MAX232 Level Converter

    Hi

    I did search for the answer to this first, but couldnt see anything obvious.

    I had a simple setup working the other day with a PC to PIC conversation taking place via serial. All was ok.

    The PC was sending out serial Data at 2400 baud.

    The PIC was responding with serial data at 2400 baud, lovely.

    However, someone mentioned using a MAX232 chip. So I got one. I then spent a whole day without any further 232 success. I followed the diagrams and I'm pretty sure it was all connected correctly.

    Reading the manual (yes I know, last resort) it mentions the "N" and "T" settings when using "SEROUT".

    I was using the following: "SEROUT PORTB.2, N2400,["OK"]" - Or similar

    When I was using the MAX232, should I have been using "SEROUT PORTB.2, T2400,["OK"] for "T"rue serial.

    Would the "T" or "N" have made any difference or did I just have the MAX232 not wired correctly.

    H

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


    Did you find this post helpful? Yes | No

    Default

    basic of a MAX232... an inverter + level converter (from 5volt to close to 15 volt)

    SO, since the computer must read an inverted signal, you must send it inverted... Your pic send it not inverted(true) to the MAX232, the MAX232 invert the signal to the PC... YES you must use T for you communication with a MAX232
    Steve

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

  3. #3
    HarryK's Avatar
    HarryK Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for that. Problem solved.

    I really should read manuals before setting out to do these sort of things.

    Doahhhh!.

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 21:32
  2. Replies: 24
    Last Post: - 1st December 2009, 08:01
  3. PIC and MAX232 in/out
    By The Master in forum Serial
    Replies: 10
    Last Post: - 29th March 2008, 20:41
  4. MAX232 and DB9 connecter
    By Tomas in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th March 2006, 16:02
  5. Serin2 and Serout2 with or without level converter
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st May 2004, 07:10

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