Difference between revisions of "AVR Embedded Tutorials"

From Lazarus wiki
Jump to navigationJump to search
(→‎See also: Bypass redirect; add Raspberry Pi Pico/RP2040)
Line 11: Line 11:
 
* [[AVR Embedded Tutorial - Entry Lazarus and Arduino|Getting started Lazarus and Arduino (Uno/Nano)]] - How do I set up Lazarus to program an Arduino (AVR - Cross compiler).
 
* [[AVR Embedded Tutorial - Entry Lazarus and Arduino|Getting started Lazarus and Arduino (Uno/Nano)]] - How do I set up Lazarus to program an Arduino (AVR - Cross compiler).
 
* [[AVR Embedded Tutorial - Set up Lazarus for ATmega and ATTiny|Set up Lazarus for ATtiny and ATmega]] - Lazarus cross compilation for additional Arduino/AVRs.
 
* [[AVR Embedded Tutorial - Set up Lazarus for ATmega and ATTiny|Set up Lazarus for ATtiny and ATmega]] - Lazarus cross compilation for additional Arduino/AVRs.
* Tool for creating and modifying AVR/Arduino projects: [https://github.com/sechshelme/Lazarus-Embedded/tree/master/Arduino_AVR_Package AVR/ Arduino Package] - sechshelme (external link).
+
* Tool for creating and modifying AVR/Arduino projects: [https://github.com/sechshelme/Lazarus-Embedded/tree/master/Lazarus_AVR_ARM_Embedded_GUI_Package Embedded GUI Package] - sechshelme (external link).
 
* [[AVR Embedded Tutorial - Various programmers|Various programmers]] - hardware connections to flash the AVR.
 
* [[AVR Embedded Tutorial - Various programmers|Various programmers]] - hardware connections to flash the AVR.
  

Revision as of 15:37, 2 April 2022

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

  • AVR - Cross compiler with make
  • AVR Programming - Important basics and special features for programming AVR Embedded/Arduino
  • Arduino - Communication with an Arduino
  • ARM Embedded Tutorials - Tutorials for ARM Embedded/STM32 and Raspberry Pi Pico/RP2040.