Connect with us

HCS12 microcontroller question

Discussion in 'Electronic Design' started by panfilero, Feb 10, 2007.

  1. Jerry Avins

    Jerry Avins Guest

    ...

    What old ad said, "Ask the man who owns one"? Advice hardly gets better
    than this!

    Jerry
     
  2. Jerry Avins

    Jerry Avins Guest

    Jerry Avins wrote:

    ...
    I remember now: Packard cars. How sexist!

    Jerry
     

  3. It went over real well, didn't it? The last I heard of Packard, they
    made connector housings and wiring harnesses for other GM brands.


    --
    Service to my country? Been there, Done that, and I've got my DD214 to
    prove it.
    Member of DAV #85.

    Michael A. Terrell
    Central Florida
     
  4. CBFalconer

    CBFalconer Guest

    Packard was never part of GM, nor of Hewlett-Packard, nor of
    Packard Bell. They merged with Studebaker somewhere around 1950,
    and Studebaker-Packard later merged with Nash-Willys-Hudson to form
    American Motors. The last traces are now embedded in Diamler-Benz,
    as Chrysler-Diamler.

    A 1930's Packard is a thing of beauty.

    F'ups set to reduce the ridiculous cross-posting.

    --
    <http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
    <http://www.securityfocus.com/columnists/423>

    "A man who is right every time is not likely to do very much."
    -- Francis Crick, co-discover of DNA
    "There is nothing more amazing than stupidity in action."
    -- Thomas Matthews
     
  5. Remember the old days of simply stacking null modems, gender changers, and
    DB9-DB25 adapters until something works??

    I found that the compiler made a huge difference on PICs, FWIW. Serial
    comms got tamed tremendously by CCS.
     
  6. Dave Rooney

    Dave Rooney Guest

    In addition to baud, stop bits, etc.. be sure that you have flow
    control set to NONE in hyperterminal. I assume you only have a
    3 wire connection, tx, rx and grnd.

    Dave Rooney
     

  7. Great advice.
     
  8. David Brown

    David Brown Guest

    panfilero wrote:
    No one else seems to have mentioned this so far, but drop hyperterminal.
    It is commonly regarded as worthless, and is regularly the cause of
    problems. I don't want to start a religious war over which is the
    "best" terminal emulator program, but you should download Tera Term Pro.
    It's free, it's simple, it's reliable, and thus it is far better than
    hyperterminal. If you ever want something more advanced, there are lots
    of options (and even more opinions), but at the moment, TTPro is your
    best choice.
     
  9. David Brown wrote:

    There is no doubt the hyperterm is inconvenient and lacking many
    features. Also, it is a part of the evil empire of MS, and every true
    believer should never even think of it.

    However I don't know of any specific problems of hyperterm. If all that
    you need is a basic terminal, it will work as good as any other program.

    Vladimir Vassilevsky

    DSP and Mixed Signal Design Consultant

    http://www.abvolt.com
     
  10. Guest

    One argument for keeping hypeterminal... you'll be familiar with it's
    issues, which is good, because the day will come where you have to
    talk to your device using someone else's computer which has nothing
    else installed.
     
  11. Paul Burke

    Paul Burke Guest

    Apart from its tendency to hang the whole computer, the main drawback is
    the difficulty of changing Baud rate, parity and handshake on the fly.
    Tera Term makes this easy, but it has its own (relatively minor)
    drawback- if it gets a faulty character it can get confused and display
    gibberish until you clear the screen and reset the connection.

    Paul Burke
     
  12. Paul Burke

    Paul Burke Guest

    That's what USB sticks were designed for.
     
  13. Guest

    Many of our customers wouldn't let us anywhere near their facility in
    the posession of one.
     
  14. Tim Wescott

    Tim Wescott Guest

    That may be good advice for a developer of serial apps.

    But

    By far most of the serial ports that talk to my code are there for
    debugging by engineering, manufacturing and service personnel.
    Generally with anybody other than software people you can either write
    stuff that'll work with Hyperterminal, or you can drop any expectations
    of having your debug port used. I've always felt that it's better to
    write my code to Hyperterminal's limitations than to fight that
    particular fight.

    --

    Tim Wescott
    Wescott Design Services
    http://www.wescottdesign.com

    Posting from Google? See http://cfaj.freeshell.org/google/

    "Applied Control Theory for Embedded Systems" came out in April.
    See details at http://www.wescottdesign.com/actfes/actfes.html
     
  15. Yuriy K.

    Yuriy K. Guest

    Can not receive 0x00 byte.
    Hanging up from time to time, especially if you start it when data is
    already flowing.

    Inability to control RTS and DTR.

    WBR, Yuriy.
    "Liberalism is a mental disorder"
     
  16. David Brown

    David Brown Guest

    There's a thread about decent alternatives to hyperterminal a dozen
    times a year in comp.arch.embedded. Look in the archives, or accept the
    opinion of experienced developers. Hyperterminal sometimes works for
    some people, but it's regularly a problem and compared to the free,
    faster, easier and reliable Tera Term Pro, it is just a waste of
    everyone's time.
     
  17. David Brown

    David Brown Guest

    I tell my customers that if they want support for the product using the
    debug port, they install Tera Term Pro and use that. Not one time have
    I heard complaints, or any hints that they might have preferred
    hyperterminal. The chances are we have different sorts of customers,
    and different sorts of support relationships - maybe I'm lucky here.
     
  18. My own experience is that most users are going to be happier with a small
    executable terminal program that works, than they would be to browse all
    the way through the communications menu to find, then configure,
    hyperterminal.

    Most users haven't touched anything that looks remotely like a terminal in
    years. They've got no familiarity with any product.
     
  19. Why would you need a terminal for anything other then the text i/o ?
    Something like "parameter = 12345, press 1 to select this, press 2 to
    dump the memory"

    Driver problem?
    Who is using RTS/CTS and DTR/DSR, please raise your hand.

    Vladimir Vassilevsky

    DSP and Mixed Signal Design Consultant

    http://www.abvolt.com
     
  20. panfilero

    panfilero Guest

    what luck, i can't believe you have the same board as me. i changed
    my code, so that i can recieve and transmit through SCI0..... I loaded
    up a serial I/O device driver from http://users.ece.utexas.edu/
    ~valvano/ and changed it around a bit, since it was for a
    MC9S12C32....

    Am I correct to think that our board/MCU has a M-Clock speed = 25
    MHz ?

    I used 25 MHz and plugged it into the formula M-Clock/(16*BaudRate) I
    used a baud rate of 9600, and got br = 163, and set this value in my
    SCI0BDL register.... I then enabled my TE and RE bits.

    is this the right way to initialize my serial port?

    I then made this function:

    void SCI_OutChar(unsigned char data){
    while((SCI0SR1 & SCI0SR1_TDRE_MASK) == 0){};
    SCI0DRL = data;

    and called it like this: SCI_OutChar('a');

    i then make it and debug it on codewarrior, and then close the debug
    screen, open hyperterminal, connect to COM1 with default settings....
    and when i hit the "reset" button on my board..... gibberish pops up
    on the screen.... like a "|" symbol.... i went and chenged the baud
    rate in my MCU and different gibberish popped up..... does this mean
    I'm not figuring my baud rate correctly?

    thanks
    joshua
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-