You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/index.md
+34-5Lines changed: 34 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ lang: en
10
10
11
11
# micro:bit I2C Protocol Specification
12
12
13
-
This is version 1.01 of the specification.
13
+
This is version 2.00 of the specification.
14
14
15
15
-[Glossary](#glossary)
16
16
-[Versioning](#versioning)
@@ -21,6 +21,7 @@ This is version 1.01 of the specification.
21
21
-[I2C HID Interface](#i2c-hid-interface)
22
22
-[Doc Updates](#doc-updates)
23
23
24
+
24
25
## Glossary
25
26
26
27
| Term | Definition |
@@ -237,6 +238,8 @@ Value only includes major version
237
238
| Read property disallowed | 0x36 |
238
239
| Write property disallowed | 0x37 |
239
240
| Write fail | 0x38 |
241
+
| Busy | 0x39 |
242
+
240
243
241
244
### Examples
242
245
@@ -252,19 +255,24 @@ Value only includes major version
252
255
- The main (nRF) must wait for the `COMBINED_SENSOR_INT` signal to be asserted by the secondary (KL27)
253
256
-`write_request` can be sent by both secondary and main.
254
257
- For the secondary to initiate this, it must assert the interrupt signal first and then the main must poll (i2c read) the device for data.
258
+
- I2C transactions must not overlap. Every I2C Write, must be followed by an I2C Read.
259
+
- I2C Reads can be triggered by other I2C devices activating the shared `COMBINED_SENSOR_INT` interrupt signal. In case a response is not ready by the secondary (KL27), the busy error code will be returned and the main (nRF) should re-attempt to read the response when the `COMBINED_SENSOR_INT` signal is asserted.
0 commit comments