
PICkit? Serial Analyzer User’s Guide
TABLE B-1:
MODULE
adc.asm
device.asm
ee_util.asm
exec.asm
FIRMWARE MODULES
DESCRIPTION
ADC service – measuring channel AN0, connected to potentiometer
RP1, and post results to register in shared memory
Basic device (microcontroller) configuration
EEPROM Read/Write routines
“Executive” feature set – provides functionality for test and demon-
stration of PICkit? Serial Analyzer and 28-Pin Demo Board
i2c_slave_pksd.asm
led.asm
main.asm
pksi.asm
rtc.asm
timer0.asm
timer1.asm
I 2 C? service for three slave devices:
0xA2: Real-Time Clock (RTC)
0xA8: EEPROM
0xAA: Executive (EXEC)
LED management, set/reset LEDs per state register
Initialization, Idle loop and Interrupt Service Routine context
management
Monitor PICkit Serial Analyzer interface I/O pins – post results to state
register
I 2 C? device: real-time clock emulation maintains 16 locations for
register-based I/O
Utilizes TMR0 as a source for multiple “soft” timers
Utilizes TMR1 with external 32 kHz crystal for RTC 1-second ‘ticks’
B.5
I 2 C COMMUNICATIONS
B.5.1
Overview
The 28-Pin Demo Board I 2 C? Demo responds to three I 2 C slave addresses:
TABLE B-2:
DEVICE SLAVE ADDRESSES
ADDR
0xA2
0xA8
0xAA
NAME
RTC
EEPROM
EXEC
DESCRIPTION
Device emulation: Real-Time Clock
Device emulation: EEPROM
Supervisory features
All devices (slave addresses) respond to the I 2 C protocols described below. Each slave
device supports a fixed number of word addresses (see section B.6 Slave Devices
below). The word address is automatically incremented during a transaction for
sequential access of the device registers. If the word address is incremented beyond
the end of the supported address range, the address will “wrap”.
B.5.2
Protocols
Figure B-1 shows the Master and Slave legend used for Figures B-2 through
B-4. FIGURE B-1:
MASTER/SLAVE DEVICE LEGEND
Master
Slave
Write Byte(s) – This transaction is used to write one or more bytes. The maximum
number of bytes is slave-dependant.
DS51647A-page 108
? 2007 Microchip Technology Inc.