Table of Contents

Data Types and Encoding

In assembler, various data types, such as bytes, words, and double words, are used. Bytes are the smallest data unit and have 8 bits. Words have 16 bits, and double words have 32 bits. Data types are used to store integers, floating-point numbers, and characters. Data encoding involves representing information in binary form. Data can be encoded in binary, decimal, or hexadecimal format. Character encoding is done using standards such as ASCII. Understanding data types and encoding is crucial for effective programming in assembler. This course will discuss various data types and encoding techniques. Practical examples will demonstrate how to encode and decode data in assembly language.

AVR microcontrollers are classified as 8-bit devices, but the instruction word is 16-bit.

Data Types in AVR Assembler

In AVR, the data type can be one of the following:

For additional libraries, such as those used in the C language, 64-bit data can be utilised. These data require extra handling.

Data Encoding

In this subchapter, we present the rules of data encoding in the AVR architecture.