This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

unsigned long function returns only 16-bit number

Hello,

I'm using the EKK-3S9B96 and Keil uVision. For some reason the function that reads the quadrature position (unsigned long ROM_QEIPositionGet(QEI0_BASE)) returns only 16-bit number.

Looking in the Keil help, I understand that unsigned long should be 32-bit number (according to LM3S9B96 the position register is 32-bit). So why I'm getting only 16-bit.

Thanks.

0