EasyManuals Logo

Renesas V850 Series User Manual

Renesas V850 Series
186 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #114 background imageLoading...
Page #114 background image
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
117
#define LED41 0x09
#define LED42 0x08
#define DIPSW 0x0f
#define SW 0x0e
#define DA1 0x0a
#define DA2 0x0b
#define DA3 0x0c
#define WRESET 0x0d
#define MODE 0x10
/****************************************************************************** /
/* Constant */
/****************************************************************************** /
#define ON 1
#define OFF 0
#define CW 1 /* CW operation mode */
#define CCW 2 /* CCW operation mode */
#define STOP 0 /* Operation stop mode */
#define ERR_NO1 1 /* Overcurrent error */
#define ERR_NO2 2 /* Speed difference error */
/****************************************************************************** /
/* Motor constant */
/****************************************************************************** /
/* Motor constant */
#define PAI 3.14159265 /* π */
#define TH_U 1000 /* Radian value jack-up constant */
#define RAD (int)(2*PAI*TH_U) /* Radian value of one revolution */
#define OFFSET 1733 /* Original point OFFSET */
#define RPM_RADS (int)((2*PAI*TH_U)/60) /* rpm -> radian conversion constant */
/* Motor constant */
#define KSP 750 /* Speed proportion constant */
#define KSI 10 /* Speed integral constant */
#define P 2 /* Number of poles */
#define KSPGETA 10 /* KP jack-up constant */
#define KSIGETA 14 /* KSI jack-up constant */
#define SGETA 14 /* sin jack-up constant */
#define PWM_TS 80 /* PWM cycle */
#define PWM_DATA (PWM_TS/0.03125) /* PWM set value */
#define SPEED_MAX 3000 /* Maximum speed 3000 rpm */
#define SPEED_MINI 800 /* Minimum speed 800 rpm */
#define SPEED_INIT 700 /* Initial revolution speed rpm */
#define SA_SPEED_MAX 800 /* Maximum speed difference rpm */
#define IQAMAX 200000 /* Maximum speed integral value */
#define MAX_I 800 /* Maximum current value */
#define TS 80 /* Motor control time interval uSEC */

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas V850 Series and is the answer not in the manual?

Renesas V850 Series Specifications

General IconGeneral
BrandRenesas
ModelV850 Series
CategoryInverter
LanguageEnglish