|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2012-7-20 15:06:30
|
显示全部楼层
呵呵,实现了!
// P0.0 - Skipped, Push-Pull, Digital
// P0.1 - Skipped, Push-Pull, Digital
// P0.2 - TX1 (UART1), Push-Pull, Digital
// P0.3 - RX1 (UART1), Open-Drain, Digital
// P0.4 - TX0 (UART0), Push-Pull, Digital
// P0.5 - RX0 (UART0), Push-Pull, Digital
// P0.6 - Unassigned, Push-Pull, Digital
// P0.7 - Unassigned, Push-Pull, Digital
// 1111 1111
P0MDOUT = 0xFF;
P0SKIP = 0x03;
XBR0 = 0x00; // UART TX0, RX0 不连到端口引脚 P0.4 和 P0.5
// enable UART1
// UART TX1, RX1 连到端口引脚 P0.2 和 P0.3
XBR2 = 0x01;
XBR1 = 0x40; // Enable Crossbar
|
|