void main(void)
{
PRT0DM0 = 0xFF;
PRT0DM1 = 0x00;
PRT0DM2 = 0x00; //设置p0口为strong 模式
PRT0DR = 0xF0;
}
这里是strong模式的介绍:Strong. Use the Strong mode if your pin is an output driving
a load. The pin has a low impedance connection to VSS and
VDD when driven high and low. Do not use the Strong mode
if the pin is an input.
说的输出模式。
但是我没有看到p0口有什么变化! |