MCP 201: Fundamentals of Embedded C for PIC18 & ST Microelectronics Microcontrollers
No previous programming experience is required for this course, only basic PC usage is essential.
Five days at 5 hours per day.
Comprehensive delegate handbook.
Provide basic understanding of PIC microcontrollers design and programming using C language.
Demonstrate a simple practical utilization of PIC microcontrollers for real-world applications using C.
Participants Will Learn
Fundamentals of Embedded C programming.
How to program a PIC16 microcontroller using C.
Introduction to Embedded C (MikroC, CCS, MPLABC).
Introduction to PIC18 microcontrollers: Architectural overview, CPU, instruction sets, stack, development tools.
Primitive Types, Variables and Constants: Variable types, declaration, variable scope, local variables, global variables, numeric constants, enumerations, declaration and initialization, naming convention, assignment and arithmetic operators, type casting, precedence and associativity.
Looping: While loop, for loop, do-while loop, endless/infinite loops.
Goto, Break and Continue Statements.
Functions: Prototypes, functions with return types, functions with parameters/arguments, recursion.
Arrays: Declaring an array, assigning values/elements to an array, sorting array elements.
Memory Organization and Types, Real-Time Methods and I/O Ports: Register variables, using interrupts, counters and resets, state machines, data memory flash memory, return address stack, parallel slave port (PSP) mode.