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

    Thanks, I'll try Microcode Studio later when I'm able to. Oh, and I'm NOT using the MAX IC, so I think I need to use N9600....right?

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


    Did you find this post helpful? Yes | No

    Default

    You're right. With a resistor in serie that will work.
    Steve

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

  3. #3
    Beatrix's Avatar
    Beatrix Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    You're right. With a resistor in serie that will work.
    Hmm..that might be part of my problem. Right now I have pin C6 connected to pin 3 of the RS232 connector and pin C7 connected to pin 2 directly (no resistor in series). What resistor would you recomend? That and would I need to use any of the other pins on the RS232 connector (request to send, etc) if just reading trhe data via HyperTerminal or Microsode Studio?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Beatrix
    Hmm..that might be part of my problem. Right now I have
    pin C6 connected to pin 3 of the RS232 connector and
    pin C7 connected to pin 2 directly (no resistor in series). What resistor would you recomend?
    That and would I need to use any of the other pins on the RS232 connector (request to send, etc) if just reading trhe data via HyperTerminal or Microsode Studio?
    Beatrix,

    On the second PIC (I guess that's the one to transfer data to the PC) you are using PortB.0 with SERIN
    I assume that's the incomming Data from the first PIC.

    And you are using PortC.7 with SEROUT
    I assume that's the outgoing Data to the PC.
    A series resistor is not really required on the PC's RX-Pin.
    (But 1k wouldn't hinder either)

    Since the PIC does not receive any Data from the PC
    you don't need a connection between PortC.6 and Pin3 on the RS232.
    If you want to connect it you should have a series resistor (say 22k).

    All you actually need are two wires:
    PortC.7 to RS232 Pin 2
    and
    PIC GND (Vss) to RS232 Pin 5

    Is it probably the missing GND that is causing the Problem?

    Set the Handshake in Hyperterm to "NONE"

    Simple test of your PCs serial Port:
    With nothing connected to the RS232
    In Hyperterm set "Local Echo" to "OFF"
    when type on your keyboard there should nothing appear on your screen.

    Now connect Pin 2 and Pin 3 on the RS232
    every character typed should be echoed back on the screen.
    Last edited by NavMicroSystems; - 4th July 2005 at 15:18.
    regards

    Ralph

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



  5. #5
    Beatrix's Avatar
    Beatrix Guest


    Did you find this post helpful? Yes | No

    Default

    Regarding the connection to ground: currently I have both of the Vss pins connected to board ground. For this connection to RS232 ground, should I simply solder in a wire, thereby having Vss connected to board ground and RS232 ground, or should I disconnect it from board ground and only connect it to RS232 ground?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Beatrix
    ...having Vss connected to board ground and RS232 ground...
    That's the way it should be.
    regards

    Ralph

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



  7. #7
    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?

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