Hi
I am trying to print a rom string to the serial port, the strings are defined thus:
rom char *test_txt = "\n\rMatrix Controller Test mode\n\r";
rom char *txt1 = "Connect an 80R 10W resistor across pins 11 and 19\n\r";
rom char *txt2 = "Press Enter when ready\n\r";
i use the following call:
puts (test_txt);
where puts() is:
void puts(rom char* c)
{
char cc;
char i;
for( i = 0; cc = c[ i ]; i++ )
putc( cc );
}
void putc(char c)
{
txsta.TXEN = 1;
txreg = c;
while (txsta.TRMT == 0) clear_wdt();
}
But all of the strings are pri