Shop OBEX P1 Docs P2 Docs Learn Events
Hyperterminal use with USB2SERIAL adapter — Parallax Forums

Hyperterminal use with USB2SERIAL adapter

DJFXDJFX Posts: 15
edited 2005-12-02 23:01 in General Discussion
Hello I was·wondering if anyone could assist me with this issue.· Recently I saw a post regarding the use of hyperterminal in conjunction with an ADC in the following post:

http://forums.parallax.com/showthread.php?p=555332

My question is the following; I would like to be able to the same thing but I am unsure of a few things.· Would it be possible to use the USB2SER adapter, offered by Parallax to view this output data via hyperterminal?· If so how can I go about connecting the SEROUT pin(s), in this case RA.3 from your demo program,·correctly to the adapter?· And how can I get hypterminal on my PC to monitor this?·Thanks in advance for any help.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-29 02:17
    Yes, I do it all the time (as I did for the thread you point to). Connect the serial output pin of your microcontroller to the RX pin on the USB2SER (and make sure they have a common ground). Open HyperTerminal and set it the comm port that the VCP driver has assigned to the USB2SER and match the baud rate. It's very simple. Oh, do make sure that your microcontroller is outputing in true mode (idle state is high).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • DJFXDJFX Posts: 15
    edited 2005-11-30 05:05
    I connected RA.3 (TX) from the microcontroller to Pin 2, RX for a standard 9 pin serial connector. Then I connected Pin 5 on the serial connector to ground. I then have hyperterminal open and set it to Port: COM 2, bits per second: 9600, data bits: 8, Parity: none, stop bits: 1 and Flow Control: none. When I do this I do not receive anything on screen.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-30 13:41
    Are you using the USB2SER adapter (thread topic) or going direct through a DB-9 as indicated in your last post? If you're going direct you'll need to be transmitting in Inverted mode. And make sure that you have Vss of your SX connected to pin 5 of the DB9.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • DJFXDJFX Posts: 15
    edited 2005-12-01 21:08
    I was able to connect it now and it works, thank you.· But now I have another set of questions.· 1)When I run the program it displays the following:

    LTC1298
    Ch0: some value
    Ch1: some value
    ⌂⌐║╢╗∂◊○◘●⌂⌐║╢╗∂◊○◘●⌂⌐║╢╗∂◊○◘●⌂⌐║╢╗∂◊○◘● and it keeps looping.·

    How can I fix this?· I think this is occuring because it is a 12bit ADC and hyperterminal reads a max of 8bits.· Therefore leaving 4 bits to carry over and add to the next set of 8.

    2) Can I run the same program on an 8bit ADC, such as the ADC0831 sold by Parallax Inc.?· I know the pins are a little different but I believe that the code can be changed easily.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-12-02 02:26
    The program I wrote uses to variables to get the 12-bit result from the LTC1298. Yes, you could easily modify the program for the ADC0831 -- just change the ADC interface and the print output.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • DJFXDJFX Posts: 15
    edited 2005-12-02 22:52
    I ran the program and got it to work once.· But now it only displays a lot of symbols.· Am I doing somthing wrong?
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-12-02 23:01
    Yes... but I don't know what. Did you make some changes to the code? Do you have a noisy connection? Check for simple things first.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.