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)
-
Apply binary and hexadecimal number systems to embedded programmingAssessment StrategiesProblem setsProgramming exercisesExamsCriteriaConvert values among binary, hexadecimal, and decimal number systemsRepresent signed and unsigned integer values in binary formApply positional notation to determine numeric valuesPerform basic binary and hexadecimal arithmetic as required by embedded applicationsRelate binary and hexadecimal representations to registers, memory, and digital hardwareVerify numeric conversions and representations using program output or development tools
-
Develop embedded programs using fundamental C language syntax and data typesAssessment StrategiesProgramming exercisesLaboratory assignmentsExamsCriteriaCreate, compile, and execute C programs using an embedded development environmentDeclare and initialize variables and constants using appropriate data typesApply arithmetic, relational, logical, and assignment operatorsUse expressions and type conversions appropriatelySelect data types based on range, precision, memory, and application requirementsInterpret compiler errors and warnings and correct program syntaxDocument program operation using meaningful identifiers and comments
-
Implement decision structures in embedded C programsAssessment StrategiesProgramming exercisesLaboratory assignmentsProgram demonstrationCriteriaImplement if, if-else, and nested decision structuresImplement switch-case structures when appropriateConstruct conditional expressions using relational and logical operatorsSelect program actions based on input values or system statesTest decision structures using representative boundary and operating conditionsDebug conditional logic to produce the required program behavior
-
Implement iterative structures in embedded C programsAssessment StrategiesProgramming exercisesLaboratory assignmentsProgram demonstrationCriteriaImplement for loops for count-controlled repetitionImplement while loops for condition-controlled repetitionImplement do-while loops when post-test repetition is appropriateControl loop execution using appropriate initialization, conditions, and updatesApply nested loops when required by the applicationIdentify and correct infinite loops and off-by-one errorsSelect an appropriate iterative structure for a specified programming task
-
Organize and manipulate data using arrays and related data structuresAssessment StrategiesProgramming exercisesLaboratory assignmentsExamsCriteriaDeclare and initialize one-dimensional arraysAccess and modify array elements using valid indexesProcess array data using iterative structuresStore and retrieve collections of sensor, measurement, or program dataPrevent out-of-bounds array accessApply character arrays or strings where appropriateVerify array operations using program output or debugging tools
-
Develop modular embedded programs using functionsAssessment StrategiesProgramming exercisesLaboratory assignmentsProgram demonstrationCriteriaDefine and call functions using appropriate return types and parametersPass data to functions using argumentsReturn calculated or status values from functionsUse function prototypes appropriatelyDecompose a programming problem into logical reusable functionsApply variable scope appropriately within a programTest individual functions and verify their integration into the complete program
-
Apply pointers and memory addressing in embedded C programsAssessment StrategiesProgramming exercisesLaboratory assignmentsExamsCriteriaDeclare and initialize pointers using appropriate data typesUse address and dereference operators correctlyAccess variables and data through pointersPass addresses to functions when appropriateRelate pointers to arrays and memory locationsInterpret pointer values using development and debugging toolsAvoid invalid or unintended memory access
-
Manipulate data at the bit level using bitwise operationsAssessment StrategiesProgramming exercisesLaboratory assignmentsExamsCriteriaApply bitwise AND, OR, XOR, and NOT operationsUse left-shift and right-shift operations appropriatelyCreate and apply bit masksSet, clear, toggle, and test individual bits within a value or registerInterpret register values using binary and hexadecimal notationModify selected register bits without unintentionally changing unrelated bitsVerify bit-level operations using program output or debugging tools
-
Interface embedded C programs with microcontroller hardwareAssessment StrategiesLaboratory assignmentsHardware programming exercisesSkill demonstrationCriteriaConfigure microcontroller input and output resources as required by the applicationRead digital input states from external hardwareControl digital outputs connected to external hardwareApply register-level or library-based hardware access as appropriateInterpret microcontroller documentation needed to configure hardware resourcesTest hardware interfaces using appropriate electronic test equipmentTroubleshoot software and hardware interactions using a systematic process
-
Develop basic microcontroller programs using assembly languageAssessment StrategiesAssembly-language programming exercisesLaboratory assignmentsExamsCriteriaIdentify fundamental microcontroller registers and assembly-language instruction formatsUse data transfer, arithmetic, logical, branch, and control instructionsTrace the execution of a basic assembly-language programCreate and assemble a basic microcontroller assembly-language programRelate assembly-language instructions to processor registers and memoryTest and debug assembly-language programs using development toolsExplain the relationship between C language statements and processor-level operations
-
Design, develop, test, and document a microcontroller-based applicationAssessment StrategiesEmbedded system projectProgram demonstrationTechnical reportCriteriaDefine functional requirements for a microcontroller-based applicationDevelop a program structure that addresses the stated requirementsIntegrate input, output, processing, and communication functions as required by the applicationCompile and test the application on target hardwareDebug software and hardware problems using a systematic processVerify application performance against defined requirementsDocument program structure, hardware interfaces, testing, and resultsDemonstrate and explain the completed application