Maker Pro
Maker Pro

HCS12 microcontroller question

R

Robert Adsett

Jan 1, 1970
0
Vladimir said:
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"

Checking what a serial port on a device is actually doing perhaps? Not
all data is printable ASCII. IME experience hyperterminal reacts badly
to the unexpected.
Driver problem?

I've seen it on multiple machines all with standard serial ports. Worse
it can leave the serial port inaccessible.
Who is using RTS/CTS and DTR/DSR, please raise your hand.

Hand duly raised.

I have walked novices through hyperterminal on the phone. Not a
pleasant experience.

And any engineering, service and manufacturing personnel I've worked
with have had an easier time with terminal programs other than
hyperterminal which seems designed more to confuse than to help.


Robert
 
J

joseph2k

Jan 1, 1970
0
Jerry said:
Give the guy a break. I use my breakout box, but I'll wager he doesn't
have one. Did he say he was an engineer? He's trying to get started.
That you and I did that before we got to high school may confer bragging
rights, but not sneering rights.

Jerry

I have scant tolerance for persons buying UP development boards without a
clue as how to use or connect them. This is not a poor student. This is
more likely some hack coder getting in way deeper than 'es skills.
 
what luck, i can't believe you have the same board as me.

No really suprising as Freescale elected to sell it also as the
official full development platform. If you bought it from freescale,
you got a CD of example code...
I changed
my code, so that i can recieve and transmit through SCI0.....

I was recommending you use SCI1/B since the debugger halfway owns SCI0/
A - most likely to be an issue if you try to do interrupt based
receiving. But that's probably not your problem at the moment.
Am I correct to think that our board/MCU has a M-Clock speed = 25
MHz ?

Yes, but are you enabling the clock multiplier? I'm not sure which
the serial is physically derived from, so that could be an issue.
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.

My tables appear to use 163 for 9600 baud
void SCI_OutChar(unsigned char data){
while((SCI0SR1 & SCI0SR1_TDRE_MASK) == 0){};
SCI0DRL = data;

Looks right, if your mask is 0x80

Did you set SCI0CR1 to 0x00 and SCI0CR2 to 0x0C ?
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?

Probably, or somebody's set at a different number of data or stops
bits than the other
 
Y

Yuriy K.

Jan 1, 1970
0
Vladimir said:
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"

Because I do. Monitoring exchange between CPU and 3rd party device, for
example.
Driver problem?

Standard COM port. Native WinXP-SP2 drivers.
History does not work well either.
Who is using RTS/CTS and DTR/DSR, please raise your hand.

Well, let's see.

Slow text exchange, no timing whatsoever, no binary transfer, 3-wire
interface only, no history, occasional hang-up, occasional locking
serial port, ...

Yes, of course it can be used...
 
R

Rich Grise

Jan 1, 1970
0
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.

Didn't they get together with Hewlett and start making crappy scopes? ;-)

Cheers!
Rich
 
Top