Problem interfacing ADXL202 and Accustar Clinometer with 16F876A


Closed Thread
Results 1 to 12 of 12

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    As you use MAX ic, you don't need to use N9600... use T9600 instead

    But that will not solve your problem with Hyperterminal. There's for sure a way to make that software work but i never spend the time to work with. I prefer to use MicroCode Studio to edit my code and use the Serial Communicator window. It's so easy to use.

    you download the free version of MicroCode Studio here

    more info
    here
    Steve

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

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

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

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

  5. #5
    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 16:18.
    regards

    Ralph

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



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

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



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