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
- Extra GPIOs `Data_Ready`, `Reset` are explained above in [3.3 Extra GPIO Signals](#33-extra-gpio-signals)
121
+
- The `SPI HD CS signal`, `Data_Ready` and `Reset` can be assigned to any GPIO pin on the host and co-processor.
122
+
- By default, the SPI bus would idle (no CS, no clock, no data) when no transaction needed from either side, co-processor or host.
123
+
-`Data_Ready` could be made optional with some code changes, but it would mean that the SPI bus would not be idled out when no transaction needed. This would be lower number of GPIOs used, but the power consumption would be higher. We are adding this feature soon.
118
124
119
125
## 4 SPI HD Protocol
120
126
@@ -139,7 +145,7 @@ When communicating with the co-processor, the master uses the Command, Address,
139
145
Hosted uses the following SPI HD commands when communicating with the co-processor:
140
146
141
147
| Command | OpCode | Purpose |
142
-
| :--- | :--- | :--- |
148
+
| :---:| :---:| :--- |
143
149
| WRBUF | 0x01 | Write to a 32-bit buffer register on the co-processor |
144
150
| RDBUF | 0x02 | Read from a 32-bit buffer register on the co-processor |
145
151
| WRDMA | 0x03 | Write data to the co-processor using DMA |
@@ -153,7 +159,7 @@ Hosted uses the following SPI HD commands when communicating with the co-process
153
159
The Commands are masked with a command mask to tell the co-processor the correct number of data lines to use during the transaction (2 or 4 data lines). Hosted uses the following masks, which are bit ORed with the command during a SPI transactions:
154
160
155
161
| Mode | Mask |
156
-
| :--- | :--- |
162
+
| :---:| :---:|
157
163
| 2-bits | 0x50 |
158
164
| 4-bits | 0xA0 |
159
165
@@ -171,7 +177,7 @@ The Command Mask determines the number of data lines used for the transaction. E
171
177
The ESP SPI Co-processor HD Mode Protocol defines a number of registers on the co-processor. These registers are used in Hosted as follows:
172
178
173
179
| Register | Name | Purpose |
174
-
| :--- | :--- | :--- |
180
+
| :---:| :---:| :--- |
175
181
| 0x00 | COPROCESSOR\_READY | Indicates if co-processor is ready |
176
182
| 0x04 | MAX\_TX\_BUF\_LEN | Maximum length of DMA data co-processor can transmit |
177
183
| 0x08 | MAX\_RX\_BUF\_LEN | Maximum length of DMA data co-processor can receive |
@@ -389,18 +395,17 @@ Before flashing the co-processor and host, ensure that you have made the correct
389
395
390
396
391
397
### Host connections
392
-
| Signal | ESP32-S3 | ESP32-P4-Function-EV-Board |
393
-
|------------|-------------|----------|
394
-
| CLK | 19 | 18 |
395
-
| D0 | 13 | 14 |
396
-
| D1 | 35 | 15 |
397
-
| D2 | 20 | 16 |
398
-
| D3 | 9 | 17 |
399
-
| CS | 47 | 19 |
400
-
| Handshake | 17 | 16 |
401
-
| Data Ready | 12 | 6 |
402
-
| Reset Out | 42 | 54 |
403
-
| GND | GND | GND |
398
+
| Signal | ESP32-S3 | ESP32-P4-Function-EV-Board | Applicable |
0 commit comments