User manual

28-Pin Demo Board I
2
C™ Demonstration Firmware
© 2007 Microchip Technology Inc. DS51647A-page 111
TABLE B-4: TABLE B-4 EXECUTIVE (EXEC) WORD ADDRESSES
S
tate Controller – The Executive state controller manages background functions. The
HOST enacts a function by writing to EXEC_STATE with a valid “state entry value” (i.e.,
0x80-0x87). Writing values outside this range will cause unknown results.
TABLE B-5: EXEC STATE ENTRY VALUES
REG NAME DESCRIPTION
0x00 EXEC_STATE State of executive state controller
bit 7 == 1: force state controller to one of eight “entry
points” specified by bits[2:0]
0x01 EXEC_ADC_CH0 ADC results of CHANNEL AN0 (potentiometer RP1)
0x02 EXEC_RTC_SECS binary value representation of RTC “SECONDS”
0x03 EXEC_STATUS state of communications connector pins:
bit 0: PIN 1 (AUX1)
bit 1: PIN 4 (SDA)
bit 2: PIN 5 (SCL)
bit 3: PIN 6 (AUX2)
bits[5:4]: undefined
bit 6: operation error
bit 7: operation busy
0x04 EXEC_04 undefined (can be read/written with no operational effect)
0x05 EXEC_05 undefined (can be read/written with no operational effect)
0x06 EXEC_06 undefined (can be read/written with no operational effect)
0x07 EXEC_VERSION Firmware version number
VALUE NAME DESCRIPTION
0x80 EXEC_DISPLAY_PING_PONG display PING-PONG LED pattern:
DS1,2,3,4,3,2,1,2 ...
0x81 EXEC_TIMER1_TEST operation: timer1 test
0x82 EXEC_DISPLAY_ADC display of Most Significant 4 bits of ADC
results measuring variable resistor
0x83 EXEC_DISPLAY_RTC display of RTC SECONDS (binary) – 0-15
0x84 EXEC_DISPLAY_PKSI display of state of communications connector
pins:
LED1: PIN 1 (AUX1)
LED2: PIN 4 (SDA)
LED3: PIN 5 (SCA)
LED4: PIN 6 (AUX2)
0x85 EXEC_DISPLAY_RESET display ‘RESET’ sequence
0x86 EXEC_DISPLAY_1SEC display – blink all LEDs – 1 sec ON, 1 sec
OFF, ...
0x87 EXEC_0x87 undefined