ADSP-BF537 Blackfin Processor Hardware Reference
13-33
UART Port Controllers
w[p0+UART0_DLL-UART0_GCTL] = r0; /* write lower byte to DLL
*/
r7 = r0 >> 8;
w[p0+UART0_DLH-UART0_GCTL] = r7; /* write upper byte to DLH
*/
r7 = STB | WLS(8) (z); /* clear DLAB again and con-
fig to */
w[p0+UART0_LCR-UART0_GCTL] = r7; /* 8 bits, no parity, 2 stop
bits */
r7 = [sp++];
rts;
uart_init.end:
The subroutine in
performs autobaud detection similarly to
UART boot.
Listing 13-2. UART Autobaud Detection Subroutine
/***************************************************************
* Assuming 8 data bits, this functions expects a '@'
* (ASCII 0x40) character
* on the UARTx RX pin. A Timer performs the autobaud detection.
* Input parameters: p0 contains the UARTx_GCTL register address
* p1 contains the TIMERx_CONFIG register
* address
* Return values: r0 holds timer period value (equals 8 bits)
***************************************************************/
uart_autobaud:
[--sp] = (r7:5,p5:5);
r5.h = hi(TIMER0_CONFIG); /* for generic timer use calculate
*/
r5.l = lo(TIMER0_CONFIG); /* specific bits first */
r7 = p1;
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...