|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-12-2 09:35:40
|
显示全部楼层
回复【5楼】spark51
“但我用万用表的一端去接到tx,能进中断”。。。接mcu的tx能进中断?
-----------------------------------------------------------------------
485IC的TX
我写错了,mcu的RX
昨天问题解决了,
IE = 0x00; // Disable all interrupts
MCU_PIN_SHARE1_FF01=0x40; //P7.6 is IO ,P30&P31 is IO/RXD/TXD ok
MCU_PORT5_OE_FF03=0x60; //P5.6 is output 0: P5.5 is output pin ok
//MCU_PORT5_OE_FF03=0x40; //P5.6 is output 0: P5.5 is input pin no
MCU_PORT1_TYPE_FF09=0xfd; //P11 is standard IO,others is push-pull output
我用对比软件一句一句对比以前的可以的代码。
就改了注掉的那部分,,
但是没有分析出为什么来?
谢谢上面的回复,
P5.5 是Debug的脚,p5.6是烧录脚之一 |
|