Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
516
mikoC PRO for PIC32
MikroElektronika
Example
// Port Expander module connections
sbit  SPExpanderRST at LATF0_bit;
sbit  SPExpanderCS  at LATF1_bit;
sbit  SPExpanderRST_Direction at TRISF0_bit;
sbit  SPExpanderCS_Direction  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
void SPI_T6963C_writeData(unsigned char data_);
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
void SPI_T6963C_writeCommand(unsigned char data_);
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.