23.10.2013 Views

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Freescale Semiconductor, Inc...<br />

Table of Contents<br />

Freescale Semiconductor, Inc.<br />

Analog-to-Digital Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183<br />

Digital-to-Analog Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183<br />

EEPROM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183<br />

Controlling Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183<br />

The MC68HC705J1A Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184<br />

A Timer Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187<br />

Using the PWM Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195<br />

A Practical Motor Control Example . . . . . . . . . . . . . . . . . . . . . . . . . .198<br />

Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198<br />

Motor Control Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201<br />

Motor Control Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204<br />

Listing 6 <strong>—</strong> Speed Control Program Listing . . . . . . . . . . . . . . . . .210<br />

Review. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .215<br />

Other Kinds of Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .215<br />

Instruction Set Details<br />

Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .217<br />

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219<br />

<strong>M68HC05</strong> Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221<br />

Reference Tables<br />

Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .287<br />

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .287<br />

ASCII to Hexadecimal Conversion . . . . . . . . . . . . . . . . . . . . . . . . . .288<br />

Hexadecimal to Decimal Conversion. . . . . . . . . . . . . . . . . . . . . . . . .290<br />

Decimal to Hexadecimal Conversion. . . . . . . . . . . . . . . . . . . . . . . . .292<br />

Hexadecimal Values vs. <strong>M68HC05</strong> Instructions . . . . . . . . . . . . . . . .293<br />

Glossary<br />

Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299<br />

Index<br />

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317<br />

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

12 Table of Contents<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!