Calculate Rotation Speed Command Processing - Renesas M16C/Tiny User Manual

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

Advertisement

4.12 Calculate Rotation Speed Command Processing

RSBJEUM0001-0101 Rev. 1.01
CalSpeedCnd
Rotation speed command input value =
AD vaule*M_K_SPEED_AD_REF/2^11
s_ADSum+=Rotation speed command input
Average calculation counter+1
Average calculation counter>=16 ?
s_ADSpeed=s_ADSum/16
s_ADSum=0
Average calculation counter=0
Return value=s_ADSpeed
RTS
No
Yes
34

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rsbj

Table of Contents