DM164130-2 Microchip Technology, DM164130-2 Datasheet

no-image

DM164130-2

Manufacturer Part Number
DM164130-2
Description
DEV F1 ACCY BLDC MOTOR ADD-ON
Manufacturer
Microchip Technology
Series
PICkit™r
Datasheets

Specifications of DM164130-2

Accessory Type
Interface Board, Motor
Processor To Be Evaluated
PIC16LF1937
Operating Supply Voltage
1.8 V to 3.6 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
DM164130-1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM164130-2
Manufacturer:
MICROCHIP
Quantity:
12 000
F1 Evaluation Platform for
®
Enhanced PIC
Microcontrollers
User’s Guide
 2010 Microchip Technology Inc.
DS41401B

Related parts for DM164130-2

DM164130-2 Summary of contents

Page 1

... F1 Evaluation Platform for Enhanced PIC  2010 Microchip Technology Inc. ® Microcontrollers User’s Guide DS41401B ...

Page 2

... PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA 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. ...

Page 3

... Using the I C™ Driver .................................................................................. 22 5.7 Using the LCD driver .................................................................................... 24 5.8 Using the RTCC Driver ................................................................................. 26 5.9 Using the MCP9800 Driver ........................................................................... 27 Chapter 6. Troubleshooting 6.1 Introduction ................................................................................................... 29 6.2 Common Problems ....................................................................................... 29  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM Table of Contents USER’S GUIDE DS41401B-page 3 ...

Page 4

... F1 Evaluation Platform User’s Guide Chapter 7. Schematics 7.1 Introduction .................................................................................................. 31 Index .............................................................................................................................39 Worldwide Sales and Service .....................................................................................42 DS41401B-page 4  2010 Microchip Technology Inc. ...

Page 5

... Chapter 3. “Programming the F1 Evaluation Platform” • Chapter 4. “Demo Code” • Chapter 5. “Hardware Libraries and Drivers” • Chapter 6. “Troubleshooting” • Chapter 7. “Schematics”  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM Preface NOTICE TO CUSTOMERS USER’S GUIDE ® ...

Page 6

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... }  2010 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 7

... For the latest information on using other tools, read the tool-specific Readme files in the Readmes subdirectory of the MPLAB IDE installation directory. The Readme files contain update information and known issues that may not be included in this user’s guide.  2010 Microchip Technology Inc. Preface DS41401B-page 7 ...

Page 8

... MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager and general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 device programmers and PICkit™ 3 development programmers. DS41401B-page 8 ®  2010 Microchip Technology Inc. ...

Page 9

... Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (October 2009) • Initial Release of this Document. Revision B (September 2010) • Revised Figures 7.1.4, 7.1.5 and 7.1.6  2010 Microchip Technology Inc. Preface DS41401B-page 9 ...

Page 10

... F1 Evaluation Platform User’s Guide NOTES: DS41401B-page 10  2010 Microchip Technology Inc. ...

Page 11

... MHz internal oscillator 10. Low-power 32 kHz crystal oscillator and 11. LCD controller. 1.3.2 MCP9800 I The MCP9800 is a low-power, I output resolution.  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM www.microchip.com/F1Eval C™, SPI Temperature Sensor 2 C temperature sensor with selectable bits of USER’ ...

Page 12

... The PIC16LF1937 makes controlling the LCD very simple. 1.3.7 20-pin Motor Control Expansion Connector This connector allows the PIC16LF1937 to control an optional Sensorless BLDC add-on board (DM164130-2). The PIC16LF1937 has complete control of 3 phases so other 3-phase motor topologies can also be controlled. 1.3.8 Current Monitoring Connector To demonstrate the Extreme Low Power (XLP) features of the PIC16LF1937, a precision ammeter can be connected to the current monitoring connector ...

Page 13

... Programming the F1 Evaluation Platform with the PICkit™ 3 • Attaching a PICkit Serial (optional) • Measuring the current consumption FIGURE 2-1: F1 EVALUATION PLATFORM (DM164130-1) 2.2 POWERING THE F1 EVALUATION PLATFORM The PIC16LF1937 supplied with your F1 Evaluation Platform requires a supply voltage of 1.8V-3.6V. Voltages above 3.6V will degrade or damage the device. There are four ways to supply the necessary power ...

Page 14

... Configure the PICkit Serial to supply a voltage between 1.8 and 3.6V. For proper LCD contrast, the supply should be 3.3V. 4. Attach the PICkit Serial to the PICkit Serial connector at the top corner of the board. 5. Activate the PICkit Serial power output. DS41401B-page 14 POWERING WITH THE CONNECTOR AT JP3  2010 Microchip Technology Inc. ...

Page 15

... BLDC Motor One task of the demo code is to drive a BLDC motor attached to the BLDC Expansion Header. The optional BLDC Controller board (DM164130-2) is required to drive the motor. The code performs a series of forced commutation steps to attempt a sensorless motor start back EMF signal is detected, the code repeats the start-up sequence. ...

Page 16

... Placing the pot in the center of the range will leave the time unchanged. A feature that could be added as a simple programming exercise would be to allow the time change to be faster or slower depending upon pot position. DS41401B-page 16  2010 Microchip Technology Inc. ...

Page 17

... These adaptors provide the inline 6 pin connector required by the PICkit ICSP programming capability interface. You will also need a power supply, please see Chapter 2. “Getting Started” for more on powering the F1 Evaluation Platform.  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401B-page 17 ...

Page 18

... Crystal Drive BLDC pin 1, Phase W low drive MCP9800 SCLK and PICkit Serial pin 5 LCD pin 4, Common 4 LED D1 Button Input LCD pin 12, 1B/1G/1C/ MCP9800 SDA and PICkit Serial pin 4 LCD pin 10, 2B/2G/2C/2DP PICkit Serial pin 6  2010 Microchip Technology Inc. ...

Page 19

... BLDC DEMO The BLDC demo controls a sensorless, brushless DC motor connected to the PIC16F1 BLDC Expansion board (DM164130-2). Other motors can also be driven by making appropriate modifications to the motor control parameters in the source code. Refer to application note AN1305, “Sensorless 3-Phase Brushless Motor Control with the PIC16FXXX” ...

Page 20

... F1 Evaluation Platform User’s Guide NOTES: DS41401B-page 20  2010 Microchip Technology Inc. ...

Page 21

... The LCD driver contains the initialization code required for the LCD peripheral and the mapping code required to control the 3.5-digit LCD supplied with this demo board good starting point for the LCD driver your unique application will require.  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM 2 ...

Page 22

... ACK a byte. 2 The I C state machine had a RAM corruption and the default case caught the failure. This will infinite loop so you should never see it request is of type I2C_RESULTS_T. This flag will 2 C driver bus. A transaction  2010 Microchip Technology Inc. ...

Page 23

... The i2c_write_block and i2c_read_block functions are helpers that assemble a TRB, insert it into the queue and wait for the transaction to complete.  2010 Microchip Technology Inc. Hardware Libraries and Drivers 2 C driver and makes it ready to receive DS41401B-page 23 ...

Page 24

... Digit 3 is the Most Significant ½ digit of the 3.5-digit LCD glass. Therefore, the largest value displayable is 1FFF assuming hexidecimal digits or 1999 for decimal digits. DS41401B-page 24 val; unsigned digit0 : 4; unsigned digit1 : 4; unsigned digit2 : 4; unsigned digit3 : state to be handled. This  2010 Microchip Technology Inc. ...

Page 25

... These two functions simply turn the LCD peripheral off. The Timer1 oscillator is left running. One use for these functions is to implement display blinking. FIGURE 5-9: void update_blinking() { if(time( odd number of seconds { lcd_display_on(); } else { lcd_display_off(); } }  2010 Microchip Technology Inc. Hardware Libraries and Drivers DS41401B-page 25 ...

Page 26

... The second option is to use the LCD write-allowed interrupt flag to provide a 128 Hz event (CLOCKS_PER_SECOND = 128). The two choices are selected by defining use_lcdif or undefining use_lcdif. 5.8.1 RTCC Function Interface 5.8.1.1 rtcc_init Intialize the RTCC function including Timer1, if required. DS41401B-page 26 LCD DISPLAY MINUS = 1; MINUS = 0;  2010 Microchip Technology Inc. ...

Page 27

... USING THE MCP9800 DRIVER The MCP9800 interface to the features in the sensor.  2010 Microchip Technology Inc. Hardware Libraries and Drivers // the month // the day of the month // the hour (0-23) // the minutes ...

Page 28

... In this mode, the temperature is always ready to be read from the I FIGURE 5-15: System_init() { i2c_init(); mcp9800_init(); } 5.9.1.2 mcp9800_get_temp This function reads the current temperature and scales the result to degrees C * 10. (24.3C is returned 243) FIGURE 5-16: Thermostat() { int temperature; temperature = mcp9800_get_temp(); if(temperature > 260) { turn_on_air_conditioner(); } } DS41401B-page interface.  2010 Microchip Technology Inc. ...

Page 29

... BEMF zero-crossing signal is detected by the PIC16LF1937. If you are using a different motor, you need to adjust the zero-crossing threshold to match the requirements of the motor. For more information, consult the documentation supplied with the BLDC add-on board.  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401B-page 29 ...

Page 30

... F1 Evaluation Platform User’s Guide NOTES: DS41401B-page 30  2010 Microchip Technology Inc. ...

Page 31

... Chapter 7. Schematics 7.1 INTRODUCTION To help understand the features of the F1 Evaluation Platform and the BLDC add-on board, the schematics are included here.  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401B-page 31 ...

Page 32

... F1 Evaluation Platform User’s Guide 7.1.1 F1 Evaluation Platform Schematic ( DS41401B-page 32  2010 Microchip Technology Inc. ...

Page 33

... F1 Evaluation Platform Schematic (  2010 Microchip Technology Inc. Schematics DS41401B-page 33 ...

Page 34

... F1 Evaluation Platform User’s Guide 7.1.3 F1 Evaluation Platform Schematic ( DS41401B-page 34  2010 Microchip Technology Inc. ...

Page 35

... BLDC Add-On Schematic (  2010 Microchip Technology Inc. Schematics DS41401B-page 35 ...

Page 36

... F1 Evaluation Platform User’s Guide 7.1.5 BLDC Add-On Schematic ( DS41401B-page 36  2010 Microchip Technology Inc. ...

Page 37

... BLDC Add-On Schematic (  2010 Microchip Technology Inc. Schematics DS41401B-page 37 ...

Page 38

... F1 Evaluation Platform User’s Guide NOTES: DS41401B-page 38  2010 Microchip Technology Inc. ...

Page 39

... H Hardware Features .................................................. 11 16-bit timers ...................................................... 11 32-MHz internal oscillator ................................. 11 CCPs ................................................................ 11 EEPROM .......................................................... 11 Enhanced USART ............................................ 11 LCD controller ................................................... 11 RAM .................................................................. 11 Hardware Libraries & Drivers ................................... 21  2010 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE Index I ICSP pins ................................................................. 17 Internet Address......................................................... 8 L LCD Demo ............................................................... 19 LCD Display ............................................................. 16 LCD Function Interface ............................................ 25 lcd_display_digits ...

Page 40

... REAL ICE™ in-circuit emulator ................................ 17 S Segment 17 .............................................................. 18 Sensorless BLCD add-on board............................... 12 Supply voltage.......................................................... 13 T T1OSCI .................................................................... 18 T1OSCO .................................................................. 18 U User Interface........................................................... 16 Pot ADC value .................................................. 16 RPM .................................................................. 16 Temperature ..................................................... 16 Time .................................................................. 16 W Warranty Registration................................................. 7 WWW Address ........................................................... 8 X XLP low power ......................................................... 11 DS41401B-page 40  2010 Microchip Technology Inc. ...

Page 41

... NOTES:  2010 Microchip Technology Inc. F1 Evaluation Platform User’s Guide DS41401B-page 41 ...

Page 42

... Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-6578-300 Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350  2010 Microchip Technology Inc. 08/04/10 ...

Related keywords