This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with p89c669 serial interrupt

iam using p89c669 for serial communication
the problem is no transmission thats TI_0 is not getting set when i mov something to s0buf,iam using uart 0

void main()
{
	i=0;
	PCON   = 0X10;
	S0CON  = 0X50;
	S0STAT = 0x00;
	BRGCON = 0X00;
	BRGR1  = 0X96;
	BRGR0  = 0X00;
	BRGCON = 0X01;
	IEN0   = 0X90;
	S0BUF  = 'X';
	while(1);

}
can u find some solution?

0