DV164132 Microchip Technology, DV164132 Datasheet - Page 21
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
DV164132
Manufacturer Part Number
DV164132
Description
KIT EVAL F1 FOR PIC12F1/PIC16F1
Manufacturer
Microchip Technology
Type
MCUr
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
Company:
Part Number:
DV164132
Manufacturer:
Microchip Technology
Quantity:
135
Company:
Part Number:
DV164132
Manufacturer:
MICROCHIP
Quantity:
12 000
5.1
5.2
5.3
5.4
5.5
© 2009 Microchip Technology Inc.
INTRODUCTION
I
MCP9800 DRIVER
RTCC DRIVER
LCD DRIVER
2
C™ DRIVER
Chapter 5. Hardware Libraries and Drivers
All of the demo code uses a common set of libraries to provide I
MCP9800 and LCD services. These libraries may be useful for other applications so
they are documented here. These drivers are located at www.microchip.com/F1Eval.
The I
or by polling. The driver is configured during compilation to support polling or interrupts.
The I
polls the I
The MCP9800 driver uses the I
mcp9800_get_temp function is fully blocking, so once a request is queued, the driver
polls the I
interrupts, the mcp9800_get_temp function repeatedly calls the I2C_handler
function to process all the I
mcp9800_get_temp function simply inserts an I2C_TRANSACTION_T into the I
transaction queue and waits for the transaction to complete.
A software RTCC is managed by the supplied RTCC driver. This driver implements the
time() function required by the C compiler. Time is internally kept as seconds since
January 1, 1970. Standard C functions can be used to convert the time to the current
date. This driver has two modes. In the first mode, it expects to be called once per
second by the Timer1 interrupt. In the second mode, it expects to be called on every
LCD mode B frame. This allows the RTCC to keep accurate time even if Timer1 is being
used by some other function, such as the BLDC motor driver.
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. It is
a good starting point for the LCD driver your unique application will require.
2
2
C driver allows I
C and LCD demos configure the driver for interrupt mode. The Combined demo
2
2
C subsystem until the data is complete. If the I
C handler within the MCP9800 driver.
2
C requests to be queued and then handled either by interrupts
2
C events. If the I
F1 EVALUATION PLATFORM
2
C driver to get the current temperature. The
2
C driver is operating with interrupts, the
2
USER’S GUIDE
C driver is operating without
2
C, real-time clock,
DS41401A-page 21
2
C