beautypg.com

6 implementation notes, Implementation notes, Fault state – Motorola M68HC08 User Manual

Page 103

background image

Software Design

Implementation Notes

DRM028 — Rev 0

Designer Reference Manual

MOTOROLA

Software Design

103

The failure (Failure = 0) is tested. In manual mode (PCMode = 0), the
switch in the stop position clears the failure. In PC master software
mode (PCMode = 1), the failure is cleared by ClearFail flag or the
switch in the stop position. If start condition is valid Strt_F is set,
Stop_F is cleared, and the next state entered.

See

Figure 5-13

.

Figure 5-13. Fault State

5.6 Implementation Notes

5.6.1 Software Files

The software files and structure are described in section

6.4.2.1

Application HC08 Software Files

.

TIMER1 (TIM A CH1) INTERRUPT

ENTER

DONE

CURRENT MEASUREMENT

ISR

CURRENT MEASUREMENT
IS DONE
(CMD_F = 1)

MOTOR IS STOPPED

PWM IS OFF

CLEAR FAILURE TEST

ERROR INDICATION

(RED LED IS BLINKING)

WAIT FOR
CLEAR FAILURE
OR RESET

CLEAR FAILURE
(START SWITCH SET OFF OR
PCMODE&CLEARFAIL)
(FAILURE = 0) OR RESET

F

re

e

sc

a

le

S

e

m

ic

o

n

d

u

c

to

r,

I

Freescale Semiconductor, Inc.

For More Information On This Product,

Go to: www.freescale.com

n

c

.

..