DV164132 Microchip Technology, DV164132 Datasheet

no-image

DV164132

Manufacturer Part Number
DV164132
Description
KIT EVAL F1 FOR PIC12F1/PIC16F1
Manufacturer
Microchip Technology
Type
MCUr
Datasheets

Specifications of DV164132

Contents
Board, PIC kit 3
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC12, PIC16
Silicon Core Number
PIC12F, PIC16F
Silicon Family Name
PIC12F1xxx, PIC16F1xxx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16LF1937
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164132
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DV164132
Manufacturer:
MICROCHIP
Quantity:
12 000
F1 Evaluation Platform for
®
Enhanced PIC
Microcontrollers
User’s Guide
© 2009 Microchip Technology Inc.
DS41401A

Related parts for DV164132

DV164132 Summary of contents

Page 1

... F1 Evaluation Platform for Enhanced PIC © 2009 Microchip Technology Inc. ® Microcontrollers User’s Guide DS41401A ...

Page 2

... 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 © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM Table of Contents USER’S GUIDE DS41401A-page 3 ...

Page 4

... F1 Evaluation Platform User’s Guide Chapter 7. Schematics 7.1 Introduction .................................................................................................. 31 Index .............................................................................................................................39 Worldwide Sales and Service .....................................................................................42 DS41401A-page 4 © 2009 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” © 2009 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 { ... } © 2009 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. © 2009 Microchip Technology Inc. Preface DS41401A-page 7 ...

Page 8

... Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 and PRO MATE Plus and PICkit™ 1 development programmers. DS41401A-page 8 ® II device programmers and the PICSTART © 2009 Microchip Technology Inc. ® ® ...

Page 9

... Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. 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. © 2009 Microchip Technology Inc. Preface DS41401A-page 9 ...

Page 10

... F1 Evaluation Platform User’s Guide NOTES: DS41401A-page 10 © 2009 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, selectable 8 to 12-bit I SOT23-5 package. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM www.microchip.com/F1Eval C™, SPI Temperature Sensor USER’S GUIDE ® ...

Page 12

... This allows your application to be easily optimized for the lowest possible current. 1.3.9 Generous Prototyping Area Our circuits are not your circuits. A prototyping area has been provided to extend the functionality of this demo board to demonstrate the utility of the PIC16LF1937 in your application. DS41401A-page SPI and USART © 2009 Microchip Technology Inc. ...

Page 13

... POWERING WITH PICkit™ power with the PICkit 3, perform the following steps: 1. Make sure a jumper or an ammeter is connected across JP2 you are using a BLDC expansion, remove the jumper at JP1. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401A-page 13 ...

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. DS41401A-page 14 POWERING WITH THE CONNECTOR AT JP3 © 2009 Microchip Technology Inc. ...

Page 15

... If no back EMF signal is detected, the code repeats the start-up sequence. The LEDs blink at an increasing rate indicating the motor start attempts motor drive hardware is attached, this pattern can repeat or it may detect a BEMF signal in the noise present on the BEMF sense inputs. © 2009 Microchip Technology Inc. Getting Started DS41401A-page 15 ...

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. DS41401A-page 16 © 2009 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. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401A-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 © 2009 Microchip Technology Inc. ...

Page 19

... RPM/10. All drivers are reused from the previous demos. The RTCC is driven from the LCD peripheral. The combined demo is preprogrammed in the F1 Evaluation Platform. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE 2 C driver is used to extract the data ...

Page 20

... F1 Evaluation Platform User’s Guide NOTES: DS41401A-page 20 © 2009 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. © 2009 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 © 2009 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. © 2009 Microchip Technology Inc. Hardware Libraries and Drivers 2 C driver and makes it ready to receive 2 C ...

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. DS41401A-page 24 val; unsigned digit0 : 4; unsigned digit1 : 4; unsigned digit2 : 4; unsigned digit3 : state to be handled. This © 2009 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(); } } © 2009 Microchip Technology Inc. Hardware Libraries and Drivers DS41401A-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. DS41401A-page 26 LCD DISPLAY MINUS = 1; MINUS = 0; © 2009 Microchip Technology Inc. ...

Page 27

... USING THE MCP9800 DRIVER The MCP9800 interface to the features in the sensor. © 2009 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(); } } DS41401A-page interface. © 2009 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. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401A-page 29 ...

Page 30

... F1 Evaluation Platform User’s Guide NOTES: DS41401A-page 30 © 2009 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. © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE DS41401A-page 31 ...

Page 32

... F1 Evaluation Platform User’s Guide 7.1.1 F1 Evaluation Platform Schematic ( DS41401A-page 32 © 2009 Microchip Technology Inc. ...

Page 33

... F1 Evaluation Platform Schematic ( © 2009 Microchip Technology Inc. Schematics DS41401A-page 33 ...

Page 34

... F1 Evaluation Platform User’s Guide 7.1.3 F1 Evaluation Platform Schematic ( DS41401A-page 34 © 2009 Microchip Technology Inc. ...

Page 35

... BLDC Add-On Schematic ( © 2009 Microchip Technology Inc. Schematics DS41401A-page 35 ...

Page 36

... F1 Evaluation Platform User’s Guide 7.1.5 BLDC Add-On Schematic ( DS41401A-page 36 © 2009 Microchip Technology Inc. ...

Page 37

... BLDC Add-On Schematic ( © 2009 Microchip Technology Inc. Schematics DS41401A-page 37 ...

Page 38

... F1 Evaluation Platform User’s Guide NOTES: DS41401A-page 38 © 2009 Microchip Technology Inc. ...

Page 39

... F1 Evaluation Platform Schematic ........................... 32 H Hardware Features .................................................. 11 16-bit timers ...................................................... 11 32-MHz internal oscillator ................................. 11 ECCP ................................................................ 11 EEPROM .......................................................... 11 EUSART ........................................................... 11 LCD controller ................................................... 11 RAM .................................................................. 11 Hardware Libraries & Drivers ................................... 21 © 2009 Microchip Technology Inc. F1 EVALUATION PLATFORM USER’S GUIDE Index I ICSP pins ................................................................. 17 Internet Address......................................................... 8 L LCD Demo ............................................................... 19 LCD Display ............................................................. 15 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 DS41401A-page 40 © 2009 Microchip Technology Inc. ...

Page 41

... NOTES: © 2009 Microchip Technology Inc. F1 Evaluation Platform User’s Guide DS41401A-page 41 ...

Page 42

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords