15 at*e2spi serial peripheral interface, 15 at*e2spi, Serial peripheral interface – Sony Ericsson GM47 User Manual
Page 205

12. INTERFACE
205
LZT 123 7263 R1C
The specified rate takes effect following the issuance of any result
code(s) associated with the current command line.
12.15 AT*E2SPI
Serial Peripheral Interface
This command allows the user to send data via an SPI bus. The SPI bus
is made up from the IO pins (IO1 = Clock, IO2 = Data In, IO3 = Data
Out, and O6/ RI = Sync (optional)).
The bus works with the GM47 being the SPI master. The clock is
generated by the GM47, and on each clock cycle, data is both
transmitted on the Data Out pin, and received on the Data in pin. The
Sync pin (optional) can be used as a chipselect pin for latching the data
after a number of bytes have been sent. The initial state of the Sync pin
can be set, so it is toggled from that state.
Once the SPI bus is enabled, the IOs that are used can not be used for
any other purpose until the SPI is disabled. This means the AT*E2IO
command cannot modify these pins, and if the Sync pin is activated, RI
will not be output.
Three operations can be made on the SPI bus:
Description
Discrete
integer value
The
second at which the DTE-DCE interface should operate,
e.g. “19200” or “115200”. The rates supported by a
particular DCE are manufacturer specific.
The following rates, are supported;
1200
2400
4800
9600
19200
38400
57600
115200
230400
460800
Description
Command
Possible Responses
Set Serial Peripheral
interface
AT*E2SPI=
[,
[,
[,
• ERROR
• OK
• *E2SPI:
OK
Show the current
setting
AT*E2SPI?
• *E2SPI:
OK
Shows if the
command is
supported
AT*E2SPI=?
• *E2SPI: (list of supported
supported
• ERROR