LPC1313 toggling GPIO pins

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

LPC1313 toggling GPIO pins

跳至解决方案
1,138 次查看
prachipanse
Contributor III

Hi,

I am using the LPC1313FBD48/01 controller to toggle some LEDs. I am using the LPCOpen library. 

I observed in the GPIO registers that some GPIO outputs are not getting set (IOCON_PIO0_11 and IOCON_PIO1_10). Using the same procedure I am able to toggle the pin IOCON_PIO1_1.

Please suggest me what may be the issue.

Thanks and Regards. 

标签 (4)
标记 (3)
0 项奖励
回复
1 解答
840 次查看
prachipanse
Contributor III

Hi,

I was able to find a workaround. The problem is seen when I use the Chip_GPIO_SetDir function to set the pin directions instead of Chip_GPIO_SetPinDIROutput. The Chip_GPIO_SetDir function doesn't seem to set the direction bits for some pins properly. However, I couldn't find the reason for the same.

Thanks and Regards.

在原帖中查看解决方案

0 项奖励
回复
1 回复
841 次查看
prachipanse
Contributor III

Hi,

I was able to find a workaround. The problem is seen when I use the Chip_GPIO_SetDir function to set the pin directions instead of Chip_GPIO_SetPinDIROutput. The Chip_GPIO_SetDir function doesn't seem to set the direction bits for some pins properly. However, I couldn't find the reason for the same.

Thanks and Regards.

0 项奖励
回复