Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_T6963C_WriteCommand
SPI_T6963C_SetPtr
SPI_T6963C_WaitReady
433
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_T6963C_WriteCommand(Ddata : 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
procedure SPI_T6963C_SetPtr(p : word; c : 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
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();