EasyManuals Logo
Home>Renesas>Inverter>V850 Series

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 #105 background imageLoading...
Page #105 background image
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
108
_ _interrupt
void int_V(void)
{
unsigned char wk ;
/* */
if ( ( ( init_flag == 0 ) && ( stop_flag == OFF) ) ) {
sa_time = TM4 ;
TMC4 = 0x61;
TMC4 = 0x63; /* Restart timer */
if ( ~P2 & 0x01 ) { /* Check U phase */
base_position = RAD/3/P ;
} else {
base_position = RAD*5/6/P ;
}
if ( object_speed < 0 ) {
wk = run_ccw_data[ P2 & 0x07 ][0] ;
} else {
wk = run_cw_data[ P2 & 0x07 ][0] ;
}
if ( wk & 0x01 ) {
BFCM00 = 0 ;
BFCM01 = pwm_value ;
BFCM02 = pwm_value ;
} else if ( wk & 0x04 ) {
BFCM00 = pwm_value ;
BFCM01 = 0 ;
BFCM02 = pwm_value ;
} else {
BFCM00 = pwm_value ;
BFCM01 = pwm_value ;
BFCM02 = 0 ;
}
POER0 = wk ;
}
int_co++ ;
}
/****************************************************************************** /
/* W zero-cross point interrupt */
/****************************************************************************** /
_ _interrupt
void int_W(void)
{
unsigned char wk ;
/* */
if ( ( ( init_flag == 0 ) && ( stop_flag == OFF) ) ) {
sa_time = TM4 ;

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