User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
571
Example
‘ T6963C module connections
dim T6963C_dataPort as byte at PORTB ‘ DATA port
dim T6963C_ctrlwr as sbit at LATF2_bit ‘ WR write signal
dim T6963C_ctrlrd as sbit at LATF1_bit ‘ RD read signal
dim T6963C_ctrlcd as sbit at LATF0_bit ‘ CD command/data signal
dim T6963C_ctrlrst as sbit at LATF4_bit ‘ RST reset signal
dim T6963C_ctrlwr_Direction as sbit at TRISF2_bit WR write signal
direction
dim T6963C_ctrlrd_Direction as sbit at TRISF1_bit RD read signal
direction
dim T6963C_ctrlcd_Direction as sbit at TRISF0_bit CD command/data
signal direction
dim T6963C_ctrlrst_Direction as sbit at TRISF4_bit RST reset signal
direction
‘ Signals not used by library, they are set in main function
dim T6963C_ctrlce as sbit at LATF3_bit ‘ CE signal
dim T6963C_ctrlfs as sbit at LATF6_bit ‘ FS signal
dim T6963C_ctrlmd as sbit at LATF5_bit ‘ MD signal
dim T6963C_ctrlce_Direction as sbit at TRISF3_bit ‘ CE signal direction
dim T6963C_ctrlfs_Direction as sbit at TRISF6_bit ‘ FS signal direction
dim T6963C_ctrlmd_Direction as sbit at TRISF5_bit ‘ MD signal direction
‘ End T6963C module connections
...
init display for 240 pixel width, 128 pixel height and 8 bits character
width
T6963C_init(240, 128, 8)
Notes None.
T6963C_writeData
Prototype
sub procedure T6963C_writeData(dim mydata as byte)
Description Writes data to T6963C controller.
Parameters - mydata: data to be written
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See the T6963C_init routine.
Example
T6963C_writeData(AddrL)
Notes None.