if you include embedded.c into your app and have a look at it you should find it includes a printf function calling terminal.c and those functions in turn calling termio.c. These have to be set up correctly for the QG8 though.
Browse through these and see if you can modifiy them to your purpose.
here's a couple of clues if youre not too familiar with the SCI module.
----code snip-----
void fnSCI_Setup(void)
{
SCIC1= 0; //8 bits no parity
SCIC2=(SCIC2_TE_MASK) ; //trasmit enabled only (no receive), no interrupts
SCIBDH=0; //these two are used to set up the baud rate
SCIBDL=0x3B; // values vary depending on how the bus clock is set up.
}
--------code snip---------
BAUDRATE=BUS CLOCK/(16XBR)
where BR is the lower 13 bits of the WORD combination of SCIBDH and SCIBDL
You might consider going into termio.c and changing the TERMIO_Init function to suit your setup.
You could also create your own setup function and relace the TERMIO_Init calls with your own.
Notice in termio.c that the functions are using different methods depending on compile options. Different processors have their bit options in different places etc and the register names differ. If there's no suitable code in any of the options, you'll have to insert your own.
The SCI setup/init should be done before using printf.
John Dowdell