HOME

 

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

- Tutorial_LEDs_01.c

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

- Tutorial_LEDs_03.c

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()

- Tutorial_LEDs_04.c

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

- Tutorial_LEDs_06.c

LEDs-07:

- Our complete program to turn on 3 ZCOG dev bd. LEDs

LEDs-08:

- Add delay to see PB7 flash on and off

- TUTORIAL.c

 

HOME