??? 06/26/09 14:21 Read: times |
#166496 - Re: Direct memory Responding to: ???'s previous message |
Hi Andy,
You're not calling printf from an ISR, are you...? I call from 5s TIC interrupt: void TIC_int () interrupt 10 { printf("Data 1:%un",data1); //Output result to UART printf("Data 2:%un",data2); //Output result to UART printf("Data 3:%un",data3); //Output result to UART } main() { //Configure UART T3CON = 0x83; //9600 Baud rate T3FD = 0x12; SCON = 0x52; PCON = 0x10; //ALE OFF //Configure TIC IEIP2 = 0x04; //Enable TIC interrupt EA = 1; //Enable global interrupts TIMECON = 0xD0; //Count in seconds INTVAL = 0x05; //Count duration (5 second delay between temperature readings) delay(10000); //Delay to allow TIC registers be written } |