Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | silly question "how to print"

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

silly question "how to print" - toma...@hotmail.com - Nov 19 22:45:41 2008

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 )


RE: silly question "how to print" - jpdi - Nov 20 5:04:02 2008

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 )