AN889. VF Control of 3-Phase Induction Motors Using PIC16F7X7 Microcontrollers VF CONTROL INTRODUCTION. Microchip Technology Inc.
|
|
|
- Alan Dorsey
- 9 years ago
- Views:
Transcription
1 VF Control of 3-Phase Induction Motors Using PIC16F7X7 Microcontrollers AN889 Author: INTRODUCTION Rakesh Parekh Microchip Technology Inc. An induction motor can run only at its rated speed when it is connected directly to the main supply. However, many applications need variable speed operations. This is felt the most in applications where input power is directly proportional to the cube of motor speed. In applications like the induction motor-based centrifugal pump, a speed reduction of 20% results in an energy savings of approximately 50%. Driving and controlling the induction motor efficiently are prime concerns in today s energy conscious world. With the advancement in the semiconductor fabrication technology, both the size and the price of semiconductors have gone down drastically. This means that the motor user can replace an energy inefficient mechanical motor drive and control system with a Variable Frequency Drive (VFD). The VFD not only controls the motor speed, but can improve the motor s dynamic and steady state characteristics as well. In addition, the VFD can reduce the system s average energy consumption. Although various induction motor control techniques are in practice today, the most popular control technique is by generating variable frequency supply, which has constant voltage to frequency ratio. This technique is popularly known as VF control. Generally used for open-loop systems, VF control caters to a large number of applications where the basic need is to vary the motor speed and control the motor efficiently. It is also simple to implement and cost effective. The PIC16F7X7 series of microcontrollers have three on-chip hardware PWM modules, making them suitable for 3-phase motor control applications. This application note explains how these microcontrollers can be used for 3-phase AC induction motor control. VF CONTROL A discussion of induction motor control theory is beyond the scope of this document. We will mention here only the salient points of VF control. The base speed of the induction motor is directly proportional to the supply frequency and the number of poles of the motor. Since the number of poles is fixed by design, the best way to vary the speed of the induction motor is by varying the supply frequency. The torque developed by the induction motor is directly proportional to the ratio of the applied voltage and the frequency of supply. By varying the voltage and the frequency, but keeping their ratio constant, the torque developed can be kept constant throughout the speed range. This is exactly what VF control tries to achieve. Figure 1 shows the typical torque-speed characteristics of the induction motor, supplied directly from the main supply. Figure 2 shows the torque-speed characteristics of the induction motor with VF control. Other than the variation in speed, the torque-speed characteristics of the VF control reveal the following: The starting current requirement is lower. The stable operating region of the motor is increased. Instead of simply running at its base rated speed (NB), the motor can be run typically from 5% of the synchronous speed (NS) up to the base speed. The torque generated by the motor can be kept constant throughout this region. At base speed, the voltage and frequency reach the rated values. We can drive the motor beyond the base speed by increasing the frequency further. However, the applied voltage cannot be increased beyond the rated voltage. Therefore, only the frequency can be increased, which results in the reduction of torque. Above the base speed, the factors governing torque become complex. The acceleration and deceleration of the motor can be controlled by controlling the change of the supply frequency to the motor with respect to time Microchip Technology Inc. DS00889B-page 1
2 FIGURE 1: TORQUE-SPEED CHARACTERISTICS OF INDUCTION MOTOR Breakdown Torque Torque Current Locked Rotor Torque Full Load Torque Torque and Current Pull-up Torque TRATED IRATED Slip Speed NB NS FIGURE 2: TORQUE-SPEED CHARACTERISTICS OF INDUCTION MOTOR WITH VF CONTROL Torque Voltage VRATED Torque and Voltage VMIN f min f rated f max (Base Speed) Frequency DS00889B-page Microchip Technology Inc.
3 MOTOR DRIVE The 3-phase induction motor is connected to a 3-phase inverter bridge as shown in Figure 3.The power inverter has 6 switches that are controlled in order to generate 3-phase AC output from the DC bus. PWM signals, generated from the microcontroller, control these 6 switches. Switches IGBTH1 through IGBTH3, which are connected to DC+, are called upper switches. Switches IGBTL1 through IGBTL3, connected to DC-, are called lower switches. The amplitude of phase voltage is determined by the duty cycle of the PWM signals. While the motor is running, three out of six switches will be on at any given time; either one upper and two lower switches or one lower and two upper switches. The switching produces a rectangular shaped output waveform that is rich in harmonics. The inductive nature of the motor s stator windings filters this supplied current to produce a 3-phase sine wave with negligible harmonics. When switches are turned off, the inductive nature of the windings oppose any sudden change in direction of flow of the current until all of the energy stored in the windings is dissipated. To facilitate this, fast recovery diodes are provided across each switch. These diodes are known as freewheeling diodes. To prevent the DC bus supply from being shorted, the upper and lower switches of the same half bridge should not be switched on at the same time. A dead time is given between switching off one switch and switching on the other. This ensures that both switches are not conductive at the same time as each one changes states. FIGURE 3: 3-PHASE INVERTER BRIDGE DC+ IGBTH1 IGBTH2 IGBTH3 3-PH Induction Motor IGBTL1 IGBTL2 IGBTL3 DC Microchip Technology Inc. DS00889B-page 3
4 Control Members of the PIC16F7X7 family of microcontrollers have three 10-bit PWMs implemented in hardware. The duty cycle of each PWM can be varied individually to generate a 3-phase AC waveform as shown in Figure 4. The upper eight bits of the PWM s duty cycle is set using the register CCPRxL, while the lower two bits are set in bits 4 and 5 of the CCPxCON register. The PWM frequency is set using the Timer2 Period register (PR2). Because all of the PWMs use Timer2 as their time base for setting the switching frequency and duty cycle, all will have the same switching frequency. To derive a varying 3-phase AC voltage from the DC bus, the PWM outputs are required to control the six switches of the power inverter. This is done by connecting the PWM outputs to three IGBT drivers (IR2109). Each driver takes one PWM signal as input and produces two PWM outputs, one being complementary to the other. These two signals are used to drive one half bridge of the inverter: one to the upper switch, the other to the lower switch. The driver also adds a fixed dead time between the two PWM signals. 3-Phase Sine Waveform Synthesis Along with the three PWM modules, the 16-bit Timer1 hardware module of PIC16F7X7 is used to generate the control signals to the 3-phase inverter. This is done by using a sine table, stored in the program memory with the application code and transferred to the data memory upon initialization. Loading the table this way minimizes access time during the run time of the motor. Three registers are used as the offset to the table. Each of these registers will point to one of the values in the table, such that they will always have a 120-degree phase shift relative to each other (Figure 4). This forms three sine waves with 120 degrees phase shift to each other. FIGURE 4: SYNTHESIS OF 3-PHASE SINE WAVEFORM FROM A SINE TABLE Sine Table Value + Offset 1 Sine Table Value + Offset 2 Sine Table Value + Offset 3 DC+ Voltage DC- Time DS00889B-page Microchip Technology Inc.
5 A potentiometer connected to a 10-bit ADC channel (AN1) determines the motor frequency. The microcontroller uses the ADC results to calculate the PWM duty cycle and thus, the frequency and the amplitude of the supply to the motor. For smooth frequency transitions, the channel AN1 is converted at every 4 ms. The Timer1 reload value is based on the ADC result (AN1), the main clock frequency (FOSC) and the number of sine table entries (36 in the present application). After every Timer1 overflow, the value pointed to by the offset register on the sine table is read. The value read from the sine table is scaled based on the motor frequency input. The sine table value is multiplied with the frequency input to find the PWM duty cycle and is loaded to the corresponding PWM duty cycle register. Subsequently, the offset registers are updated for next access. If the motor direction key is pressed, then PWM1, PWM2 and PWM3 duty cycle values are loaded to PWM2, PWM1 and PWM3 duty cycle registers, respectively. The new PWM duty cycle values will take effect at the next Timer2 overflow. Also, the duty cycle will remain the same until the next Timer1 overflow occurs, as shown in Figure 5. The frequency of the new PWM duty cycle update determines the motor frequency, while the value loaded in the duty cycle register determines the amplitude of the motor supply. FIGURE 5: Timer Events TIMER1 OVERFLOW, PWM DUTY CYCLE AND OUTPUT VOLTAGE Timer1 Interrupt Timer2 to PR2 Match Interrupt Instantaneous Voltage Average Voltage Output Voltage Time The equation used to calculate the Timer1 reload value is given in Equation 1. In the present application, the Timer1 prescaler is 1:8. PR2 is set to generate a 20 khz PWM frequency with FOSC of 20 MHz. The method of accessing and scaling of the PWM duty cycle is shown in an excerpt from the application code in Example 1. EQUATION 1: TIMER1 RELOAD VALUE CALCULATION Timer1 Reload Value = FFFFh 2 x FOSC 4 Sine Samples per Cycle x Timer1 Prescaler x Value of AN Microchip Technology Inc. DS00889B-page 5
6 EXAMPLE 1: SINE TABLE UPDATE ;********************************************************************************************* ;This routine will update the PWM duty cycle on CCPx according to the offset to the table with ; degrees. ;This routine scales the PWM value from the table based on the frequency to keep VF ;constant and loads them in appropriate CCPx register depending on setting of FWD/REV flag ;********************************************************************************************* UPDATE_PWM_DUTYCYCLES MOVLW LOW(SINE_TABLE_RAM) MOVWF FSR ;Base address of sine table in RAM is loaded to FSR BANKSEL TABLE_OFFSET1 MOVF TABLE_OFFSET1,W ;Table_offset1 is copied To WREG ADDWF FSR,F ;Address to be read = sine table base adress + Table_offset1 BANKISEL SINE_TABLE_RAM MOVF INDF,W ;Copy sine table value pointed to by FSR to WREG BTFSC STATUS,Z ;Check is value read zero? GOTO PWM1_IS_0 ;Yes, goto PWM1_IS_0 MOVWF NO_1_LSB ;No, sine table value x Set_freq to scale table value ;based on frequency setting CALL MUL_8X8 ;Call routine for unsigned 8x8 bit multiplication MOVF RESULT_MSB,W ;8 MSB of 16 bit result is stored at TEMP_LOC - MOVWF TEMP_LOC ;this represent PWM Duty Cycle value for phase 1 GOTO UPDATE_PWM2 ;Go for updating PWM Duty Cycle for 2nd phase PWM1_IS_0 CLRF TEMP_LOC ;Clear PWM Duty Cycle value for phase 1 UPDATE_PWM2 MOVLW LOW (SINE_TABLE_RAM) MOVWF FSR ;Base address of sine table in RAM is loaded to FSR BANKSEL TABLE_OFFSET2 MOVF TABLE_OFFSET2,W ;Table_offset2 is copied to WREG ADDWF FSR,F ;Address to be read = Sine table base adress + Table_offset2 BANKISEL SINE_TABLE_RAM MOVF INDF,W ;Copy sine table value pointed to by FSR to WREG BTFSC STATUS,Z ;Check is value read zero? GOTO PWM2_IS_0 ;Yes, go to PWM2_IS_0 MOVWF NO_1_LSB ;No, sine table value x set_freq to scale table value ;based on frequency setting CALL MUL_8X8 ;Call routine for unsigned 8x8 bit multiplication MOVF RESULT_MSB,W ;8 MSB of 16 bit result is stored at TEMP_LOC_1 - MOVWF TEMP_LOC_1 ;this represent PWM Duty Cycle value for phase 2 GOTO UPDATE_PWM3 ;Go for updating PWM Duty Cycle for 3rd phase PWM2_IS_0 CLRF TEMP_LOC_1 ;Clear PWM Duty Cycle value for phase 2 UPDATE_PWM3 MOVLW LOW(SINE_TABLE_RAM) MOVWF FSR ;Base address of sine table in RAM is loaded to FSR BANKSEL TABLE_OFFSET3 MOVF TABLE_OFFSET3,W ;Table_offset3 is copied to WREG ADDWF FSR,F ;Address to be read=sine table base address + Table_offset3 BANKISEL SINE_TABLE_RAM MOVF INDF,W ;Copy sine table value pointed by FSR to WREG BTFSC STATUS,Z ;Check is value read zero? GOTO PWM3_IS_0 ;Yes, goto PWM3_IS_0 MOVWF NO_1_LSB ;No, sine table value x set_freq to scale table value ;based on frequency setting CALL MUL_8X8 ;Call routine for unsigned 8x8 bit multiplication MOVF RESULT_MSB,W ;8 MSB of 16 bit result is stored at TEMP_LOC_2 - MOVWF TEMP_LOC_2 ;this represents PWM duty cycle value for phase 3 GOTO SET_PWM12 ;Go for checking direction of motor rotation reequired PWM3_IS_0 CLRF TEMP_LOC_2 ;Clear PWM duty cycle value for phase 3 DS00889B-page Microchip Technology Inc.
7 EXAMPLE 1: SINE TABLE UPDATE (CONTINUED) SET_PWM12 BANKSEL CCPR1L BTFSS FLAGS,MOTOR_DIRECTION ;Is MOTOR_DIRECTION flag set for forward rotation? GOTO ROTATE_REVERSE ;No - Go for reverse rotation MOVF TEMP_LOC,W MOVWF CCPR1L ;Copy TEMP_LOC and TEMP_LOC_1 values to MOVF TEMP_LOC_1,W ;CCPR1L and CCPR2L respectively for MOVWF CCPR2L ;forward rotation of motor BSF STATUS,RP0 MOVF TEMP_LOC_2,W MOVWF CCPR3L ;Copy TEMP_LOC_2 to CCPR3L BCF STATUS,RP0 BSF LED_PORT,FWD_REV_LED ;Turn on FWD_REV_LED to indicate ;forward rotation of motor RETURN ROTATE_REVERSE MOVF TEMP_LOC_1,W ;Copy TEMP_LOC_1 and TEMP_LOC values to MOVWF CCPR1L ;CCPR1L and CCPR2L respectively for MOVF TEMP_LOC,W ;reverse rotation of motor MOVWF CCPR2L BSF STATUS,RP0 MOVF TEMP_LOC_2,W MOVWF CCPR3L ;Copy TEMP_LOC_2 to CCPR3L BCF STATUS,RP0 BCF LED_PORT,FWD_REV_LED ;Turn off FWD_REV_LED to indicate ;reverse rotation of motor RETURN 2004 Microchip Technology Inc. DS00889B-page 7
8 OVERVIEW OF SYSTEM HARDWARE Figure 6 shows the overall block diagram of the power and control circuit for the motor control demo board. The main single phase supply is rectified by using a diode bridge rectifier. The ripple on the DC bus is filtered by using an electrolytic capacitor. The filtered DC bus is connected to the IGBT-based 3-phase inverter, which is controlled by the PIC16F7X7. The inverter output is a 3-phase, variable frequency supply with a constant voltage-to-frequency ratio. A potentiometer connected to AN1 sets the motor frequency. Push button keys are interfaced for issuing commands, like Run/Stop and Fwd/Rev, to the microcontroller. Acceleration and deceleration features are implemented to change the motor frequency smoothly. Time for both of these features are user selectable and can be set during compile time. LEDs are provided for Status/Fault indications like Run/Stop, Forward/Reverse, Undervoltage, Overvoltage, etc. The PWM outputs are generated by on-chip hardware modules on the PIC16F7X7. These are used to drive the IGBT drivers through optoisolators. Each IGBT driver, in turn, generates complementary signals for driving the upper or lower halves of the 3-phase inverter. It also adds a dead time of 540 ns between the respective higher and lower switch driving signals. The IGBT driver has a shutdown signal (SD) which is controlled by an overcurrent protection circuit. The driver also has its own on-chip Fault monitoring circuit for driver power supply undervoltage conditions. Upon any overcurrent or undervoltage event, the outputs are driven low and remain low until the time the Fault condition is removed. Note: Refer to Appendix B: Motor Control Schematics for schematics of the motor control demo board. Overcurrent Protection A non-inductive resistor is connected between the common source point of the inverter and the power ground. Voltage drop across this resistor is linearly proportional to the current flowing through the motor. This voltage drop is compared against the reference voltage signal, through an optoisolator (linear optocoupler), which represents overcurrent limit. There are three possible ways to compare these voltage signals: Using an external comparator Using the PIC16F7X7 on-chip comparator In software, by reading the voltage drop across the resistor through one of the ADC channels The design discussed in this application note implements an external comparator. It s output drives the shutdown signal of the driver through an optoisolator (optocoupler). At the same time, this signal is provided to RB4. By using the PORTB interrupt-on-change feature, the microcontroller responds to Fault detection and stops the motor. Overvoltage and Undervoltage Protection To implement voltage protection, the DC bus voltage is attenuated by a potential divider. The resulting signal is fed to AN2 through an optoisolator (linear optocoupler). The application monitors the voltage via periodic A/D conversions of the value on RA2; if the voltage falls outside of a preset range, the motor is stopped. FIGURE 6: BLOCK DIAGRAM OF THE MOTOR CONTROL DEMO BOARD Single-Phase AC Input Rectifier Voltage Current Attenuator Comparator Speed Set Fwd/Rev Run/Stop AN1 AN2 RB4 PWM1 PWM2 PWM3 PIC16F7X Optoisolators 2 SD HIN1 HIN2 HIN3 IGBT Drivers HOut1 HOut2 HOut3 LOut1 LOut2 LOut3 IGBTH1 IGBTH2 IGBTH3 IGBTL1 IGBTL2 IGBTL3 3-Phase Inverter 3-Phase Induction Motor Status/Fault Indicators DS00889B-page Microchip Technology Inc.
9 Isolation The use of optoisolators ensures that power ground (P_GND) and control ground (D_GND) are separated. This means that development tools, such as MPLAB ICD 2 and MPLAB ICE can be safely connected to the system while it is connected to the AC supply. This simplifies the task of debugging a live system. The isolation components are often removed when a design goes for production. To remove isolation: Remove the PWM drive optoisolators (U6 through U9). Remove the power isolation optoisolators (U17 and U18). Disconnect the voltage followers for U17 and U18 (U13B, U13C, U16A and U16B). DO NOT physically remove U13 and U16, since U13A and U16C are still used by the system. Remove all other components associated with the power isolation system (capacitors C41/42/43 and resistors R81/82/83/84/91/92/93/96). Make all grounds common by shorting P_GND to D_GND. VF CONTROL FIRMWARE While the PIC16F7X7 microcontroller makes 3-phase motor control possible, it is the firmware that makes VF control straightforward. In addition to maintaining the sine table and driving the PWM modules to produce the AC output (previously described in the 3-Phase Sine Waveform Synthesis section), the firmware interprets control inputs and system status to sense and act on Fault conditions. It also manages other features of motor control, such as direction, acceleration and deceleration (as described below). The VF control firmware uses a set of defined routines and parameters for operation. Users can change these parameters as needed for their applications. The firmware can also be incorporated as the motor control core of a larger application, using the parameters to pass information between sections of the code. An overview of the firmware s logic flow is provided in Figure 7 and Figure 8. A complete list of parameters and defined functions is provided in Tables 1 through 4. Users are encouraged to download the complete source code of the firmware from the Microchip web site ( and examine the application in more detail. Acceleration and Deceleration Acceleration and deceleration time can be specified during compile time. The actual motor frequency (SET_FREQ) and the required user frequency (NEW_FREQ), set through the potentiometer, is compared at 4 ms intervals. If the SET_FREQ and the NEW_FREQ are different, then the SET_FREQ is changed step by step (each step size is 0.25 Hz) until it reaches the NEW_FREQ. The time to change the SET_FREQ by one step is calculated in software, depending upon the difference between the SET_FREQ and the NEW_FREQ, as well as the acceleration and deceleration parameters entered during compile time. If the NEW_FREQ is changed during the acceleration and deceleration process, then the time to change each step is recalculated Microchip Technology Inc. DS00889B-page 9
10 FIGURE 7: MOTOR CONTROL FLOW CHART (MAIN AND ADC ROUTINES) Main Routine START Initialization of Motor Parameters and On-Chip Peripherals Has Timer1 overflowed? Yes Update PWM Duty Cycle by Reading Sine Table No Call SET_ADC_GO Update Sine Table Offset<1:3> Key Scan to Read Run/Stop and Fwd/Rev Switch Status ADC Routine SET_ADC_GO No Is 4 ms interval over? Yes No Is SET_FREQ = NEW_FREQ? Yes Configure and Start ADC for Converting DC bus Voltage Level Signal Calculate Time Step Required for Unit Change in SET_FREQ Calculate Timer1 Reload Value (X) Configure and Start ADC for Converting Potentiometer Set Reference Signal Return DS00889B-page Microchip Technology Inc.
11 FIGURE 8: MOTOR CONTROL FLOW CHART (INTERRUPT SERVICE ROUTINE) ISR Run/Stop the Motor per Status of PORTB<5> Yes Is RBIF = 1? (overcurrent protection) Timer1 = X Yes No Is TMR1IF = 1? (motor frequency decider) No Is ADIF = 1? (motor frequency reading and UV/OV protection) Yes Is ADC set for reading DC bus voltage? No No No Is TMR2IF = 1? (acceleration/deceleration) Yes Read Potentiometer Setting (motor frequency) No Yes Is 4 ms interval over? Is DC bus voltage outside set limit of UV/OV? Yes No Yes No Is it the time to change SET_FREQ? Stop the Motor and Indicate Appropriate Fault Condition Yes Change SET_FREQ by Unit Step RETFIE 2004 Microchip Technology Inc. DS00889B-page 11
12 TABLE 1: USER DEFINED PARAMETERS IN SOFTWARE Name Description OSC_FREQ Defines the oscillator frequency. In the present application, this is set to 20 MHz. TIMER1_PRESCALE Defines Timer1 prescaler value. In the present application, it is set to 1:8. TIMER2_PRESCALE Defines the Timer2 prescaler value. In the present application, this is set to 1:1. PWM_FREQUENCY Defines the PWM switching frequency. In the present application, this is set to 20 khz. ACCELERATION_TIME Defines the user set acceleration time for the motor speed. In the present application, this is set to 3 seconds. DECELERATION_TIME Defines the user set deceleration time for the motor speed. In the present application, this is set to 3 seconds. SINE_TABLE_ENTRIES Defines the length of the sine table. In the present application, this is set to 19. TABLE 2: Name FREQ_SCALE PR2_VALUE DEC_CON ACC_CON LIMIT_V_LOW LIMIT_V_HIGH CONSTANTS IN SOFTWARE Description Used to calculate Timer1 reload value. It s value depends on FOSC, Timer1 prescaler and the number of sine table entries Defines the Timer2 overflow time period and thus, the PWM switching frequency. It s value depends on FOSC, Timer2 prescaler and required PWM switching frequency. Used for calculating time required for unit step decrement in SET_FREQ. It s value is: Deceleration Time x 250. Used for calculating time required for unit step increment in SET_FREQ. It s value is: Acceleration Time x 250. Defines the DC bus voltage limit for undervoltage protection to activate. Defines the DC bus voltage limit for overvoltage protection to activate. TABLE 3: VARIABLES IN SOFTWARE Name Description SET_FREQ Actual motor frequency. NEW_FREQ Required motor frequency (set through the potentiometer). TABLE_OFFSET1 Pointer to sine table for phase 1. TABLE_OFFSET2 Pointer to sine table for phase 2. TABLE_OFFSET3 Pointer to sine table for phase 3. DS00889B-page Microchip Technology Inc.
13 TABLE 4: Name UPDATE_PWM_DUTYCYCLES UPDATE_TABLE_OFFSET SET_ADC_GO KEY_CHECK CHECK_FAULT TIMER1_OVERFLOW AD_CONV_COMPLETE TMR2_ISR FUNCTIONS IN SOFTWARE Description Loads new duty cycle values to CCPRxL for generating the 3-phase sine wave. This routine also scales the sine table value depending on SET_FREQ. Changes the pointers to the sine table after every access to maintain 120-degree phase shift between generated sine waves. Configures the ADC for reading DC bus voltage or the potentiometer setting for the required motor frequency. This routine also calculates time needed for unit change in SET_FREQ for acceleration and deceleration. Checks the status of Run/Stop and Fwd/Rev keys and acts accordingly. Responds to setting of RBIF. This routine responds to the output status of the external current comparator. Responds to setting of TMR1IF. This routine sets the user-defined flag indicating Timer1 overflow, which in turn is responsible for calling of UPDATE_PWM_DUTYCYCLES in the main routine. Responds to setting of ADIF. This routine reads the frequency setting from the potentiometer through ADC. If the frequency is set below 5 Hz or above 60 Hz, it limits the frequency to 5 Hz or 60 Hz. This routine also reads the DC bus voltage level through ADC. If the level is outside the preset limits, it activates undervoltage or overvoltage protection as required. Responds to setting of TMR2IF. This routine is used for implementing acceleration and deceleration feature Microchip Technology Inc. DS00889B-page 13
14 RESOURCE USAGE The VF control application consumes both memory and hardware resources, as shown in Table 5. Substantial resources, particularly memory, are still available to users for development of their own applications. TABLE 5: RESOURCES USED IN THE MOTOR CONTROL DEMO BOARD (USING PIC16F777) Resource Type Used Available to User when PIC16F777 is Used Program Memory 1041 words 7215 words Data Memory 49 bytes 319 bytes CCP Channels 3 0 ADC Channels 2 12 Timers 2 1 External Interrupts 1 4 I/O Lines CONCLUSION VF control provides a simple and cost efficient method for open-loop speed control of 3-phase induction motors. A low-cost VF solution can be implemented using the PIC16F7X7 family of devices. With three dedicated PWM modules implemented in hardware, it is ideal for controlling 3-phase induction motors. Additional on-chip resources, like multiple timers and ADC, allow users to easily implement safety and control features, such as current and voltage protection and configurable acceleration and deceleration time. DS00889B-page Microchip Technology Inc.
15 APPENDIX A: TEST RESULTS TABLE A-1: TEST RESULTS Test # Set Frequency (Hz) Set Speed (RPM) Actual Speed (RPM) Speed Regulation (%) Note: Above tests are conducted on a motor with the following specifications: Terminal Voltage = V, Frequency = 60 Hz, Horsepower = 1/2 HP, Speed = 3450 RPM at full load, Rated Current = 1.8A, Test Condition = no load Microchip Technology Inc. DS00889B-page 15
16 APPENDIX B: MOTOR CONTROL SCHEMATICS FIGURE B-1: POWER SUPPLY 22 µf.40v 10 µh 1A 470 µf 25V 470 µf 10V 6.8 µh 1A 1% 1% VDD > 30V > 30V VDD VDA VDC 600V 470 µf 450V 470 µf 450V 25 µf 450V µf.100v 56 pf 500V 2.2 nf.400v 220 pf 6.8 µh 1A 1000 µf.10v 470 µf.10v 1000 µf 25V 1000 µf.10v DS00889B-page Microchip Technology Inc.
17 FIGURE B-2: SYSTEM CONTROL VDD VSS VSS PIC16F7X7-DIP28 VDD VDD VREF VSS VSS PIC16F7X7-DIP Microchip Technology Inc. DS00889B-page 17
18 FIGURE B-3: INVERTER AND FEEDBACK MCP6004-DIP pf MCP6004-DIP pf See Note +T +2 +T +2 MCP6004-DIP14 MCP6004-DIP14 VDC MCP6004-DIP14 C µf Note: To disable isolation, remove or disconnect all components within the bounded area. Connect A_SV directly to ISO_CSV and VDC_B to ISO_VDC. DS00889B-page Microchip Technology Inc.
19 FIGURE B-4: INVERTER DRIVERS AND OPTOISOLATORS See Note VDD Note: To disable isolation, remove all components within the bounded area. Connect the PWM inputs to the IN pins of their respective drivers. Connect the OC input to the SD pin of each driver. 4.7 µf 4.7 µf 4.7 µf 2004 Microchip Technology Inc. DS00889B-page 19
20 FIGURE B-5: DISPLAY AND COMMUNICATION SECTION MCP6004-DIP14 24LC16 MCLR/VPP DS00889B-page Microchip Technology Inc.
21 APPENDIX C: SOFTWARE DISCUSSED IN THIS APPLICATION NOTE Because of its overall length, a complete source file listing of the PIC16F7X7 VF motor control firmware is not provided here. The complete source code is available as a single WinZip archive file, which may be downloaded from the Microchip corporate web site at: Microchip Technology Inc. DS00889B-page 21
22 NOTES: DS00889B-page Microchip Technology Inc.
23 Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip s products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, Accuron, dspic, KEELOQ, microid, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfpic, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AmpLab, FilterLab, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, dspicdem, dspicdem.net, dspicworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzylab, In-Circuit Serial Programming, ICSP, ICEPIC, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rflab, rfpicdem, Select Mode, Smart Serial, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 2004, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October The Company s quality system processes and procedures are for its PICmicro 8-bit MCUs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001:2000 certified Microchip Technology Inc. DS00889B-page 23
24 WORLDWIDE SALES AND SERVICE AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ Tel: Fax: Technical Support: Web Address: Atlanta 3780 Mansell Road, Suite 130 Alpharetta, GA Tel: Fax: Boston 2 Lan Drive, Suite 120 Westford, MA Tel: Fax: Chicago 333 Pierce Road, Suite 180 Itasca, IL Tel: Fax: Dallas 4570 Westgrove Drive, Suite 160 Addison, TX Tel: Fax: Detroit Tri-Atria Office Building Northwestern Highway, Suite 190 Farmington Hills, MI Tel: Fax: Kokomo 2767 S. Albright Road Kokomo, IN Tel: Fax: Los Angeles Von Karman, Suite 1090 Irvine, CA Tel: Fax: San Jose 1300 Terra Bella Avenue Mountain View, CA Tel: Fax: Toronto 6285 Northam Drive, Suite 108 Mississauga, Ontario L4V 1X5, Canada Tel: Fax: ASIA/PACIFIC Australia Suite 22, 41 Rawson Street Epping 2121, NSW Australia Tel: Fax: China - Beijing Unit 706B Wan Tai Bei Hai Bldg. No. 6 Chaoyangmen Bei Str. Beijing, , China Tel: Fax: China - Chengdu Rm , 24th Floor, Ming Xing Financial Tower No. 88 TIDU Street Chengdu , China Tel: Fax: China - Fuzhou Unit 28F, World Trade Plaza No. 71 Wusi Road Fuzhou , China Tel: Fax: China - Hong Kong SAR Unit 901-6, Tower 2, Metroplaza 223 Hing Fong Road Kwai Fong, N.T., Hong Kong Tel: Fax: China - Shanghai Room 701, Bldg. B Far East International Plaza No. 317 Xian Xia Road Shanghai, Tel: Fax: China - Shenzhen Rm. 1812, 18/F, Building A, United Plaza No Binhe Road, Futian District Shenzhen , China Tel: Fax: China - Shunde Room 401, Hongjian Building, No. 2 Fengxiangnan Road, Ronggui Town, Shunde District, Foshan City, Guangdong , China Tel: Fax: China - Qingdao Rm. B505A, Fullhope Plaza, No. 12 Hong Kong Central Rd. Qingdao , China Tel: Fax: India Divyasree Chambers 1 Floor, Wing A (A3/A4) No. 11, O Shaugnessey Road Bangalore, , India Tel: Fax: Japan Benex S-1 6F , Shinyokohama Kohoku-Ku, Yokohama-shi Kanagawa, , Japan Tel: Fax: Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea Tel: Fax: or Singapore 200 Middle Road #07-02 Prime Centre Singapore, Tel: Fax: Taiwan Kaohsiung Branch 30F - 1 No. 8 Min Chuan 2nd Road Kaohsiung 806, Taiwan Tel: Fax: Taiwan Taiwan Branch 11F-3, No. 207 Tung Hua North Road Taipei, 105, Taiwan Tel: Fax: EUROPE Austria Durisolstrasse 2 A-4600 Wels Austria Tel: Fax: Denmark Regus Business Centre Lautrup hoj 1-3 Ballerup DK-2750 Denmark Tel: Fax: France Parc d Activite du Moulin de Massy 43 Rue du Saule Trapu Batiment A - ler Etage Massy, France Tel: Fax: Germany Steinheilstrasse 10 D Ismaning, Germany Tel: Fax: Italy Via Quasimodo, Legnano (MI) Milan, Italy Tel: Fax: Netherlands P. A. De Biesbosch 14 NL-5152 SC Drunen, Netherlands Tel: Fax: United Kingdom 505 Eskdale Road Winnersh Triangle Wokingham Berkshire, England RG41 5TU Tel: Fax: /17/04 DS00889B-page Microchip Technology Inc.
AN709. System Level Design Considerations When Using I 2 C TM Serial EEPROM Devices INTRODUCTION INSURING BUS-FREE DURING POWER-UP
M AN709 System Level Design Considerations When Using I 2 C TM Serial EEPROM Devices Author: INTRODUCTION Rick Stoneking Developing systems that implement the I 2 C protocol for communicating with serial
TB056. Demonstrating the Set_Report Request With a PS/2 to USB Keyboard Translator Example INTRODUCTION. The Set_Report Request.
Demonstrating the Set_Report Request With a PS/2 to USB Keyboard Translator Example Author: INTRODUCTION This Technical Brief details the translation of a PS/2 keyboard to a USB keyboard using the PIC16C745/
AN905. Brushed DC Motor Fundamentals INTRODUCTION PRINCIPLES OF OPERATION. Stator. Rotor SIMPLE TWO-POLE BRUSHED DC MOTOR. Microchip Technology Inc.
Brushed DC Motor Fundamentals AN905 Author: Reston Condit Microchip Technology Inc. INTRODUCTION Brushed DC motors are widely used in applications ranging from toys to push-button adjustable car seats.
AN688. Layout Tips for 12-Bit A/D Converter Application GETTING A GOOD START INTRODUCTION. Microchip Technology Inc. / 2 MCP602
Layout Tips for 12-Bit A/D Converter Application Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. This Application Note originally started as a cook book for a true 12-bit layout. The assumption
M Floating Point to ASCII Conversion
M Floating Point to ASCII Conversion AN670 Authors: INTRODUCTION It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating
TB3016. Using the PIC MCU CTMU for Temperature Measurement IMPLEMENTATION BASIC PRINCIPLE MEASUREMENT CIRCUIT
Using the PIC MCU CTMU for Temperature Measurement Author: Padmaraja Yedamale Microchip Technology Inc. The Charge Time Measurement Unit (CTMU), introduced on the latest generation of PIC24F and PIC18F
TB055. PS/2 to USB Mouse Translator IMPLEMENTATION OVERVIEW. Hardware FIGURE 1: PS/2 TO USB MOUSE TRANSLATOR HARDWARE DIAGRAM (1)
PS/2 to USB Mouse Translator TB55 Author: OVERVIEW Reston Condit Microchip Technology Inc. This Technical Brief details the translation of a PS/2 mouse to a USB mouse using the PIC16C745/765. The PIC16C745/765
AN680. Passive RFID Basics INTRODUCTION DEFINITIONS. Modulation. Reader. Tag. Carrier. Microchip Technology Inc.
Passive RFID Basics Author: INTRODUCTION Radio Frequency Identification (RFID) systems use radio frequency to identify, locate and track people, assets, and animals. Passive RFID systems are composed of
WORKSHOP-IN-A-BOX 2: LOW POWER SOLUTIONS DEMONSTRATION BOARD
WORKSHOP-IN-A-BOX 2: LOW POWER SOLUTIONS DEMONSTRATION BOARD 2004 Microchip Technology Inc. DS51512A Note the following details of the code protection feature on Microchip devices: Microchip products meet
How to Implement ICSP Using PIC12C5XX OTP MCUs VDD. GP3/MCLR/VPP ICSP Connector. To application circuit Isolation circuits
TB017 How to Implement ICSP Using PIC12C5XX OTP MCUs Author: Thomas Schmidt custom orders for your products. IN-CIRCUIT SERIAL PROGRAMMING INTRODUCTION The technical brief describes how to implement in-circuit
Analog-to-Digital Converters
Analog-to-Digital Converters In this presentation we will look at the Analog-to-Digital Converter Peripherals with Microchip s midrange PICmicro Microcontrollers series. 1 Analog-to-Digital Converters
M Floating Point to ASCII Conversion
M Floating Point to ASCII Conversion AN670 Authors: INTRODUCTION It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating
AN699. Anti-Aliasing, Analog Filters for Data Acquisition Systems ANALOG VERSUS DIGITAL FILTERS INTRODUCTION. Microchip Technology Inc.
Anti-Aliasing, Analog Filters for Data Acquisition Systems Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. Analog filters can be found in almost every electronic circuit. Audio systems use
TCM680. +5V To ±10V Voltage Converter. General Description. Features. Applications. Package Type. Typical Operating Circuit
M 5V To ±10V Voltage Converter TCM680 Features 99% Voltage Conversion Efficiency 85% Power Conversion Efficiency Input Voltage Range: 2.0V to 5.5V Only 4 External Capacitors Required 8Pin SOIC Package
dspic30f3012/3013 dspic30f3012/3013 Rev. B0 Silicon Errata dspic30f3012/3013 (Rev. B0) Silicon Errata Silicon Errata Summary
dspic30f3012/3013 Rev. B0 Silicon Errata dspic30f3012/3013 (Rev. B0) Silicon Errata The dspic30f3012/3013 (Rev. B0) samples you have received were found to conform to the specifications and functionality
AN831. Matching Small Loop Antennas to rfpic Devices INTRODUCTION CALCULATING THE LOOP RADIATION RESISTANCE AND LOSS RESISTANCE EQUATION 2:
Matching Small Loop Antennas to rfpic Devices Author: Jan van Niekerk Microchip Technology Inc. EQUATION 2: Ploss I 2 Rloss INTRODUCTION In close proximity to the human body, small loop antennas outperform
TCM809/TCM810. 3-Pin Microcontroller Reset Monitors. General Description. Features. Applications. Pin Configurations. Typical Application Circuit
M TCM809/TCM810 3-Pin Microcontroller Reset Monitors Features Precision Monitor for 2.5V, 3.0V, 3.3V, 5.0V Nominal System Voltage Supplies 140 msec Minimum RESET Timeout Period RESET Output to = 1.0V (TCM809)
AN844. Simplified Thermocouple Interfaces and PICmicro MCUs INTRODUCTION. Linearization THERMOCOUPLE CIRCUITS. Absolute Temperature Reference.
Simplified Thermocouple Interfaces and PICmicro MCUs Author: INTRODUCTION Joseph Julicher Microchip Technology Inc. Thermocouples are the simplest form of temperature sensors. Thermocouples are normally:
AN956. Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software OVERVIEW INTRODUCTION. Microchip Technology Inc.
Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software Author: INTRODUCTION Rawin Rojvanit Microchip Technology Inc. The RS-232 serial interface is no longer a common port found
AN873. Using the MCP2515 CAN Developer s Kit INTRODUCTION. PC Node. PICmicro Node BLOCK DIAGRAM OF MCP2515 DEVELOPMENT BOARD
M Using the MCP2515 CAN Developer s Kit AN873 Author: INTRODUCTION The MCP2515 eases software development and shortens the learning curve for the MCP2515 by providing three PC software templates with different
AN1303. Software Real-Time Clock and Calendar Using PIC16F1827 DATA INTERFACE INTRODUCTION IMPLEMENTATION INTERNAL REGISTER MAP
Software Real-Time Clock and Calendar Using PIC16F1827 Author: INTRODUCTION Cristian Toma Microchip Technology Inc. This application note describes the implementation of software Real-Time Clock and Calendar
AN1286. Water-Resistant Capacitive Sensing INTRODUCTION THEORY OF OPERATION. Sensing Steps. Sensing Steps Description DESIGN
Water-Resistant Capacitive Sensing AN1286 Author: INTRODUCTION Thomas Perme Steven Lin Microchip Technology Inc. This application note describes a new hardware sensing method which is resilient to water
AN1142. USB Mass Storage Class on an Embedded Host INTRODUCTION. USB Mass Storage Class. Overview
USB Mass Storage Class on an Embedded Host Author: INTRODUCTION With the introduction of Microchip's microcontrollers with the USB OTG peripheral, microcontroller applications can easily support USB Embedded
AN880. Converting from 8051 to Microchip Assembler: A Quick Reference INTRODUCTION
Converting from 805 to Assembler: A Quick Reference Author: INTRODUCTION Gaurang Kavaiya Technology Inc. When migrating assembly language programs from one family of microcontrollers to another, the first
TB026. Calculating Program Memory Checksums Using a PIC16F87X ACCESSING MEMORY INTRODUCTION. PIC16C7X vs. PIC16F87X. Microchip Technology Inc.
M TB026 Calculating Program Memory Checksums Using a PIC16F87X Author: INTRODUCTION Many applications require the microcontroller to calculate a checksum on the program memory to determine if the contents
PIC10F200/202/204/206
Memory Programming Specification This document includes the programming specifications for the following devices: PIC10F200 PIC10F202 PIC10F204 PIC10F206 1.0 PROGRAMMING THE PIC10F200/202/204/206 The PIC10F200/202/204/206
Voltage-to-Frequency/Frequency-to-Voltage Converter
Voltage-to-Frequency/Frequency-to-Voltage Converter Author: Michael O. Paiva, Microchip Technology, Inc. RATIOMETRIC MEASUREMENT (ANALOG DIVISION) One of the most difficult circuits to build is one which
AN1199. 1-Wire Communication with PIC Microcontroller INTRODUCTION. OVERVIEW OF THE 1-Wire BUS. 1-Wire Protocol. Prerequisites
1-Wire Communication with PIC Microcontroller Author: INTRODUCTION This application note introduces the user to the 1-Wire communication protocol and describes how a 1-Wire device can be interfaced to
AN713. Controller Area Network (CAN) Basics INTRODUCTION CAN PROTOCOL BASICS CAN OVERVIEW
Controller Area Network (CAN) Basics AN713 Author: INTRODUCTION Controller Area Network (CAN) was initially created by German automotive system supplier Robert Bosch in the mid-1980s for automotive applications
MCP3021. Low Power 10-Bit A/D Converter With I 2 C Interface. Description. Features. Applications. Functional Block Diagram.
M MCP321 Low Power 1-Bit A/D Converter With I 2 C Interface Features 1-bit resolution ±1 LSB DNL, ±1 LSB INL max. 25 µa max conversion current 5 na typical standby current, 1 µa max. I 2 C compatible serial
A CAN Physical Layer Discussion
M A CAN Physical Layer Discussion AN228 Author: INTRODUCTION Pat Richards Microchip Technology Inc. Many network protocols are described using the seven layer Open System Interconnection (OSI) model, as
AN687. Precision Temperature-Sensing With RTD Circuits RTD OVERVIEW INTRODUCTION EQUATION 1:
Precision Temperature-Sensing With RTD Circuits Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. The most widely measured phenomena in the process control environment is temperature. Common
Timers: Timer0 Tutorial (Part 1)
Timers: Timer0 Tutorial (Part 1) 2007 Microchip Technology Inc. DS51682A Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained
Recommended Usage of Microchip 23X256/23X640 SPI Serial SRAM Devices RECOMMENDED CONNECTIONS FOR 23X256,23X640 SERIES DEVICES VCC 23X256/ HOLD.
Recommended Usage of Microchip 23X256/23X640 SPI Serial SRAM Devices Author: INTRODUCTION Martin Bowman Microchip Technology Inc. This document details recommended usage of the Microchip 23X256 and 23X640
Code Hopping Decoder Using a PIC16C56
Code Hopping Decoder Using a PIC6C56 AN66 Author: OVERVIEW Steven Dawson Microchip Technology Inc. This application note fully describes the working of a code hopping decoder implemented on a Microchip
How To Use A Temperature Sensor On A Microchip Computer (For Microchip)
2-Wire Serial Temperature Sensor and Thermal Monitor Features Solid-State Temperature Sensing; 0.5 C Accuracy (Typ.) Operates from -55 C to +25 C Operating Supply Range: 2.7V to 5.5V Programmable Trip
AN885. Brushless DC (BLDC) Motor Fundamentals INTRODUCTION CONSTRUCTION AND OPERATING PRINCIPLE. Stator. Padmaraja Yedamale Microchip Technology Inc.
Brushless DC (BLDC) Motor Fundamentals AN885 Author: INTRODUCTION Padmaraja Yedamale Microchip Technology Inc. Brushless Direct Current (BLDC) motors are one of the motor types rapidly gaining popularity.
AN1156. Battery Fuel Measurement Using Delta-Sigma ADC Devices INTRODUCTION REVIEW OF BATTERY CHARGING AND DISCHARGING CHARACTERISTICS
Battery Fuel Measurement Using Delta-Sigma ADC Devices Author: INTRODUCTION Youbok Lee, Ph.D. Microchip Technology Inc. The battery fuel status indicator is a common feature of the battery-supported handheld
TB040. Fast Integer Square Root THE ALGORITHM INTRODUCTION SQUARE ROOT FLOW CHART
Fast Integer Square Root Author: Ross M. Fosler Microchip Technology Inc. algorithm demonstrates how the single cycle multiplier is useful in calculating a square root and at the same time, save processor
PICmicro DC Motor Control Tips n Tricks
PICmicro DC Motor Control Tips n Tricks M Table of Contents Tips n Tricks Tips N Tricks Introduction TIP #1: Brushed DC Motor Drive Circuits...2 TIP #2: Brushless DC Motor Drive Circuits...5 TIP #3: Stepper
FLASH Memory Programming Specification TABLE 1-1: PIN DESCRIPTIONS (DURING PROGRAMMING): PIC16F72
M PIC16F72 FLASH Memory Programming Specification This document includes the programming specifications for the following device: PIC16F72 1.0 PROGRAMMING THE PIC16F72 The PIC16F72 is programmed using
TC652/TC653. Integrated Temperature Sensor & Brushless DC Fan Controller with FanSense Detect & Over-Temperature. Features.
Integrated Temperature Sensor & Brushless DC Fan Controller with FanSense Detect & Over-Temperature Features Integrated Temperature Sensing and Multi-speed Fan Control FanSense Fan Fault Detect Circuitry
Installing and Licensing MPLAB XC C Compilers
Installing and Licensing MPLAB XC C Compilers DS50002059G Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular
Technical Brief Secure Learning RKE Systems Using KEELOQ Encoders
Technical Brief Secure Learning RKE Systems Using KEELOQ Encoders TB001 Author: Chris R. Burger INTRODUCTION Learning capability in remote keyless entry (RKE) and remote-controlled security systems is
Universal Programming Module 2
Universal Programming Module OVERVIEW The Universal Programming Module (UPM) is a handy, low-cost board that supports the programming of Microchip devices using MPLAB in-circuit emulators and debuggers.
TC4421/TC4422. Functional Block Diagram. TC4421 Inverting. TC4422 Non-Inverting V DD. 300 mv Output. Input 4.7V. GND Effective. Input.
9A High-Speed MOSFET Drivers Features High Peak Output Current: 9A Wide Input Supply Voltage Operating Range: - 4.5V to 18V High Continuous Output Current: 2A Max Fast Rise and Fall Times: - 3 ns with
AN562. Using Endurance Predictive Software. Using the Microchip Endurance Predictive Software INTRODUCTION TOTAL ENDURANCE PREDICTIVE SOFTWARE
AN562 Using the Microchip Endurance Predictive Software INTRODUCTION Endurance, as it applies to non-volatile memory, refers to the number of times an individual memory cell can be erased and/or written
AN990. Analog Sensor Conditioning Circuits An Overview INTRODUCTION SENSOR APPLICATIONS. Target Audience. Goals. Description.
Analog Conditioning Circuits An Overview Author: INTRODUCTION Target Audience This application note is intended for hardware design engineers that need to condition the output of common analog sensors.
TCP/IP Networking: Web-Based Status Monitoring
TCP/IP Networking: Web-Based Status Monitoring Microchip TCP/IP Stack HTTP2 Module 2007 Microchip Technology Incorporated. All Rights Reserved. Web-Based Status Monitoring Slide 1 Welcome to the first
AN1470. Manchester Decoder Using the CLC and NCO ABSTRACT INTRODUCTION MANCHESTER ENCODED DATA (AS PER G.E. THOMAS)
Manchester Decoder Using the CLC and NCO Authors: ABSTRACT A Manchester decoder can be built using Microchip s award winning CLC (Configurable Logic Cell) blocks and NCO (Numerically Controlled Oscillator)
AN1325. mtouch Metal Over Cap Technology THEORY OF OPERATION INTRODUCTION CROSS SECTION OF METAL OVER CAPACITIVE (UNPRESSED)
mtouch Metal Over Cap Technology AN1325 Authors: INTRODUCTION Keith Curtis Dieter Peter Microchip Technology Inc. As a user interface, capacitive touch has several advantages: it is low power, low cost,
How To Improve Electromagnetic Compatibility
Introducing the EMC Newsletter What is EMC? Issue 1, November 2004 NOVEMBER 2004 Rodger Richey Senior Applications Manager Welcome to the first issue of the EMC Newsletter created by the Application Engineers
AN685. Thermistors in Single Supply Temperature Sensing Circuits INTRODUCTION THERMISTOR OVERVIEW. Current-Over-Time Mode. Voltage-Versus-Current Mode
Thermistors in Single Supply Temperature Sensing Circuits Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. There is a variety of temperature sensors on the market all of which meet specific
AN1275. KEELOQ with Advanced Encryption Standard (AES) Receiver/Decoder KEY FEATURES OVERVIEW. Microchip Technology Inc.
KEELOQ with Advanced Encryption Standard (AES) Receiver/Decoder Author: OVERVIEW Enrique Aleman Microchip Technology Inc. This application note describes a KEELOQ with AES code hopping decoder implemented
In-Circuit Serial Programming (ICSP ) Guide
In-Circuit Serial Programming (ICSP ) Guide 2003 Microchip Technology Inc. May 2003 DS30277D te the following details of the code protection feature on Microchip devices: Microchip products meet the specification
AN905. Brushed DC Motor Fundamentals INTRODUCTION PRINCIPLES OF OPERATION. Stator. Rotor SIMPLE TWO-POLE BRUSHED DC MOTOR. Microchip Technology Inc.
Brushed DC Motor Fundamentals AN905 Author: Reston Condit Microchip Technology Inc. INTRODUCTION Brushed DC motors are widely used in applications ranging from toys to push-button adjustable car seats.
AN734. Using the PICmicro SSP for Slave I 2 C TM Communication INTRODUCTION THE I 2 C BUS SPECIFICATION
Using the PICmicro SSP for Slave I 2 C TM Communication Author: INTRODUCTION Stephen Bowling Microchip Technology Incorporated Many devices in the PICmicro family have a Synchronous Serial Port (SSP) or
Section 14. Compare/Capture/PWM (CCP)
M Section 14. Compare/Capture/PWM (CCP) HIGHLIGHTS This section of the manual contains the following major topics: 14.1 Introduction...14-2 14.2 Control Register...14-3 14.3 Capture Mode...14-4 14.4 Compare
MCP1701A. 2 µa Low-Dropout Positive Voltage Regulator. Features. General Description. Applications. Package Types
2 µa Low-Dropout Positive Voltage Regulator Features 2.0 µa Typical Quiescent Current Input Operating Voltage Range up to 10.0V Low-Dropout Voltage (LDO): - 120 mv (typical) @ 100 ma - 380 mv (typical)
25AA640/25LC640. 64K SPI Bus Serial EEPROM. Device Selection Table. Description. Features. Block Diagram. Package Types
64K SPI Bus Serial EEPROM Device Selection Table Part Number Features VCC Range Max Clock Frequency Low-power CMOS technology - Write current: 3 ma typical - Read current: 500 µa typical - Standby current:
Motor Control Sensor Feedback Circuits. Power Management. PICmicro Input Microcontroller Driver Motor. Direction Current Sensor
M AN894 Motor Control Sensor Feedback Circuits Author: INTRODUCTION Jim Lepkowski Microchip Technology Inc. Sensors are a critical component in a motor control system. They are used to sense the current,
Section 28. In-Circuit Serial Programming (ICSP )
M Section 28. In-Circuit Serial Programming (ICSP ) HIGHLIGHTS This section of the manual contains the following major topics: 28. Introduction...28-2 28.2 Entering In-Circuit Serial Programming Mode...28-3
AN2680 Application note
Application note Fan speed controller based on STDS75 or STLM75 digital temperature sensor and ST72651AR6 MCU Introduction This application note describes the method of defining the system for regulating
ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation
ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation Program Definition: Write a program to control the speed of a dc motor using pulse width modulation. Discussion: The speed of a dc motor is
PIC16F877A. FLASH Memory Programming Specification 1.0 PROGRAMMING THE PIC16F87XA
M PIC16F87XA FLASH Memory Programming Specification This document includes programming specifications for the following devices: Pin Diagrams PDIP, SOIC PIC16F873A PIC16F874A PIC16F876A PIC16F877A 1.0
TABLE 1: BUCK REGULATOR
A Digital Constant Current Power LED Driver Author: INTRODUCTION Stephen Bowling Microchip Technology Inc. This document describes a power LED driver solution using the PIC12HV615 microcontroller (MCU).
Section 15. Input Capture
Section 15. Input Capture HIGHLIGHTS This section of the manual contains the following topics: 15.1 Introduction...15-2 15.2 Input Capture Registers...15-4 15.3 Timer Selection...15-8 15.4 Input Capture
AN717. Building a 10-bit Bridge Sensing Circuit using the PIC16C6XX and MCP601 Operational Amplifier
Building a 10-bit Bridge Sensing Circuit using the PIC16C6XX and MCP601 Operational Amplifier Author: INTRODUCTION Bonnie C. Baker Sensors that use Wheatstone bridge configurations, such as pressure sensors,
Driving Power MOSFETs in High-Current, Switch Mode Regulators V GS(TH) In equation form: and. I G = Q G /t (transition) where: For example:
N786 Driving Power MOSFETs in High-Current, Switch Mode Regulators uthor: bid Hussain, Microchip Technology, Inc. Q GS Q GD Q G Q OD DRIVING THE MOSFET The low on-resistance and high current carrying capability
TC1047/TC1047A. Precision Temperature-to-Voltage Converter. General Description. Applications. Block Diagram. Features.
Precision Temperature-to-Voltage Converter Features Supply Voltage Range: - TC147: 2.7V to 4.4V - TC147A: 2.V to.v Wide Temperature Measurement Range: - -4 o C to +12 o C High Temperature Converter Accuracy:
AN679. Temperature Sensing Technologies SO MANY TEMPERATURE SENSORS INTRODUCTION. Microchip Technology Inc.
M Temperature Sensing Technologies AN679 Author: Bonnie Baker Microchip Technology Inc. INTRODUCTION Of all of the sensing technologies, temperature sensing is the most common. This phenomena can be explained
AN1265. KEELOQ with AES Microcontroller-Based Code Hopping Encoder INTRODUCTION DUAL ENCODER OPERATION BACKGROUND FUNCTIONAL INPUTS AND
KEELOQ with AES Microcontroller-Based Code Hopping Encoder Authors: INTRODUCTION This application note describes the design of a microcontroller-based KEELOQ Hopping Encoder using the AES encryption algorithm.
PICkit 2 Microcontroller Programmer USER S GUIDE
PICkit 2 Microcontroller Programmer USER S GUIDE 2007 Microchip Technology Inc. DS51553D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
TC110. PFM/PWM Step-Up DC/DC Controller. Features. General Description. Applications. Functional Block Diagram. Device Selection Table
PFM/PWM Step-Up DC/DC Controller TC110 Features Assured Start-up at 0.9V 50µA (Typ) Supply Current (f OSC = 100kHz) 300mA Output Current @ V IN 2.7V 0.5µA Shutdown Mode 100kHz and 300kHz Switching Frequency
Design and Construction of Variable DC Source for Laboratory Using Solar Energy
International Journal of Electronics and Computer Science Engineering 228 Available Online at www.ijecse.org ISSN- 2277-1956 Design and Construction of Variable DC Source for Laboratory Using Solar Energy
Designing A Li-Ion Battery Charger and Load Sharing System With Microchip s Stand-Alone Li-Ion Battery Charge Management Controller
Designing A Li-Ion Battery Charger and Load Sharing System With Microchip s Stand-Alone Li-Ion Battery Charge Management Controller Author: INTRODUCTION Brian Chu Microchip Technology Inc. Batteries often
AN723. Operational Amplifier AC Specifications and Applications INTRODUCTION FREQUENCY DOMAIN SPECIFICATIONS
Operational Amplifier AC Specifications and Applications Author: INTRODUCTION Bonnie C. Baker I IN V DD This application note defines the ac specifications of voltage feedback operational amplifiers (Op
Uninstalling Incorrect USB Device Drivers
DEVELOPMENT SYSTEMS Uninstalling Incorrect USB Device Drivers RECOMMENDED UNINSTALL METHODS When using the Microchip development tools listed below, trouble may be experienced as a result of incorrect
HT46R14A Single Phase AC Induction Motor Frequency Converter Application
HT46R14A Single Phase AC Induction Motor Frequency Converter Application D/N:HA0095E Introductions Initially the main reason for using frequency conversion technology was for speed control, however to
AN1106. Power Factor Correction in Power Conversion Applications Using the dspic DSC INTRODUCTION
Power Factor Correction in Power Conversion Applications Using the dspic DSC Author: INTRODUCTION Vinaya Skanda Microchip Technology Inc. Most of the power conversion applications consist of an AC-to-DC
Integrated Development Environment
Development Tools Integrated Development Environment Transforming Ideas Into Realities The typical product development life cycle is comprised of smaller cycles each representing an iterative process toward
Features, Value and Benefits of Digital Control for Power Supplies
Author: INTRODUCTION Sagar Khare Microchip Technology Inc. Control of Switch Mode Power Supplies (SMPSs) has traditionally been a purely analog domain. The advent of low-cost, high-performance Digital
AN826. Crystal Oscillator Basics and Crystal Selection for rfpic TM and PICmicro Devices INTRODUCTION OSCILLATOR MODELS. Microchip Technology Inc.
Crystal Oscillator Basics and Crystal Selection for rfpic TM and PICmicro Devices Author: INTRODUCTION Steven Bible Microchip Technology Inc. Oscillators are an important component of radio frequency (RF)
Flexible Active Shutter Control Interface using the MC1323x
Freescale Semiconductor Document Number: AN4353 Application Note Rev. 0, 9/2011 Flexible Active Shutter Control Interface using the MC1323x by: Dennis Lui Freescale Hong Kong 1 Introduction This application
PICkit TM 2 Microcontroller Programmer USER S GUIDE
PICkit TM 2 Microcontroller Programmer USER S GUIDE 2006 Microchip Technology Inc. DS51553B Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
MCP73811/2. Simple, Miniature Single-Cell, Fully Integrated Li-Ion / Li-Polymer Charge Management Controllers. Description. Features.
Simple, Miniature Single-Cell, Fully Integrated Li-Ion / Li-Polymer Charge Management Controllers Features Complete Linear Charge Management Controller - Integrated Pass Transistor - Integrated Current
AN1332. Current Sensing Circuit Concepts and Fundamentals CURRENT SENSING RESISTOR INTRODUCTION. Description. Microchip Technology Inc.
Current Sensing Circuit Concepts and Fundamentals Author: INTRODUCTION Yang Zhen Microchip Technology Inc. Current sensing is a fundamental requirement in a wide range of electronic applications. Typical
MCRF202. 125 khz Passive RFID Device with Sensor Input. Not recommended for new designs. Package Type. Features. Description. Applications PDIP/SOIC
Not recommended for new designs. MCRF202 125 khz Passive RFID Device with Sensor Input Features External Sensor input Data polarity changes with Sensor input condition Read-only data transmission 96 or
Touch Through Metal. mtouch Metal Over Capacitive Technology Part 1
Touch Through Metal mtouch Metal Over Capacitive Technology Part 1 2010 Microchip Technology Incorporated. All Rights Reserved. Touch Through Metal Slide 1 Hello and welcome to Microchip s Touch Through
AN1353. Op Amp Rectifiers, Peak Detectors and Clamps INTRODUCTION BASIC RECTIFIERS. Choosing the Components. Positive Half-Wave Rectifier.
Op Amp Rectifiers, Peak Detectors and Clamps Author: Dragos Ducu, Microchip Technology Inc. INTRODUCTION This application note covers a wide range of applications, such as halfwave rectifiers, fullwave
How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player
Watt Saver for a Cell Phone AC Adapter Reference Design Document Number: DRM130 Rev 1, 10/2013 2 Freescale Semiconductor, Inc. Contents Section number Title Page Chapter 1 Introduction 1.1 Overview...5
MPLAB IDE QUICK START GUIDE
MPLAB IDE QUICK START GUIDE 2004 Microchip Technology Inc. DS51281D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in
LIN Serial Analyzer User s Guide Rev2.0
LIN Serial Analyzer User s Guide Rev2.0 2008 Microchip Technology Inc. DS51675B Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
TC7660. Charge Pump DC-to-DC Voltage Converter. Package Types. Features. General Description. Applications. Functional Block Diagram TC7660
Charge Pump DC-to-DC Voltage Converter Features Wide Input Voltage Range:.V to V Efficient Voltage Conversion (99.9%, typ) Excellent Power Efficiency (9%, typ) Low Power Consumption: µa (typ) @ V IN =
RC Model Aircraft Motor Control. Solutions. PWM Rate khz 1 PIC12C508A 20 20 0.5 limited None None 1.3 2 PIC16F628 20 20 1.0 Yes Yes Yes 32, 8, 2
RC Model Aircraft Motor Control AN847 Author: INTRODUCTION Joseph Julicher Microchip Technology Inc. As modern MOSFET transistors are developed with lower ON resistance and smaller packages, Electronic
AN ISOLATED GATE DRIVE FOR POWER MOSFETs AND IGBTs
APPLICATION NOTE AN ISOLATED GATE DRIVE FOR POWER MOSFETs AND IGBTs by J.M. Bourgeois ABSTRACT Power MOSFET and IGBT gate drives often face isolation and high voltage constraints. The gate drive described
AN1307 FULL STEP MODE PHASE VOLTAGE AND PHASE CURRENT MICROSTEPPING WITH 1/4 STEP SIZE
Stepper Motor Control with dspic DSCs AN1307 Author: INTRODUCTION Sorin Manea Microchip Technology Inc. This application note describes how to drive a stepper motor with a dspic33f motor control family
