Pwm Run Calculation Processing - Renesas M16C/Tiny User Manual

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

Advertisement

4.10 PWM Run Calculation Processing

RSBJEUM0001-0101 Rev. 1.01
CalPWMRun
s_DltCnt < preset value?
Yes
s_DltCnt +1
No
g_Stage = s_ReloadStg?
Yes
g_Stage =0?
Yes
(Int3ic!=0)
Yes
Int_counter+1
Int_counter=2?
Yes
CalPWMDuty Processing
s_ReloadStg= 1
Int_counter=0
Int3ic=0
Int4ic=0
Int5ic=0
g_Stage =1?
Yes
(Int5ic!=0)
Yes
Int_counter+1
Int_counter=2?
Yes
CalPWMDuty Processing
s_ReloadStg= 2
Int_counter=0
Int5ic=0
Int4ic=0
Int3ic=0
1
No
g_OutputMode=M_TURNON
g_MotTheta=0
idb0 = 0x3f
idb1 = 0x3f // stop PWM output
pfcr = 0x3f // enable PWM output pins
int4ic &= 0x00
int3ic &= 0x00
No
int5ic &= 0x00// clear interrupt request
No
No
No
No
No
2
RTS
28

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rsbj

Table of Contents