UART SC26C92 - soft.
Michal HW
michalgregor@centrum.cz
Středa Říjen 25 12:24:42 CEST 2006
Zkousim UART SC26C92 a potvora nechce vyslat ani jeden byte. Viz vypis nize.
UART funguje a je pripojen, krystal bezi. Vstupy ctu, vystupy nastavuji.
Totez plati o flag registru.
Jdu se znova zahrabat do pdf.
Michal Gregor
Reset_UART=1;
#asm
nop
nop
nop
#endasm
Reset_UART=0;
UART_CRA=b00100000; //Reset UART A - in
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRA=b11000000; //Timeot off
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRA=b11110000; //Pwr. down vypnut
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRB=b01000000; //Reset UART B
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRB=b11000000;
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRB=b11110000;
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRA=b10110000; //MR0
#asm
nop
nop
nop
nop
nop
#endasm
UART_MRA=b01110000;
#asm
nop
nop
nop
nop
nop
#endasm
UART_CRA=b00010000; //MR1
#asm
nop
nop
nop
nop
nop
#endasm
UART_MRA=b00010011;
UART_MRA=b00000111; //MR2 automaticky
UART_CSRA=b01101110;
UART_TxFIFOA='P';
UART_TxFIFOA='o';
UART_TxFIFOA='k';
UART_TxFIFOA='u';
UART_TxFIFOA='s';
Další informace o konferenci Hw-list