How to configurate ports as I/O in a HCS08 MCU in C using Codewarrior?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to configurate ports as I/O in a HCS08 MCU in C using Codewarrior?

跳至解决方案
1,153 次查看
juancarlossuare
Contributor III

How to configurate ports as I/O in a HCS08 MCU in C using Codewarrior?

标签 (1)
0 项奖励
回复
1 解答
965 次查看
weapon
Senior Contributor I

Hi Baron,

Almost all of HCS08 MCU haven't dedicated Signal Multiplexing configuration, that means there is not extra setting for ports used as IOs,  In all HCS08 MCUs,  the default function of ports is GPIOs, then if  one peripheral who share one port with GPIO is engaged, the periphral will overwrite the GPIO fucntion.  Generally speaking, in the datasheet (reference manual) of MCUs, there will be one table to show Pin-Count and Pin Priotiry(as below),  Periphrals with higher priority will overwrite the lower peripherals' function.

QQImage_8090087.jpg

在原帖中查看解决方案

0 项奖励
回复
1 回复
966 次查看
weapon
Senior Contributor I

Hi Baron,

Almost all of HCS08 MCU haven't dedicated Signal Multiplexing configuration, that means there is not extra setting for ports used as IOs,  In all HCS08 MCUs,  the default function of ports is GPIOs, then if  one peripheral who share one port with GPIO is engaged, the periphral will overwrite the GPIO fucntion.  Generally speaking, in the datasheet (reference manual) of MCUs, there will be one table to show Pin-Count and Pin Priotiry(as below),  Periphrals with higher priority will overwrite the lower peripherals' function.

QQImage_8090087.jpg

0 项奖励
回复