外部4M晶振 main() { SCPSC = 0x48; SCBR = 0x01; SCC1_ENSCI = 1; SCC1 = 0; SCC2 = 0; SCC2_TE = TRUE; SCC2_RE = 1; SCC3 = 0; SCC2_SCRIE = TRUE; SCC2_TCIE = TRUE; SCC2_SCTIE = 0; SCC2_SCRIE = TRUE; EnableInterrupts; for(;;){ while(!SCS1_SCTE); SCDR = 0X55; Delay(200);//延时 PTE_PTE5 = ~PTE_PTE5; Delay(200);//延时 } } 程序运行后,PTE5脚有脉冲输出,但是TXD脚没有反应,一直高电平. 不知道初始化中那里错了(PLL已经初始化)
[此贴子已经被作者于2006-9-7 20:47:42编辑过] |