DM164130-1 Microchip Technology, DM164130-1 Datasheet - Page 24

BOARD EVAL PICKIT PIC16LF1937

DM164130-1

Manufacturer Part Number
DM164130-1
Description
BOARD EVAL PICKIT PIC16LF1937
Manufacturer
Microchip Technology
Series
PICkit™r
Type
MCUr
Datasheet

Specifications of DM164130-1

Contents
Board
Processor To Be Evaluated
PIC16LF1937
Processor Series
PICxxF1xxx
Data Bus Width
8 bit
Operating Supply Voltage
1.8 V to 3.6 V
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC16
Silicon Core Number
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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM164130-1
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM164130-10
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.

Related parts for DM164130-1