User manual

Getting Started
© 2007 Microchip Technology Inc. DS51647A-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 demon-
stration 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.