beautypg.com

Lcd usage, Lcd initialization – Rainbow Electronics ATmega3290P_V User Manual

Page 226

background image

226

ATmega329/3290/649/6490

2552H–AVR–11/06

LCD Usage

The following section describes how to use the LCD.

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 105.

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.0 ± 0.3 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

ATmega329

COM

1

COM

0

Connection table

LCD

51

50

49

48

47

46

45