Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
549
Example
‘ Port Expander module connections
dim SPExpanderRST as sbit at LATF0_bit
    SPExpanderCS  as sbit at LATF1_bit
    SPExpanderRST_Direction as sbit at TRISF0_bit
    SPExpanderCS_Direction  as sbit at TRISF1_bit
‘ End Port Expander module connections
... 
‘ Initialize SPI module
SPI1_Init()
SPI_T6963C_Config(240, 64, 8, 0, 0, 1, 3, 4)
Notes
None.
SPI_T6963C_writeData
SPI_T6963C_writeCommand
Prototype
sub procedure SPI_T6963C_writeData(dim data_ as 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_Config routine.
Example
SPI_T6963C_writeData(data_)
Notes
None.
Prototype
sub procedure SP
I_T6963C_writeCommand(dim data_ as 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_Config routine.
Example
SPI_T6963C_writeCommand(SPI_T6963C_CURSOR_POINTER_SET)
Notes
None.