User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
548
Example
// Port Expander module connections
SPExpanderRST : sbit at LATF0_bit;
SPExpanderCS : sbit at LATF1_bit;
SPExpanderRST_Direction : sbit at TRISF0_bit;
SPExpanderCS_Direction : sbit at TRISF1_bit;
// End Port Expander module connections
...
// Initialize SPI module
SPI1_Init();
SPI_T6963C_cong(240, 64, 8, 0, 0, 1, 3, 4);
Notes None.
SPI_T6963C_writeData
SPI_T6963C_writeCommand
Prototype
procedure SPI_T6963C_writeData(data_ : byte);
Description Writes data to T6963C controller via SPI interface.
Parameters - data_: data to be written
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
SPI_T6963C_writeData(data_);
Notes None.
Prototype
procedure SPI_T6963C_writeCommand(data_ : byte);
Description Writes command to T6963C controller via SPI interface.
Parameters - data_: command to be written
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
SPI_T6963C_writeCommand(SPI_T6963C_CURSOR_POINTER_SET)
Notes None.