近日使用MC9S12C32,板子把未用的PAD口用作了输出,我从datasheet看到
4.5 Port AD
This port is associated with the ATD module.
Port AD pins can be used either for general-purpose I/O, or for the ATD subsystem.
To use PortAD[n] as a standard input, the corresponding ATDDIEN[n] must be set.
PortAD[n] can be used as a standard output independent of ATDDIEN[n]. Please refer to ATD Block Guide for details.
很明显,PortAD可以用为输出!
但是datasheet的另外一个地方,如图片,PortAD又为只读,写无效!
求那位大侠帮助:怎样使用把PAD口作为普通I/O输出!!
万分感谢!!作者: strongchen 时间: 2005-8-29 10:33