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

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
5.9
© 2009 Microchip Technology Inc.
USING THE MCP9800 DRIVER
FIGURE 5-12:
5.8.1.2
The rtcc_handler function must be called frequently to keep the internal seconds
counter accurate.
FIGURE 5-13:
5.8.1.3
After system initialization, the seconds counter is cleared to ‘0’. The standard C
libraries equate 0 seconds to Midnight, Jan 1, 1970. That time has expired a long time
ago, so a new time in seconds can be configured with rtcc_set().
FIGURE 5-14:
5.8.1.4
The standard C libraries require the application to supply the time function. This
function returns the current time_t value or loads a supplied time_t value. The
interrupts are saved and restored to make this function safe for use with interrupt driven
code.
The MCP9800 is an I
interface to the features in the sensor.
#include <time.h>
Time_set() // set the time & date to 1 second after midnight, July 4, 2009
{
}
System_initialization()
{
}
System_interrupt_service_routine()
{
}
If(TMR1IF & TMR1IE)
{
}
rtcc_init();
struct tm time_str;
time_t unix_time;
time_str.tm_year = 2009; // the year
time_str.tm_mon = 7;
time_str.tm_mday = 4;
time_str.tm_hour = 0;
time_str.tm_min = 0;
time_str.tm_sec = 1;
time_str.tm_isdst = -1; // daylight savings time modifier
unix_time = mktime(&time_str);
rtcc_set(unix_time);
rtcc_handler
rtcc_set
time
TMR1IF = 0;
rtcc_handler();
2
C temperature sensor. The MCP9800 driver provides a simple
Hardware Libraries and Drivers
// the month
// the day of the month
// the hour (0-23)
// the minutes
// the seconds
DS41401A-page 27

Related parts for DM164130-1