Turn-Off Processing - Renesas M16C/Tiny User Manual

Hide thumbs Also See for M16C/Tiny:
Table of Contents

Advertisement

4.3 Turn-off Processing

RSBJEUM0001-0101 Rev. 1.01
TurnoffPWM
Stop TB1
TA4= TA1=TA2 =
M_CARR_CNT -((M_MIN_DUTY_120 *
(SINT_32)M_CARR_CNT) >> 2^15
// Set time value
IDB0 = 0x3f
IDB1 = 0x00 // generate 3-phase PWM
Protect register = 0x02
INVC0 |= 0x08 // output enable
Protect register = 0x00
p8_0 = INACTIVE_LVL,pd8_0 = 1
p8_1 = INACTIVE_LVL,pd8_1 = 1
p7_2 = INACTIVE_LVL,pd7_2 = 1
p7_3 = INACTIVE_LVL,pd7_3 = 1
p7_4 = INACTIVE_LVL,pd7_4 = 1
p7_5 = INACTIVE_LVL,pd7_5 = 1
TPRC =1// PFCR register wirte enable
PFCR =0// not output PWM wave
g_SpeedCnd = 0 ?
Yes
s_StopMode=0
g_SpeedCnd =0
g_OutputMode =Turnoff mode ?
Yes
g_SpeedCnd > 0 ?
Yes
g_OutputMode =Bootstrap mode
g_MotTheta =0
s_StopMode=1
Startup control counter=0
Actual rotation speed = M_Start_Hz
Target rotation speed = M_Start_Hz*2
RTS
No
No
No
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rsbj

Table of Contents