Datasheet

program T6963C_240x128
include __Lib_T6963C_Consts
include bitmap
include bitmap2
' T6963C module connections
dim T6963C_ctrlPort as byte at PORTC ' CONTROL port
dim T6963C_dataPort as byte at PORTD ' DATA port
dim T6963C_ctrlPort_Direction as byte at DDRC ' CONTROL direc-
tion register
dim T6963C_dataPort_Direction as byte at DDRD ' DATA direc-
tion register
dim T6963C_ctrlwr as sbit at PORTC.B2 ' WR write signal
dim T6963C_ctrlrd as sbit at PORTC.B1 ' RD read signal
dim T6963C_ctrlcd as sbit at PORTC.B0 ' CD command/data signal
dim T6963C_ctrlrst as sbit at PORTC.B4 ' RST reset signal
dim T6963C_ctrlwr_Direction as sbit at DDRC.B2 ' WR write sig-
nal direction
dim T6963C_ctrlrd_Direction as sbit at DDRC.B1 ' RD read sig-
nal direction
dim T6963C_ctrlcd_Direction as sbit at DDRC.B0 ' CD
command/data signal direction
dim T6963C_ctrlrst_Direction as sbit at DDRC.B4 ' RST reset
signal direction
' Signals not used by library, they are set in main sub function
dim T6963C_ctrlce as sbit at PORTC.B3 ' CE signal
dim T6963C_ctrlfs as sbit at PORTC.B6 ' FS signal
dim T6963C_ctrlmd as sbit at PORTC.B5 ' MD signal
dim T6963C_ctrlce_Direction as sbit at DDRC.B3 ' CE signal
direction
dim T6963C_ctrlfs_Direction as sbit at DDRC.B6 ' FS signal
direction
dim T6963C_ctrlmd_Direction as sbit at DDRC.B5 ' MD signal
direction
' End T6963C module connections
dim panel as byte ' current panel
i as word ' general purpose register
curs as byte ' cursor visibility
cposx,
cposy as word ' cursor x-y position
txtcols as byte ' number of text coloms
txt, txt1 as string[29]
txt1 = " EINSTEIN WOULD HAVE LIKED mE"
txt = " GLCD LIBRARY DEMO, WELCOME !"
459
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6