Examples

Examples are divided into three levels of difficulty : Easy, Intermediate and Advanced.

GPIO

Module reference

GPIO means General Purpose Input Output. This module is able to take control of the microcontroller pins in a digital (on-or-off) fashion, either in input or in output.

Timers/Counters

Module reference

Timers/Counters are used for a wide range of purposes, including generating PWM signals, measuring input signals, and perform asynchronous counting of events.

Servo

Module reference

Servomotors are handy devices in robotics and lots of other areas. Learn how to control them here.

ADC

Module reference

An ADC (Analog to Digital Converter) is a device able to measure a voltage. It is especially useful for reading the output of an analog sensor.

DAC

Module reference

A DAC (Digital to Analog Converter) is a device able to generate an analog voltage. It can be used for instance to output a reference voltage or an analog signal.

SCIF

Module reference

The System Control Interface is used to control the internal clocks of the microcontroller.

I2C

Module reference

I2C is a protocol allowing to transfer data between microcontrollers and other peripherals using only two wires.

SPI

Module reference

SPI is a protocol allowing to transfer data between microcontrollers and other peripherals quickly and efficiently.

USART

Module reference

An USART is a controller able to communicate with microcontrollers and other peripherals using a simple protocol.

USB

Module reference

USB is an ubiquitous protocol used to communicate with a computer.

Flash

Module reference

The Flash is the non-volatile memory embedded in the microcontroller. It is used to store the program but can also be read and written during the execution.

Watchdog

Module reference

The watchdog is a safety time that can be used to automatically trigger a reset if the program crashes.