how to extract the least 8 bits of port 0(p0.7 to p0.0) and store it into a variable of type unsigned char directly ? this is in reference to the arm7 (lpc2129). santosh
How do you extract the least 8 bits of a uint32_t and store in a uint8_t? Remember that assignments and data conversions are part of standard C, so not related to specific processors.
<code> char low_bits;
long *port;
port = 0xffff0001;
low_bits = *port; </code>
Hello j,
does this compile warning-free with the ARM compiler? Is the result as you expected?
Martin