LPC1313 toggling GPIO pins

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1313 toggling GPIO pins

Jump to solution
1,137 Views
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. 

Labels (4)
0 Kudos
Reply
1 Solution
839 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
840 Views
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 Kudos
Reply