• 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...
  • 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...
  • variables with type unsigned long problem
    Dear All: When I compile the the code with the statement: The type of short_idx is unsigned short. Row1= (short_idx * 64) >> 8 >>8; If the value of short_idx is 2048, the Row1 should...
  • Data type question --- unsigned int variable
    I am using Uvision2. For some reasons I still see the negative value when declared a variable as unsigned interger -- According to the compiler, it supposes to be positive number from 0 - 65536. ...
  • variables with type unsigned long problem
    Dear All: When I compile the the code with the statement: The type of short_idx is unsigned short. Row1= (short_idx * 64) >> 8 >>8; If the value of short_idx is 2048, the Row1 should...