;Read ID of Expander chip
s76 2E s77 x ; 0x20 - CY8C9520
             ; 0x40 - CY8C9540
             ; 0x60 - CY8C9560

;Example 7-segment decimal point display
s76 18 00 FF 00 00 00 ; Configure Port0
s76 20 FF             ; Set Open Drain Low drive mode

s76 08 C0 ; Show "0"              0  
s76 08 F9 ; Show "1"           ????????
s76 08 A4 ; Show "2"           ?      ? 
s76 08 B0 ; Show "3"         5 ?  6   ? 1
s76 08 99 ; Show "4"           ????????
s76 08 92 ; Show "5"           ?      ?
s76 08 82 ; Show "6"         4 ?      ? 2 
s76 08 F8 ; Show "7"           ???????? 
s76 08 80 ; Show "8"              3     ? 7
s76 08 90 ; Show "9" 
s76 08 88 ; Show "A"
s76 08 83 ; Show "B"
s76 08 C6 ; Show "C"
s76 08 A1 ; Show "D"
s76 08 86 ; Show "E"
s76 08 8E ; Show "F"
s76 08 7F ; Show "DOT"
s76 08 BF ; Show "DASH"
s76 08 FF ; Show "SPACE"

; Blinking LED - 1Hz blink rate on GPort0_Bit3_PWM1
s76 28 00 04 25 12 7F ; Configure PWM0
s76 28 01 05 14 0A    ; Configure PWM1
s76 18 00             ; Selecte Port0
s76 1C 00             ; Direction - all pins are Output
s76 1A 08             ; Connect PWM1 to Pin
s76 20 08             ; Set Open Drain Low drive mode of pin
s76 08 08             ; Make sure GPort0_Bit3 was set to "1"

;EEPROM Example
s76 2D 43 4D 53 02       ; Enable EEPROM
sB6 00 00 01 02 03 04    ; Write 4 bytes to address 0x0000
sB6 00 00 sB7 x x x x x  ; Read 4 bytes from address 0x0000 