在线时间1574 小时
UID123826
ST金币2517
蝴蝶豆239
注册时间2009-4-22
该用户从未签到
版主
- 最后登录
- 2021-4-10
|
发表于 2011-3-2 17:22:56
|
显示全部楼层
RE:stm8s的PA端口复用问题?
When the MCU is in Halt/Active-halt mode, PA1 is automatically configured in input weak pull up and cannot be used for waking up the device. In this mode, the output state of PA1 is not driven. It is recommended to use PA1 only in input mode if Halt/Active-halt is used in the application.
上述是PA1的注意事项,你可以用上述代码测试一下PA的其他口,如果可以使用。你在配置时钟时增加先写:CLK_ECKR_HSEEN=0,试一下,能不能操作PA1和PA2。 |
|