Difference between revisions of "AVR Embedded Tutorials"

From Free Pascal wiki
Jump to navigationJump to search
m (→‎Software: Fix typo)
Line 23: Line 23:
 
=== Software ===
 
=== Software ===
  
* [[AVR_Programming|AVR Programming]]] - Important basics and special features for programming AVR.
+
* [[AVR_Programming|AVR Programming]] - Important basics and special features for programming AVR.
 
* [[AVR Embedded Tutorial - Library|Libraries]] - Units in AVR programming.
 
* [[AVR Embedded Tutorial - Library|Libraries]] - Units in AVR programming.
 
* [[AVR Embedded Tutorial - Delays|Delay]] - Waiting routines (delay/sleep).
 
* [[AVR Embedded Tutorial - Delays|Delay]] - Waiting routines (delay/sleep).

Revision as of 08:00, 21 October 2020

Deutsch (de) English (en)

AVR embedded tutorials

This is an overview of tutorials for programming AVR microcontrollers with Free Pascal and Lazarus. This includes various ATtiny and ATmega microcontrollers. Most of the examples also run on an Arduino with an ATmega; especially the Uno/Nano. The Arduino-Mega can also be programmed. Basically, all AVR microcontrollers are programmed more or less the same way. Usually only the registers differ a little.

Set up cross compiler/IDE

Building the cross compiler and setting up the Lazarus IDE:

AVR programming examples

AVR tutorials

Software

Hardware

Communication

  • UART - Serial input and output via UART (COM port).
  • SPI - Use of the hardware SPI interface with an ATmega328 / Arduino.
  • SPI slave - Use SPI as a slave.
  • I²C / TWI - Communication with I²C / TWI, hardware controlled.
  • Software I²C/TWI - Communication with I²C / TWI, software controlled.

External modules

See also