
ADSP-BF59x Blackfin Processor Hardware Reference
11-35
UART Port Controllers
Listing 11-3. UART Autobaud Detection Parent Routine
p0.l = lo(PORTG_FER);
/* function enable on UART0 pins PG7 and PG8 */
p0.h = hi(PORTG_FER);
r0 = PG7 | PG8 (z)
w[p0] = r0;
p0.l = lo(PORTG_MUX);
p0.h = hi(PORTG_MUX);
r0.l = 0x0020;
r0.h = 0x0000;
w[p0] = r0;
p0.l = lo(UART0_GCTL);
/* select UART 0 */
p0.h = hi(UART0_GCTL);
p1.l = lo(TIMER4_CONFIG);
/* select TIMER 4 */
p1.h = hi(TIMER4_CONFIG);
call uart_autobaud;
r0 >>= 7;
/* divide PERIOD value by (16 x 8) */
call uart_init;
...
The subroutine in
Listing 11-4 on page 11-35
transmits a character by
polling operation.
Listing 11-4. UART Character Transmission
/*******************************************************
*
Transmit a single byte by polling the THRE bit.
*
Input parameters: r0 holds the character to be transmitted
*
p0 contains UART_GCTL register address
*
Return values: none
*******************************************************/
uart_putc:
[--sp] = r7;
uart_putc.wait:
Summary of Contents for ADSP-BF59x Blackfin
Page 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Page 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Page 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Page 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Page 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...