|
MCP2210 Datasheet, PDF (37/82 Pages) Microchip Technology – USB-to-SPI Protocol Converter with GPIO (Master Mode) | |||
|
◁ |
MCP2210
TABLE 3-35: COMMAND 1 STRUCTURE (CONTINUED)
Byte
Index
Meaning
16
17
18
19
20
21-63
Delay Between Subsequent Data Bytes (quanta of 100 µs) â 16-bit value (low byte)
Example: If a 500 µs delay between two consecutive data bytes is required, the value will be 0x0005.
- This byte position will have a value of: 0x05
Delay Between Subsequent Data Bytes (quanta of 100 µs) â 16-bit value (high byte)
Example: If a 500 µs delay between two consecutive data bytes is required, the value will be 0x0005.
- This byte position will have a value of: 0x00
Bytes to Transfer per SPI Transaction â 16-bit value (low byte)
Example: If an SPI transaction of 1250 bytes long is required, the corresponding hex value
will be 0x04E2.
- This byte position will have a value of: 0xE2
Bytes to Transfer per SPI Transaction â 16-bit value (high byte)
Example: If an SPI transaction of 1250 bytes long is required, the corresponding hex value
will be 0x04E2.
- This byte position will have a value of: 0x04
SPI Mode
⢠0x00 â SPI mode 0
⢠0x01 â SPI mode 1
⢠0x02 â SPI mode 2
⢠0x03 â SPI mode 3
Donât care
3.2.2.1 Responses
TABLE 3-36: RESPONSE 1 STRUCTURE
Byte
Index
Meaning
0
0x40 â Echoes back the completed command for Set (VM) SPI Transfer Settings code
1
0x00 â Command Completed Successfully
2
Donât Care
3
Donât Care
4
Bit Rate (Byte 3) â 32-bit value (Byte 0, Byte 1, Byte 2, Byte 3)
Example: Bit rate = 12,000,000 bps = 00B7 1B00
- This byte position will have a value of = 0x00
5
Bit Rate (Byte 2) â 32-bit value (Byte 0, Byte 1, Byte 2, Byte 3)
Example: Bit rate = 12,000,000 bps = 00B7 1B00
- This byte position will have a value of = 0x1B
6
Bit Rate (Byte 1) â 32-bit value (Byte 0, Byte 1, Byte 2, Byte 3)
Example: Bit rate = 12,000,000 bps = 00B7 1B00
- This byte position will have a value of = 0xB7
7
Bit Rate (Byte 0) â 32-bit value (Byte 0, Byte 1, Byte 2, Byte 3)
Example: Bit rate = 12,000,000 bps = 00B7 1B00
- This byte position will have a value of = 0x00
8
Idle Chip Select Value â 16-bit value (low byte):
⢠MSB â â â
â â â LSB
CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0
9
Idle Chip Select Value â 16-bit value (high byte):
⢠MSB â
xx
âââ
xx x
â â LSB
x x CS8
ï£ 2011 Microchip Technology Inc.
DS22288A-page 37
|
▷ |