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 | Re: silly question

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

Re: silly question - toma...@hotmail.com - Nov 20 8:23:57 2008



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 )


RE: Re: silly question - jpdi - Nov 20 12:11:48 2008

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 )