RS232 problem


Closed Thread
Results 1 to 5 of 5

Thread: RS232 problem

  1. #1
    Join Date
    Dec 2005
    Posts
    14

    Unhappy RS232 problem

    I'm confused. I'm trying to send simple ascii data to a video multiplexer that is looking for data in three bytes like:
    /01 display camera 1
    /02 display camera 2
    /pp display picture in picture
    /22 display cameras 2 x 2

    I have my 16F877 sending the data to the MUX but it does not respond. If I send the same data to the mux on the same cabling via Hyperterminal(on my laptop) the MUX responds correctly.
    If I send the data from 18F877 to the same Hyperterminal
    the data appears correct. Does anyone know anything special about Hyperterminal output that would make different from the Pic output?
    Specs are: PIC 16F877 & Max 232cpe transmitting at 9600,8,n,1. I know the PIC device works because I can communicate to the cameras.
    Any input would be appreciated.

    John P

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

    Default

    Even if Hyperterminal if the worst piece of crap i've never ever met on the whole PC software world since 30 years(including all Mac software + computers, windows millenium, Comodore Vic20, MSDos 3.1 and how many others... ), it seems your software is OK. Or at least, your hardware is OK. About your baudrate... ???

    Let us know your video mux model, specs, datasheet. For now, we can just bet...
    Last edited by mister_e; - 22nd April 2006 at 09:35.
    Steve

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

  3. #3
    Join Date
    Feb 2003
    Posts
    432

    Default Wiring fault ???

    Hyperterminal to MUX = OK
    Hyperterminal to PIC = OK

    PIC to MUX = NOT WORKING.

    Is it something as basic as TX and RX reversed. Try reversing TX and RX between the PIC and MUX
    Keith

    www.diyha.co.uk
    www.kat5.tv

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    It could be something as simple as swapping TX/RX. Are you using a serial level converter like a MAX232/233? If not you may want to, the 5V serial signal might not be enough for the device to recognize. With the level converter the voltage will get bumped up to 12V.

  5. #5
    Join Date
    Dec 2005
    Posts
    14

    Red face RS232 problem .. additional info

    The cabling is correct since I can transmit to & from Hyperterminal from the PIC (Max232cpe). The data there all looks OK. I've tried various forms of sending the ascii; one character at a time, all characters in one burst, hex bytes representing the ascii codes, straight ascii characters.... I've also reversed Rx & Tx by use of a null modem module. DynamoBen mentioned a level converter. Can you explain exactly what a level converter is? I'm about to put my "pen" oscilloscope on the Tx line to check waveforms and amplitudes. problem is.... I'm not at home where all of my test "stuff" is so I have to dance with what I brung!!

    JohnP

Similar Threads

  1. UART vs software RS232
    By Michael in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 5th September 2008, 18:27
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Rs232 PC-Pic problem
    By andreq in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th January 2006, 22:31
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. RS232 with 16F628 problem
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th June 2005, 03:19

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