im using mc9s12dg128, codewarrior 4.6, and TBDML programmer.
How can i Print a string like 'hello world'? and how to display the string in debug
window?
i used PIC uC before, im not quite familiar with hc12 yet.
------------------------------------
______________________________
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 )
Hi,
In order to "print" something, you have to redefine the putchar function. I=
n
fact, "printf" and "puts" use "putchar".=20
So, if you write your own "putchar" function, using Serial port for example=
:
- 1) linker will link YOUR putchar
- 2) so you will able to print any string to this serial port, and retrieve
it on a window (Hyperterminal for example), simply using "printf" or "puts"
Keep in mind maybe you have to use RS-232 interface between CPU and PC.
What compiler do you use=A0?
I use ICC12, and in this case, I've to force link in conventional memory
(NOT in paged memory).
If you need other help... ask again.
Best regards.
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 04:45
> =C0=A0: 6...@yahoogroups.com
> Objet=A0: [68HC12] silly question "how to print"
>=20
> im using mc9s12dg128, codewarrior 4.6, and TBDML programmer.
> How can i Print a string like 'hello world'? and how to display the strin=
g
> in debug window?
>=20
> i used PIC uC before, im not quite familiar with hc12 yet.
>=20
> ------------------------------------
>=20
>

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