| ??? 03/15/06 09:52 Read: times |
#112211 - i trimmed and tried Responding to: ???'s previous message |
hi erik,
i trimmed down every thing but it is still not working i configured UART0 and UART1. if i write directly to SBUF0 i am receiving properly but still interrupt is not generating. UART1 is used for getting debug messages. it is non interrupt based.
void main()
{
startapp = 0; // for program loading
config(); // power on initialisation
Init_COM();
while(1)
{
delay_ms(100);
SFRPAGE = 0;
if(putchar1('A') == -1) // if buffer is full
putchar2('E');
else
putchar2('B');
SBUF0 = 'C'; // the 'C' is received.
if(TI0) // TI0 = UART0 tramsit interrupt flag
putchar2('D');
if(ES0) // ES0 = serial port interrupt enable
putchar2('F');
if(EA) // EA = enable interrupts
putchar2('G');
recvbyte2();
}
}
i am receiving characters DFGE from UART1. when ES0, EA, TI0 all reads '1' why no interrupt is generating ? haribabu |



