Skip to main content

Recently Updated Pages

5. The Stack

Embedded System (MBD) Module 4 - Arithmetic

The Stack is a memory section of the SRAM that follows First-In-First-Out (FIFO) principles. It i...

Updated 5 days ago by MF

8. References

Embedded System (MBD) Module 4 - Arithmetic

“AVR ® Instruction Set Manual AVR ® Instruction Set Manual.” Available: https://ww1.microchip.com...

Updated 5 days ago by MF

7. 𝔗𝔥𝔢 ℭ𝔬𝔡𝔢

Embedded System (MBD) Module 4 - Arithmetic

#define __SFR_OFFSET 0x00 #include "avr/io.h" .global main main: RCALL SER_init LDI ZH, ...

Updated 5 days ago by MF

6. Printing Bytes as Hexadecimal Values

Embedded System (MBD) Module 4 - Arithmetic

To easily debug and view numbers, we can create a subroutine that outputs numbers into serial. Si...

Updated 5 days ago by MF

4. Advanced Arithmetic Operations

Embedded System (MBD) Module 4 - Arithmetic

As a refresher, here are some fundamental AVR arithmetic and logical instructions. Mnemonic Op...

Updated 5 days ago by MF

3. The Status Register

Embedded System (MBD) Module 4 - Arithmetic

The Status Register (SREG) is a special 8 bit register that saves different operational status fl...

Updated 5 days ago by MF

2. Addressing Modes

Embedded System (MBD) Module 4 - Arithmetic

Due to how the AVR Architecture and its memory are organized, AVR instructions, including arithme...

Updated 5 days ago by MF

1. Memory in AVR Architecture

Embedded System (MBD) Module 4 - Arithmetic

AVR Architecture is an 8 bit single-chip RISC microcontroller with a modified Harvard Architectur...

Updated 5 days ago by MF

USART Register Architecture of ATmega328p

Embedded System (MBD) Module 3 - Serial Port

The ATmega328p microcontroller uses several specific registers to control and monitor USART commu...

Updated 3 weeks ago by BH

Introduction to USART

Embedded System (MBD) Module 3 - Serial Port

1. USART Definition USART (Universal Synchronous/Asynchronous Receiver/Transmitter) is a communic...

Updated 3 weeks ago by BH

Implementation and Assembly Code Examples

Embedded System (MBD) Module 3 - Serial Port

This page contains basic implementation examples of USART serial communication using the Assembly...

Updated 3 weeks ago by BH

3. Input/Output (I/O) Programming

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

On the Arduino Uno (ATmega328P), digital I/O is controlled through Port B, Port C, and Port D. Ea...

Updated 3 weeks ago by AX

1. Proteus Installation Tutorial

Embedded System (MBD) Module 1 - Setup

Step 1 : Install Proteus If you haven't install. Then Install, remember from DSD. Step 2 : Downlo...

Updated 3 weeks ago by AX

2. Proteus Simulation Tutorial

Embedded System (MBD) Module 1 - Setup

Step 1 : Setup the Arduino IDE Go to Preferences : Checklist the Show Verbose output during com...

Updated 3 weeks ago by AX

8. Complete Program Examples

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

A. Blink LED #define __SFR_OFFSET 0x00 #include "avr/io.h" .global main main: SBI DDRB, 5 ...

Updated 3 weeks ago by AX

7. Delay Implementation Without Library

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

Delays can be created using nested loops that consume a certain number of clock cycles. Delay Cal...

Updated 3 weeks ago by AX

6. Status Register (SREG)

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

The Status Register contains flags that indicate the results of arithmetic/logic operations. This...

Updated 3 weeks ago by AX

5. AVR Assembly Instruction Set

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

Operand Notation Before diving into the instructions, here are the common operand symbols used: ...

Updated 3 weeks ago by AX

4. Assembly Integration with Arduino IDE

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

To combine Assembly with Arduino C++ code, the extern "C" directive is used in the .ino file and ...

Updated 3 weeks ago by AX

2. ATmega328P Hardware & Memory Architecture

Embedded System (MBD) Module 2 - Introduction to AVR Assembly

A. Memory Map The ATmega328P memory map provides information on how the Microcontroller Unit (MCU...

Updated 3 weeks ago by AX