ATMEGA169 ATMEL [ATMEL Corporation], ATMEGA169 Datasheet - Page 219

no-image

ATMEGA169

Manufacturer Part Number
ATMEGA169
Description
8-bit Microcontroller with 16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA169-16AI
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA169-16AI SL709
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA169-16AI SL710
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA169-16AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA169A-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA169P-15AT
Manufacturer:
PANASONIC
Quantity:
301
Part Number:
ATMEGA169P-15AT
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA169P-16AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATMEGA169PA-MU
Manufacturer:
ATMEL
Quantity:
31
Part Number:
ATMEGA169PAAU
Manufacturer:
INF
Quantity:
4 275
LCD Control and Status
Register A – LCDCRA
2514P–AVR–07/06
Note:
• Bit 7 – LCDEN: LCD Enable
Writing this bit to one enables the LCD Controller/Driver. By writing it to zero, the LCD is
turned off immediately. Turning the LCD Controller/Driver off while driving a display,
Bit
Read/Write
Initial Value
Assembly Code Example
C Code Example
LCD_disable:
Wait_1:
Wait_2:
Void LCD_disable(void);
{
while ( !(LCDCRA & (1<<LCDIF)) )
while ( !(LCDCRA & (1<<LCDIF)) )
}
; Wait until a new frame is started.
lds
sbrs r16, LCDIF
rjmp Wait_1
; Set LCD Blanking and clear interrupt flag
; by writing a logical one to the flag.
ldi
sts
; Wait until LCD Blanking is effective.
lds
sbrs r16, LCDIF
rjmp Wait_2
; Disable LCD.
ldi
sts
ret
/* Wait until a new frame is started. */
;
/* Set LCD Blanking and clear interrupt flag */
/* by writing a logical one to the flag. */
LCDCRA = (1<<LCDEN)|(1<<LCDIF)|(1<<LCDBL);
/* Wait until LCD Blanking is effective. */
;
/* Disable LCD */
LCDCRA = (0<<LCDEN);
1. See “About Code Examples” on page 6.
r16, LCDCRA
r16, (1<<LCDEN)|(1<<LCDIF)|(1<<LCDBL)
LCDCRA, r16
r16, LCDCRA
r16, (0<<LCDEN)
LCDCRA, r16
LCDEN
R/W
7
0
(1)
LCDAB
R/W
6
0
(1)
R
5
0
LCDIF
R/W
4
0
LCDIE
R/W
3
0
R
2
0
ATmega169/V
R
1
0
LCDBL
R/W
0
0
LCDCRA
219

Related parts for ATMEGA169