LPC1313 toggling GPIO pins

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1313 toggling GPIO pins

ソリューションへジャンプ
1,140件の閲覧回数
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 解決策
842件の閲覧回数
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 返信
843件の閲覧回数
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 件の賞賛
返信