Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setting up a project

Go to the top menu bar and click File->New->CCS Project. The dialog that appears should look something like this:

...

I've already explained the PxOUT and PxDIR registers, so we'll skip over them and look at the for loop. In the for loop, we are toggling bit 0 of P1OUT using the XOR operator (See Clearing, Toggling, Setting, and Checking a Bit) and then we call a special function, __delay_cycles.

...