|
use n23s17-cs0.py test 32 GPIO output
new test program 23s17-2port-v3.py demo our new output test program 23s17-2port-s-v103.py display all 32 GPIO status 1. JP23 GA0 ~ GA7 U13 Port A JP24 AA0 ~ AA7 U13 Port B 2. JP25 BA0 ~ BA7 U14 Port A JP26 GB0 ~ BG7 U14 Port B 3 R61,R62,R63 ( for U13 Address select A0,A1,A2 ) 4. R64,R65,R66 ( for U14 Address select A0,A1,A2) 5. U13 (21) 23017 -1 Port A,B 6. U14 (22) 23017-2 Port A,B 7. pin out 2X10 , |
Bank A(1-10) GPIO (0,1,2,3,4,5,6,7,GND, INTA) Bank B (1-10) GPIO (0,1,2,3,4,5,6,7,GND, INTB) A0, A1, A2 address * right side GND low - 0 * left side Vcc High - 1 Support our Pi_Scratch software
U1 to U2 spi 23s17 address 40,42
40 --> 1 42 --> 2 44 --> 3 46 --> 4
48 --> 5 4a --> 6 4c --> 7 4e --> 8
Command "sp"+ "address(1-8)" + "a" +"bit(1 to 8)" for Port A
Command "sp"+ "address(1-8)" + "b" +"bit(1 to 8)" for Port B
Command "bits"+ "address(1-8)" + "a" +"bit(8 to 1)" for Port A
Command "bits"+ "address(1-8)" + "b" +"bit(8 to 1)" for Port B
sp2b7 --> spi address 2 Port B bit 7 ON/OFF
sp3b4 --> spi address 3 Port B bit 4 ON/OFF
bits2b01010101 --> address 2 port B from bit 8 to 11
output --> 01010101
bits2a01010101 --> address 2 port A from bit 8 to 1
output --> 01010101
bits2aoff --> address 2 Port A all OFF/clear
bits2aclr --> address 2 Port A all OFF/clear
|