首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

MC9S12C32,怎样使用把PAD口作为普通I/O输出!

MC9S12C32,怎样使用把PAD口作为普通I/O输出!

近日使用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输出!!
万分感谢!!
正在使用MC9S12DP256和MC9S12C32,学习MC9S12UF32......
 下一步MC9S12NE64...
不知道你看的是哪个版本的数据手册,可能有错。在我的数据手册中,PORTAD只能作输入,不能作输出。请到此下载最新的数据手册:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32&nodeId=0162468636K100
海纳百川  有容乃大
返回列表