Problem interfacing ADXL202 and Accustar Clinometer with 16F876A


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Beatrix's Avatar
    Beatrix Guest


    Did you find this post helpful? Yes | No

    Default



    I tried it again with the ground wire in place and no more receive wire using both Microcode Studio and HyperTerminal, and it still doesn't work. Is there anything I should be doing with the other pins on the RS232 connector? Any ideas?

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Beatrix,

    have you tried the simple test described here

    Have you set the Baudrate on the PC-side correctly
    and is "Handshake" set to none?

    Could you post a schematic and your code (cut down to the RS232 part)

    For a one-way communication (PIC --> PC) you definitely need only two wires:
    PIC-GND to PC-GND and PTC-TX to PC-RX

    Probably your PCs COM-Port doesn't work with TTL-Levels.
    If so you would need to add a MAX232-type of Level shifter.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Beatrix's Avatar
    Beatrix Guest


    Did you find this post helpful? Yes | No

    Default

    For that test, would I need to use an RS232 keyboard? I didn't run it since I'm pretty sure the port works since I'm also using it to program my PICs. The baudrate and handshake is set on the PC as well.

    I'll probably have to try it with another computer to see if the one I'm using is not compatible and needs the MAX IC. That's going to be a problem since the board had been fabricated and adding the MAX would require me to do a bit of a workaround (which is why I'm trying to get it going without the MAX). Initially, I was planning on using a PS/2 connection to transmit the data to the computer, but I was unable to find enough information on it to the point that I could understand how it works, so I decided to switch to RS232.

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Beatrix
    For that test, would I need to use an RS232 keyboard?
    All you need is a simple piece of wire betwenn Rx and Tx on the PCs RS232

    Quote Originally Posted by Beatrix
    I didn't run it since I'm pretty sure the port works since I'm also using it to program my PICs. The baudrate and handshake is set on the PC as well.
    Well that case I would assume the PCs RS232 isfunctional, but not compatible with the PICs Levels.

    Anyway
    If you want to make sure your Product works with any PC-COM-Port you should add a Levelshifter.

    The PICs (0/+5V) Levels are ways off the specs of a standard COM-Port (+/- 12V)

    And bear in mind: the MAX232 does not only shift the levels, it also inverts the logic.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



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