Datasheet

Table Of Contents
Getting Started
© 2009 Microchip Technology Inc. DS51647C-page 11
FIGURE 2-2: PICkit™ SERIAL ANALYZER MAIN WINDOW
2.7 RUNNING THE 28-PIN DEMO I
2
C™ DEMONSTRATION PROGRAM
Select the 28-pin demo I
2
C demonstration by clicking on Demo Boards > 28 Pin Demo
I
2
C from the menu bar. The 28-Pin Demo I
2
C Demonstration window will be displayed
as shown in Figure 2-3.
The Real-Time Clock (RTC) will be displayed first. Note the tabs to select between the
RTC, EEPROM and ADC demonstrations. The demonstration program will constantly
poll the 28-pin demo board and display the contents of the Real-Time Clock and the
ADC.
2.7.1 Real-Time Clock (RTC)
Clicking on the Real-Time Clock tab will display calendar and clock contents of the
real-time clock function running on the 28-pin demo board. The 28-pin demo board has
been programmed to emulate a stand-alone serial I
2
C clock-calendar device. The I
2
C
commands are very similar to the commands used in these devices. The demonstra-
tion program will constantly poll the 28-pin demo board and display the contents of the
real-time clock.
The Real-Time Clock window displays calendar and clock controls. Notice the date and
time when the 28-pin demo board has first been powered on. The date and time start
at January 1, 2000 at midnight (12:00 AM).
The user can manually enter calendar and clock values and send the values to the
real-time clock by clicking on the Update RTC button. Or the user can click on the Set
RTC to System Time button to set the Real-Time Clock to the date and time of the
computer.