Mikroelektronika MIKROE-442 데이터 시트
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
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 -
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 -
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.