23.10.2013 Views

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Freescale Semiconductor, Inc...<br />

Computer Numbers and Codes<br />

Review<br />

Freescale Semiconductor, Inc.<br />

Computers have two logic levels (0 and 1) so they work in the binary<br />

numbering system. Probably because people have 10 fingers, they work<br />

in the base 10 decimal numbering system.<br />

Hexadecimal numbers use the 16 symbols 0 through 9 and A through F.<br />

Each hexadecimal digit can represent a set of four binary digits exactly.<br />

Table 2 shows the decimal, binary, and hexadecimal equivalents of<br />

various values. A $ symbol is used before a hexadecimal valueor an H<br />

is used after a hexadecimal value to distinguish it from decimal numbers.<br />

ASCII is a widely accepted code that allows alphanumeric information to<br />

be represented as binary values.<br />

Each instruction or variation of an instruction has a unique opcode<br />

(binary value) that the CPU recognizes as a request to perform a specific<br />

instruction. CPUs from different manufacturers have different sets of<br />

opcodes.<br />

Programmers specify instructions by a mnemonic such as INCA. A<br />

computer program, called an assembler, translates mnemonic<br />

instructions into opcodes the CPU can understand.<br />

<strong>M68HC05</strong> <strong>Family</strong> <strong>—</strong> <strong>Understanding</strong> <strong>Small</strong> <strong>Microcontrollers</strong> <strong>—</strong> Rev. 2.0<br />

36 Computer Numbers and Codes<br />

For More Information On This Product,<br />

Go to: www.freescale.com<br />

MOTOROLA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!