Thnx, but im still confuse. I know i should use hyperterminal, but the thing is i dont
know how to write the coding to print the output through hyperterminal. Or is there any
build in print function like printf? Can u provide some example C coding?
Btw, im using CodeWarrior 4.6 compiler.
------------------------------------
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
If you use ICC12, you have to write your own "putchar" function.=20
Then, you can use the internal function "printf", "puts" to write any thing
on your serial port.
With CodeWarrior.. I don't know how to write interrupt service routine...
I send you a mail with joined file I rewrite to your address
t...@hotmail.com
with
- init SCI1
- redefinition of putchar
- interrupt function for SCI1
Hope you'll receive it. Sorry, it's in French !
In your main function, you just have to
- call init function
- enable interrupt
- write what you want by printf or puts or putchar
Anyway, a compiler never can find by itself where you want to send
characters with printf or puts. The compiler simply call putchar function.
It's why you have to write it.
Joel
> -----Message d'origine-----
> De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part =
de
> t...@hotmail.com
> Envoy=E9=A0: jeudi 20 novembre 2008 14:24
> =C0=A0: 6...@yahoogroups.com
> Objet=A0: [68HC12] Re: silly question
>=20
>=20
>=20
> Thnx, but im still confuse. I know i should use hyperterminal, but the
> thing is i dont know how to write the coding to print the output through
> hyperterminal. Or is there any build in print function like printf? Can u
> provide some example C coding?
> Btw, im using CodeWarrior 4.6 compiler.
>=20
> ------------------------------------
>=20
>

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )