In this section we look at some widely used data formats and directives supported by the AVR assembler. AVR data type The AVR microcontroller has only one data type. It is 8 bits, and the size of each register is also 8 bits. It is the job of the programmer to break down data larger than 8 bits (00 to OxFF, or 0 to 255 in decimal) to be processed by the CPU. The data types used by the AVR can be positive or negative. The bit-addressable data is discussed in later. Data format representation There are four ways to represent a byte of data in the AVR assembler. The numbers can be in hex, binary', decimal, or ASCII formats. The following are examples of how each works. Hex numbers There are two ways to show hex numbers: 1. Put Ox (or OX) in front of the number like this: LDI RI 6, ox99 2. Put S in front of the number, like this: R22, $99. We use both Of these methods in this book, because many application notes out there use one of them and we need to get used to them. ...