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 #88 background imageLoading...
Page #88 background image
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
91
#define LED32 6
#define LED41 9
#define LED42 8
#define DIPSW 0x10
#define SW 0x20
#define DA1 0x30
#define DA2 0x40
#define DA3 0x50
#define WRESET 0x60
#define MODE 0x70
/****************************************************************************** /
/* 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 1945 /* 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.05) /* 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 200 /* 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