3. Digital Logic
3.1. Purpose
This activity is intended introduce and/or reinforce the use of digital logic in a program, as well as further progress a student’s C programming skills.
3.2. Hardware and Tools
MSP-EXP432P401R Launchpad Development Board, OR
TI-RSLK Robotic Car [CCS Option]
OR
None [Online Option]
3.3. Instructions
You have two options for completing this Activity:
[Preferred] Perform all steps within CCS; which will require being connected to a Launchpad Board or RSLK, or
Perform all steps within an online (or local) C IDE/compiler. This will not require hardware but will of course be a different environment than CCS.
3.3.1. CCS Option
Download the template CCS project from here:
TemplateProject.zip
, and import it into CCS.As you will be using this project multiple times throughout the course, it is best to rename the project so you may import it again in the future. To do so, right click on the project name in the Project Explorer pane and select Rename…. Select a new project name that makes sense to you.
Continue the activity with the Shared Instructions.
3.3.2. Online Option
Open a new online C IDE/compiler instance. It is suggested to start from the standard “Hello World” program that is the default for many of these:
#include <stdint.h> // Needed for defining the [u]int#_t variable types #include <stdio.h> // Needed for printf() support int main() { printf("Hello World!"); }
Continue the activity with the Shared Instructions.