LPC1347 PIO0_12/TMS no Input

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

LPC1347 PIO0_12/TMS no Input

160 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Michael65589 on Wed Jun 26 02:19:46 MST 2013
Hi,
I want to use the PIO0_12 as capture input.
I turn on the clock for IOCON and CT32B1. Set the func of PIO0_12 to 0x3 (CT32B1_CAP0). I also activate the interrupts for CT32B1_CAP0 CCR-> 0x6 but there is no interrupt.
I use the same code on an LPC1313 with PIO1_0 as input pin and there the code is running.
It seems that the signal on PIO0_12 does not activate an interrupt. Is there something special with PIO0_12 because the default value is TMS?

Best regards

Michael
0 Kudos
1 Reply

146 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Michael65589 on Wed Jun 26 03:47:24 MST 2013
I found the reason by myself. I wrote to the IOCON register 0x3 for the PIO0_12 to set the function to CT32B1_CAP0 but by writing 0x3 I also set the ADMODE of this pin to analog input mode. I had to or the register with 0x3 then it works well.
0 Kudos