LEDs Prgm'g INDEX |
LEDs-01: Build a new project and download the code to your dev board - Set a few ZDSII IDE Options - Create a new project and add a source file to it - Add code to our blank Tutorial01.c file - Build our new project and download the code to your dev board |
LEDs-02: Setup the Debugger - Explain one of the Zilog C macros in our code - Examine the PAOUT register (0xFD3) - Setup the Debugger with breakpoints - Step through the code's breakpoints |
LEDs-03: Program Port Address and Control Functions - Visit GPIO port functionality and Registers - Program the port address (PxADDR) and control (PxCTL) functions together - Configure Port B for red LED PB7 |
LEDs-04: Use Debugger to Step Over and Step Into our functions - Move our PB7 code into a function - Build 3 functions, one for each LED - Step Over the first function while you Step Into the remaining two functions in main() |
LEDs-05: Bit manipulation using OR and AND - Review bitwise AND, OR, and NOT manipulation to set, clear, and invert bits |
LEDs-06: Port/bit manipulation using OR, AND, NOT - Apply bitwise manipulation to change port commands to affect only a single bit/pin and not the whole port |
- Our complete program to turn on 3 ZCOG dev bd. LEDs |
- Add delay to see PB7 flash on and off |