beautypg.com

Lcd usage, Lcd initialization, Atmega169v/l – Rainbow Electronics Atmega169L User Manual

Page 215

background image

215

ATmega169V/L

2514A–AVR–08/02

LCD Usage

LCD Initialization

Prior to enabling the LCD some initialization must be preformed. The initialization pro-
cess normally consists of setting the frame rate, duty, bias and port mask. LCD contrast
is set initially, but can also be adjusted during operation.

Consider the following LCD as an example:

Figure 103.

Display:

TN Positive, Reflective

Number of common terminals:

3

Number of segment terminals:

21

Bias system:

1/3 Bias

Drive system:

1/3 Duty

Operating voltage:

3.3 ± 0.9 V

1b

1c

2a

2b

2c

2e

2f

2d

2g

COM3

COM0

COM1

COM2

SEG0

SEG1

SEG2

1b,1c

2c

2f

2a

2d

2g

2b

2e

..

COM

2

SEG0

SEG1

SEG2

ATmega169

COM

1

COM

0

Connection table

LCD

51

50

49

48

47

46

45