Skip to main content
10605173 Embedded Programming
Course Information
Description
Embedded Programming introduces programming concepts and techniques used in microcontroller-based systems. Students develop embedded applications using the C programming language with emphasis on data types, conditional and iterative structures, arrays, functions, pointers, bit manipulation, and direct hardware input/output. Students interface programs with microcontroller peripherals as they explore embedded hardware programming. Laboratory activities emphasize program development, testing, debugging, documentation, and integration of software with embedded hardware. 
Total Credits
3

Course Competencies (Course Outcomes)
  1. Apply binary and hexadecimal number systems to embedded programming
    Assessment Strategies
    Problem sets
    Programming exercises
    Exams
    Criteria
    Convert values among binary, hexadecimal, and decimal number systems
    Represent signed and unsigned integer values in binary form
    Apply positional notation to determine numeric values
    Perform basic binary and hexadecimal arithmetic as required by embedded applications
    Relate binary and hexadecimal representations to registers, memory, and digital hardware
    Verify numeric conversions and representations using program output or development tools

  2. Develop embedded programs using fundamental C language syntax and data types
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Exams
    Criteria
    Create, compile, and execute C programs using an embedded development environment
    Declare and initialize variables and constants using appropriate data types
    Apply arithmetic, relational, logical, and assignment operators
    Use expressions and type conversions appropriately
    Select data types based on range, precision, memory, and application requirements
    Interpret compiler errors and warnings and correct program syntax
    Document program operation using meaningful identifiers and comments

  3. Implement decision structures in embedded C programs
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Program demonstration
    Criteria
    Implement if, if-else, and nested decision structures
    Implement switch-case structures when appropriate
    Construct conditional expressions using relational and logical operators
    Select program actions based on input values or system states
    Test decision structures using representative boundary and operating conditions
    Debug conditional logic to produce the required program behavior

  4. Implement iterative structures in embedded C programs
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Program demonstration
    Criteria
    Implement for loops for count-controlled repetition
    Implement while loops for condition-controlled repetition
    Implement do-while loops when post-test repetition is appropriate
    Control loop execution using appropriate initialization, conditions, and updates
    Apply nested loops when required by the application
    Identify and correct infinite loops and off-by-one errors
    Select an appropriate iterative structure for a specified programming task

  5. Organize and manipulate data using arrays and related data structures
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Exams
    Criteria
    Declare and initialize one-dimensional arrays
    Access and modify array elements using valid indexes
    Process array data using iterative structures
    Store and retrieve collections of sensor, measurement, or program data
    Prevent out-of-bounds array access
    Apply character arrays or strings where appropriate
    Verify array operations using program output or debugging tools

  6. Develop modular embedded programs using functions
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Program demonstration
    Criteria
    Define and call functions using appropriate return types and parameters
    Pass data to functions using arguments
    Return calculated or status values from functions
    Use function prototypes appropriately
    Decompose a programming problem into logical reusable functions
    Apply variable scope appropriately within a program
    Test individual functions and verify their integration into the complete program

  7. Apply pointers and memory addressing in embedded C programs
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Exams
    Criteria
    Declare and initialize pointers using appropriate data types
    Use address and dereference operators correctly
    Access variables and data through pointers
    Pass addresses to functions when appropriate
    Relate pointers to arrays and memory locations
    Interpret pointer values using development and debugging tools
    Avoid invalid or unintended memory access

  8. Manipulate data at the bit level using bitwise operations
    Assessment Strategies
    Programming exercises
    Laboratory assignments
    Exams
    Criteria
    Apply bitwise AND, OR, XOR, and NOT operations
    Use left-shift and right-shift operations appropriately
    Create and apply bit masks
    Set, clear, toggle, and test individual bits within a value or register
    Interpret register values using binary and hexadecimal notation
    Modify selected register bits without unintentionally changing unrelated bits
    Verify bit-level operations using program output or debugging tools

  9. Interface embedded C programs with microcontroller hardware
    Assessment Strategies
    Laboratory assignments
    Hardware programming exercises
    Skill demonstration
    Criteria
    Configure microcontroller input and output resources as required by the application
    Read digital input states from external hardware
    Control digital outputs connected to external hardware
    Apply register-level or library-based hardware access as appropriate
    Interpret microcontroller documentation needed to configure hardware resources
    Test hardware interfaces using appropriate electronic test equipment
    Troubleshoot software and hardware interactions using a systematic process

  10. Develop basic microcontroller programs using assembly language
    Assessment Strategies
    Assembly-language programming exercises
    Laboratory assignments
    Exams
    Criteria
    Identify fundamental microcontroller registers and assembly-language instruction formats
    Use data transfer, arithmetic, logical, branch, and control instructions
    Trace the execution of a basic assembly-language program
    Create and assemble a basic microcontroller assembly-language program
    Relate assembly-language instructions to processor registers and memory
    Test and debug assembly-language programs using development tools
    Explain the relationship between C language statements and processor-level operations

  11. Design, develop, test, and document a microcontroller-based application
    Assessment Strategies
    Embedded system project
    Program demonstration
    Technical report
    Criteria
    Define functional requirements for a microcontroller-based application
    Develop a program structure that addresses the stated requirements
    Integrate input, output, processing, and communication functions as required by the application
    Compile and test the application on target hardware
    Debug software and hardware problems using a systematic process
    Verify application performance against defined requirements
    Document program structure, hardware interfaces, testing, and results
    Demonstrate and explain the completed application