mikroElektronika PIC Microcontrollers PIC12 User Manual page 217

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Glcd_Init
Prototype
void Glcd_Init(unsigned char *ctrl_port, char cs1, char cs2, char
rs, char rw, char rst, char en, unsigned char *data_port);
Description
Initializes GLCD at lower byte of
cs1
be called befored using other routines of GLCD library.
Example
Glcd_Init(PORTB, PORTC, 3, 5, 7, 1, 2);
Glcd_Disable
Prototype
void Glcd_Disable(void);
Description
Routine disables the device and frees the data line for other devices. To enable the
device again, call any of the library routines; no special command is required.
Requires
GLCD needs to be initialized. See
Example
Glcd_Disable();
Glcd_Set_Side
Prototype
void Glcd_Set_Side(unsigned short x);
Description
Selects side of GLCD, left or right. Parameter
specify the left side, and values higher than 64 specify the right side. Use the functions
Glcd_Set_Side
GLCD. Then, you can use
Requires
GLCD needs to be initialized. See
Example
Glcd_Select_Side(0);
MikroElektronika: Development tools - Books - Compilers
,
,
,
,
, and
cs2
rs
rw
rst
en
,
Glcd_Set_X
Glcd_Write_Data
mikroC - C Compiler for Microchip PIC microcontrollers
with pin settings you specify. Parameters
data_port
can be pins of any available port. This function needs to
.
Glcd_Init
specifies the side: values from 0 to 63
x
, and
to specify an exact position on
Glcd_Set_Page
or
Glcd_Read_Data
.
Glcd_Init
on that location.
page
209

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents