DV164132 Microchip Technology, DV164132 Datasheet - Page 24
![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
F1 Evaluation Platform User’s Guide
5.7
DS41401A-page 24
USING THE LCD DRIVER
FIGURE 5-4:
5.6.2.5
The i2c_handler function must be called for each I
function can be placed into the Interrupt Service Routine for your application or, you
can simply poll it often. If the i2c_write_block or i2c_read_block functions are
used when the driver is configured for polling, then this function will repeatedly be
called until the transaction completes.
FIGURE 5-5:
The supplied LCD driver configures the LCD module for the I/O pins used by the F1
Evaluation Platform. Icon definitions are provided to simplify the software. A BCD to
7-segment display mapping function is also provided to further simplify control of the
LCD glass. For more information concerning the LCD peripheral, please consult the
LCD chapter in the PIC16LF1937 data sheet (DS41364).
5.7.1
5.7.1.1
To simplify BCD to the 7-segment display mapping, a BCD segment data type has been
provided. This data type is simply four 4-bit fields representing digits 0, 1, 2, and 3.
FIGURE 5-6:
Simply place the number you want displayed in each digit position and call
lcd_display_digits. 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.
Send_one_byte()
{
}
Interrupt_service_routine()
{
}
typedef union
{
} BCD_TYPE;
UINT16
struct
{
};
i2c_handler
LCD Data Structures
BCD_TYPE
unsigned char data;
i2c_write_block(ADDRESS, 1, &data, i2c_200K);
i2c_handler();
unsigned
unsigned
unsigned
unsigned
val;
digit0 : 4;
digit1 : 4;
digit2 : 4;
digit3 : 4;
2
C state to be handled. This
© 2009 Microchip Technology Inc.