28.12.2014 Views

Nuts & Volts

Nuts & Volts

Nuts & Volts

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.

■ BY PETER BEST<br />

THE<br />

DESIGN<br />

ADVANCED TECHNIQUES FOR DESIGN ENGINEERS<br />

CYCLE<br />

MORE FUN WITH FREESCALE’S<br />

MICROCONTROLLERS<br />

WELCOME BACK! Hopefully you’ve visited freescale.com, gotten yourself a<br />

copy of the free Freescale Semiconductor CodeWarrior Development Studio<br />

for HC08 v5.0., and you’ve built up your own MC68HC908MR16 MCU module.<br />

All of the MC68HC908MR16<br />

groundwork was done in the<br />

previous installment of Design Cycle,<br />

and we’ve got plenty of new<br />

MC68HC908MR16 stuff to cover this<br />

time around. So, be sure to download<br />

all of the MC68HC908MR16 C project<br />

files I’ve provided so you can follow<br />

along live and in real-time with the<br />

text and new MC68HC908MR16<br />

projects I’m about to present. I’ll stop<br />

26 March 2006<br />

flapping my jaws so we can get to<br />

work. Let’s begin by bringing up the<br />

MC68HC908MR16’s RS-232 serial port.<br />

CODING AND<br />

ACTIVATING THE<br />

MC68HC908MR16<br />

RS-232 PORT<br />

Before we begin, I would like to<br />

point out that when you see numbers<br />

like “0x12345” in this text, the 0x<br />

denotes hexadecimal representation.<br />

A 0b preceding a string of 1s (ones)<br />

and 0s (zeros) denotes a binary<br />

representation of the number in the<br />

spotlight. An “x” inside a binary or hex<br />

number string represents a “don’t<br />

care.” As you’ll see, I will use an “x” as<br />

a place holder when I’m highlighting<br />

certain bits in a binary number or set<br />

of hex characters.<br />

You’ll also want to go<br />

ahead and download all<br />

of the MC68HC908MR16<br />

project files, as I’ll be referencing<br />

them as we go along.<br />

You can get them from the<br />

<strong>Nuts</strong> & <strong>Volts</strong> website (www.<br />

nutsvolts.com) or from the<br />

EDTP Electronics website<br />

(www.edtp.com).<br />

■ PHOTO 1. The Target CPU<br />

window is very interesting.<br />

I recommend that you<br />

click around on its contents<br />

to see where you are taken.<br />

The Bean Drill consists of<br />

choosing a Bean using the<br />

Bean Selector, adding the<br />

chosen Bean to the project,<br />

and configuring the Bean<br />

with the Bean Inspector.<br />

FOR YOUR INFO<br />

Listings 1-4 referenced in<br />

this article are available on<br />

the <strong>Nuts</strong> & <strong>Volts</strong> website.<br />

Go to www.nutsvolts.com

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

Saved successfully!

Ooh no, something went wrong!