wickedmonster2002 wrote: >I am confused. What does #define SPIF (1<<7) mean? Everything else I > > What is 2 raised to the 7th power? This is a C statement to shift a value of "1" left by "7" bit positions. Simply write a binary "1" followed by 7 "0"s. Then convert the binary number into your favorite number base: octal, hex or decimal. Next, use your calculator to raise 2 to the 7th power. See the relationships? TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] LPC2200 Application Note on SPI (AN10369)
2006-05-11 by Tom Walsh