GM47/GM48 INTEGRATOR’S MANUAL

SPI Enable (<op> = 255)

This command is entered to set up the SPI bus, and to enable the relevant signals. The byte format is defined here (the number of bytes output between toggling the Sync pin high and low). The Initial state of the Sync pin is also defined. If the byte format is set to zero (0), then the Sync pin is not used, and is not controlled by the SPI.

Example:

AT*E2SPI=255,2,1<CR>

OK

This command sets the SPI bus active, and the Sync pin is made toggle every 2 bytes of output data. The initial state of the Sync pin is HIGH.

SPI Send/Receive (<op> = 1-32)

This command sends from 1 - 32 bytes of data across the enabled SPI bus. Data is sent MSB first, from the first byte to the last byte.

Example:

AT*E2SPI=8,170,170,85,85,170,170,85,85<CR>

OK

This command sends 8 bytes (170,170,85,85,170,170,85,85) across the SPI bus. Bytes are in decimal format.

SPI Disable (<op>= 0)

This command is sent to disable the SPI functionality, and restore use of IO pins to other applications. The SPI bus must be disabled before being enabled with a new set of parameters.

AT*E2SPI=0

OK

<op>

Description

 

 

0

Disable SPI bus

 

 

1-32

Send/ receive 1-32 bytes

 

 

255

Enable SPI bus

 

 

 

 

<byteformat>

Description

 

 

0

No Sync Pin function

 

 

1-32

Sync is toggled every 1-32 bytes sent/received

 

 

206

LZT 123 7263 R1C

Page 206
Image 206
Sony Ericsson GM48, GM47 manual AT*E2SPI=0