"Learn more about the C
Programming course"
Module1 | Module2 | Module3 | Module4 |
C program structure. | Controlling individual port bits. | Variables types and Conditional statements. | Dice project using arrays and while loops. |
Microcontroller Flash memory RAM memory Internal units Videos Theory C Start C Compiler & ICPROG Ports DOWNLOAD 1.1 Program 1.1 Int/Ext controls Start Learning C main function Braces port direction Infinite loop Action code Semicolons Whitespace Practical Circuit diagram Summary Exercises |
Theory Operators & expressions Logical operators Bitwise operators DOWNLOAD 2.1 Program 2.1 Bitwise styles Comments DOWNLOAD 2.2 Program 2.2 Practical Circuit diagram Summary Exercises |
Theory Variables Variable types Choosing vars. Declaration Using variables Variable assignment Conditionals: if-else Invert (or NOT) switch Cond. expr ?: Practical The circuit DOWNLOAD 3.1 Program 3.1 DOWNLOAD 3.2 Program 3.2 Summary Exercises |
Theory Random number Key debounce Arrays Array declaration while break while(expr) ; do while(expr); Practical The dice circuit DOWNLOAD 4.1 Program 4.1 Summary Exercises |
Module5 |
Module6 |
Module7 | Module8 |
Tidying up the dice project: Functions. | Talking to the PC: RS232. | Local
statics and compact operators. |
Enumerated Types, typedef and Preprocessing. |
Theory Functions void functions Return values Increment Decrement for loop break again continue static variables Practical DOWNLOAD 5.1 Program 5.1 Summary Exercises |
Theory Strings String terminator #include libraries string.h Formatting numbers Using formatting Practical USART The circuit Hyperterminal Download 6.1 Program 6.1 Download 6.2 Program 6.2 Summary Exercises |
Theory Static variables Scope Local scope File scope Globals Static functions Compact operators Practical Download 7.1 Program 7.1 Summary Exercises |
Theory State machines State diagram Typedef Enumerated types The preprocessor #include #define (const) #define (macros) Conditional compilation Practical Download 8.1 Program 8.1 Summary Exercises |
Module9 | Module10 | Module11 | |
Pointers and pass by reference. | Structures, casting & PWM. | Multiple project file structure. | |
Theory Pointers Address operator Derefererence Pointers and arrays Pointer Arguments Practical The circuit Download 9.1 Program 9.1 Summary Exercises |
Theory Casting 'struct' definition 2nd project data structure (struct) PWM duty cycle PWM Average PIC PWM module Practical The circuit Download 10.1 Program 10.1 Summary Exercises |
Theory Header files Source files Static functions Practical Download 10.1 Program 10.1 Summary Exercises |
With the ADXL345 acellerometer you can detect up to 16g! You can also find out how to use it for tap detection and more.
HMC5883L - How make a digital compass, Find out the differences between the HMC5883L and the QMC5883L and whether they are compatible.
Easily use an ESP8266 with the Arduino IDE and program your first sketch into the ESP8266
The MCP4725 chip is a 12 bit DAC with memory that outputs voltage that you can use for many dfferent purposes. Find out what they are in this page.
PCF8591: A four input ADC with single DAC. How good is this 8 bit ADC, and should you use it in your next project?
Arduino Nano ISP: How to program an ATmega328P using an Arduino Nano as the ISP programmmer. One common problem: Programming a sketch into the chip without a reset control - solved here.
New! Comments
Have your say about what you just read! Leave me a comment in the box below.