forked from cliffordwolf/ArduLogic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi2c.al
More file actions
47 lines (41 loc) · 682 Bytes
/
i2c.al
File metadata and controls
47 lines (41 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
###
### Just record everything on each edge of D2
### enable pullup resistors on all D2-D7
###
# trigger posedge D2
# trigger negedge D2
# capture A0 A1 A2 A3 A4 A5
# capture D2 D3 D4 D5 D6 D7
# pullup D2 D3 D4 D5 D6 D7
###
### Capure data with free running trigger
###
label D2 "SCL"
label D3 "SDA"
capture D2 D3 D4 D5
trigger 19kHz
###
### Decode SPI Data
###
### SCK = D2 (on positive edge)
### CS = D3 (negated)
### MOSI = D4
### MISO = D5
###
# decode spi posedge lsb D2 !D3 D4 D5
###
### Decode I2C Data
###
### SCL = D2
### SDA = D3
###
#decode i2c D2 D3
###
### Decode JTAG Data
###
### TCK = D2
### TMS = D3
### TDI = D4
### TDO = D5
###
# decode jtag D2 D3 D4 D5