Mikroelektronika MIKROE-350 Data Sheet

Page of 526
SPI_T6963C_WriteCommand
SPI_T6963C_SetPtr
SPI_T6963C_WaitReady
424
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_T6963C_WriteCommand(dim Ddata as byte)
Returns
Nothing.
Description
Writes command to T6963C controller via SPI interface.
Parameters : 
Ddata:
command to be written 
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_WriteCommand(SPI_T6963C_CURSOR_POINTER_SET)
Prototype
sub procedure SPI_T6963C_SetPtr(dim as worddim as byte)
Returns
Nothing.
Description
Sets the memory pointer p for command c.
Parameters : 
p:
address where command should be written 
c:
command to be written 
Requires
SToshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_SetPtr(T6963C_grHomeAddr + start,
T6963C_ADDRESS_POINTER_SET)
Prototype
sub procedure SPI_T6963C_WaitReady()
Returns
Nothing.
Description
Pools the status byte, and loops until Toshiba Glcd module is ready.
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_WaitReady()