Home arrow Support arrow Forums

Luminary Micro Forums

kejtu

Fresh Boarder
Click here to see the profile of this user

2008/08/19 18:34

LM3S2965 - QIE0 Problem

Hi all,

I have problem with configuration of QIE0.

Because PHA0 is on PC4 and PHB0 is on PH3 so to configure gpio I use these two function below.

GPIOPinTypeQEI(GPIO_PORTC_BASE, GPIO_PIN_4);
GPIOPinTypeQEI(GPIO_PORTH_BASE, GPIO_PIN_3);

I found that second function hang uC.
Of course befor these two function I call:

SysCtlPeripheralEnable(SYSCTL_PERIPH_QEI0);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG)

I'm little confused because QIE1 work just fine.

login or register to reply

slandrum

Expert Boarder
Click here to see the profile of this user

2008/08/19 20:42

Re:LM3S2965 - QIE0 Problem

You said that you have done:
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);

But since the pins in question are on ports C and H, you also need to do:
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOH);

login or register to reply

kejtu

Fresh Boarder
Click here to see the profile of this user

2008/08/20 02:37

Re:LM3S2965 - QIE0 Problem

Thanks for answer, somehow I thought that SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG); enable all gpio, now everything it's clear.

login or register to reply