GPIO interrupt

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

GPIO interrupt

1,400 Views
prakashpatel
Contributor II

Hi,

I am trying to setup external interrupt on my target hw. I successfully configured PORTE pin28 interrupt. However when I tried to do the same on PORTA same pin number. MCU is reseting. This specifically happens when I try to set a value in PORTA->DFER .

Any help is appreciated.

Thanks

Labels (1)
0 Kudos
5 Replies

817 Views
adriancano
NXP Employee
NXP Employee

Hi,

Can you please provide the information, which device is your target device?

Regards,

Adrian

0 Kudos

817 Views
prakashpatel
Contributor II

Hi,

I am using K10 series MCU.

Prakash

On Mon, May 26, 2014 at 3:28 PM, Adrian Sanchez Cano <

0 Kudos

817 Views
mjbcswitzerland
Specialist V

Hi

Do you power up PORTA (enable clocks to it) before writing to its registers?

Regards

Mark

0 Kudos

817 Views
prakashpatel
Contributor II

Thank you for your reply.

good question. I am enabling all clock. see following instruction.

SIM_SCGC5 |= 0x3E00UL

Prakash

On Mon, May 26, 2014 at 5:22 PM, Mark Butcher <admin@community.freescale.com

0 Kudos

817 Views
prakashpatel
Contributor II

Kinetis K10 series

0 Kudos