Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] LPC2200 Application Note on SPI (AN10369)

2006-05-11 by Tom Walsh

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..."
----------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.