换了片子。出现了新的现象:
1.初始化接LCD数据线的port为输出后,单片机就不停的复位。
initializing LCD controller...^ø…System starting...
system clock initialized! INTOSC,Fosc=8MHz
UART initialized! Baud rate = 115200bps
initializing GPIO...done!
initializing timer1...done!Timer interrupt = 10ms
initializing LCD controller...^ø…System starting...
system clock initialized! INTOSC,Fosc=8MHz
UART initialized! Baud rate = 115200bps
initializing GPIO...done!
initializing timer1...done!Timer interrupt = 10ms
initializing LCD controller...^ø…System starting...
2.如果不接LCD,单片机就不运行,串口无输出。电源稳定,换了电源也一样,这点很奇怪。
请高手帮忙分析。谢谢! |