Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

Software Design

Implementation Notes

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.

ENTER

 

 

TIMER1 (TIM A CH1) INTERRUPT

 

MOTOR IS STOPPED

 

 

 

PWM IS OFF

 

CURRENT MEASUREMENT

 

 

 

 

DONE

 

IS DONE

WAIT FOR

CURRENT MEASUREMENT

(CMD_F = 1)

 

 

 

CLEAR FAILURE

ISR

OR RESET

 

 

CLEAR FAILURE TEST

 

ERROR INDICATION

 

(RED LED IS BLINKING)

CLEAR FAILURE

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

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.

DRM028 — Rev 0

 

Designer Reference Manual

 

 

 

MOTOROLA

Software Design

103

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 103
Image 103
Motorola M68HC08 Implementation Notes, See Figure, Software Files, Software files and structure are described in section