Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/12/01 19:49
Read: times


 
#9250 - RE: Cygnal C8051
Thanx everybody.
I checked SBUF on uC and it is different from both sent from PC and received from uC. Just four LSBits always correct.
Oscilloscope shows signals coming.
Here is my code:

unsigned char Buff;
WDTCN = 0xDE;
WDTCN = 0xAD;
OSCXCN = 0x65;
while (!(OSCXCN & 0x80)) {}
OSCICN = 0x08;
XBR2 = 0x40;
XBR1 = 0x00;
PRT0CF |= 0xFF;
PRT1CF |= 0x7E;
XBR0 |= 0x04;
SCON |= 0x50;
TCON |= 0x40;
TMOD |= 0x20;
TH1 = -6;
TR1 = 1;
CKCON = 0x10;
PCON |= 0x80;
TI = 1;
RI = 0;
while (1)
{
while (!RI);
Buff = SBUF;
if (RI)
{

while (!TI);
TI = 0;
SBUF = Buff;
}
RI = 0;
}

Many thanx again

List of 15 messages in thread
TopicAuthorDate
Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      
RE: Cygnal C8051            01/01/70 00:00      

Back to Subject List