Jump to content

Search the Community

Showing results for tags 'single phase ac motor speed c'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • PIC Embedded Programming
    • BoostC and Chameleon compilers programming
    • BoostC porting source code
    • BoostC++ compiler programming
    • BoostBasic compiler programming
    • Assembler programming PIC
    • Novo RTOS Programming
    • Hardware PIC
    • Enhancement Requests
    • Bug Reports

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. hello i am try to understand some conditional loop in the code which is written by Dan McFarland (Speed control for a single-phase AC motor using Microchip's Picdem MC demo board and BoostC compiler ) code located at http://www.sourceboost.com/Products/BoostC/ExampleCode/cmotor/cmotor.c.html // FLAGS bits #define TIMER0_OV_FLAG 0 #define INC_INDEX1_FLAG 4 #define INC_INDEX2_FLAG 5 // FLAGS1 bits #define DEBOUNCE 0 #define KEY_RS 1 #define KEY_PRESSED 3 #define RUN_STOP 4 #define RESET 5 #define FREQ_UPDATE 6 UCHAR flags ; // res 1 ;Flags registers used to indicate different status UCHAR flags1 if ( flags & (1<<TIMER0_OV_FLAG) ) // back from Timer0 overflow? btfss flags, TIMER0_OV_FLAG { Update_PWM_Dutycycles(); // Yes, update the PWM duty cycle with new value Update_Table_Offset(); // Update offsets flags &= ~(1<<TIMER0_OV_FLAG); // Clear the flag } what it does mean ??? if ( flags & (1<<TIMER0_OV_FLAG) ) // back from Timer0 overflow? btfss flags, TIMER0_OV_FLAG please help me
×