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 />

List of Figures<br />

Freescale Semiconductor, Inc.<br />

Figure Title Page<br />

30 Example Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138<br />

31 Flowchart and Mnemonics . . . . . . . . . . . . . . . . . . . . . . . . .140<br />

32 Delay Routine Flowchart and Mnemonics . . . . . . . . . . . . .141<br />

33 Explanation of Assembler Listing . . . . . . . . . . . . . . . . . . . .145<br />

34 Syntax of an S1 Record . . . . . . . . . . . . . . . . . . . . . . . . . . .148<br />

35 S-Record File for Example Program . . . . . . . . . . . . . . . . .148<br />

36 Four Ways to Check a Switch . . . . . . . . . . . . . . . . . . . . . .153<br />

37 Flowchart of Main Paced Loop. . . . . . . . . . . . . . . . . . . . . .166<br />

38 Flowchart of RTI Service Routine. . . . . . . . . . . . . . . . . . . .167<br />

39 15-Stage Multifunction Timer Block Diagram . . . . . . . . . . .185<br />

40 PWM Waveforms with Various Duty Cycles. . . . . . . . . . . .187<br />

41 Portion of the MC68HC705J1A Timer . . . . . . . . . . . . . . . .188<br />

42 PWM With 16 Discrete Duty Cycle Outputs . . . . . . . . . . . .189<br />

43 Each TOF Interrupt Sliced into 16 Separate<br />

Time Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191<br />

44 Timer Interrupt Service Routine . . . . . . . . . . . . . . . . . . . . .192<br />

45 Real-Time Interrupt Routine Flowchart . . . . . . . . . . . . . . .193<br />

46 Timer Overflow Interrupt Flowchart . . . . . . . . . . . . . . . . . .194<br />

47 Motor Speed Controlled by a Variable Resistor . . . . . . . . .199<br />

48 Motor Speed Controlled by a Transistor. . . . . . . . . . . . . . .199<br />

49 Transistor Used as an Electronic Switch . . . . . . . . . . . . . .200<br />

50 PWM Waveforms with 50 and 80 Percent<br />

Duty Cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201<br />

51 Power Section of the Motor Speed Control Circuit. . . . . . .203<br />

52 Microcontroller Section of the Motor<br />

Speed Control Circuit . . . . . . . . . . . . . . . . . . . . . . . . . .203<br />

53 Revised RTI Routine Flowchar. . . . . . . . . . . . . . . . . . . . . .205<br />

54 Flowchart for Main Program Loop . . . . . . . . . . . . . . . . . . .206<br />

55 Flowchart for MotorOn/Off Routine . . . . . . . . . . . . . . . . . .208<br />

56 Flowchart for Motor Speed-Up Routine . . . . . . . . . . . . . . .209<br />

57 Flowchart for Motor Speed-Down Routine . . . . . . . . . . . . .209<br />

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

14 List of Figures<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!