s6b0107b Crystalfontz America, Inc.,, s6b0107b Datasheet - Page 26

no-image

s6b0107b

Manufacturer Part Number
s6b0107b
Description
Graphic Lcd Module Specifications
Manufacturer
Crystalfontz America, Inc.,
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
s6b0107b01-Q0
Manufacturer:
SIEMENS
Quantity:
3
Part Number:
s6b0107b01-QO
Quantity:
223
//============================================================================
// Takes about 5.08ms (201.7KB/S) reading busy flag
void UpdateLCD(void)
DDRA=0x00;
//Enable the selected controller's read data onto the port
PORTC|=PORTC7_LCD_E;
//The data from the LCD is not valid for 320nS
_delay_cycles(4); //375nS
//Wait for the busy bit to drop
while(PINA&0x80);
//Terminate the read
PORTC&=~PORTC7_LCD_E;
//Tell the LCD that we are writing to it.
//(Must happen 140nS before the RISING edge of E.)
PORTC&=~PORTC6_LCD_RW;
//Aim at the data register.
//(Must happen 140nS before the RISING edge of E.)
PORTC|=PORTC1_LCD_DI;
//stretch LOW E pulse width above the minimum of 450nS
_delay_cycles(2);
//Strobe the E pin.
PORTC|=PORTC7_LCD_E;
//Write the data to the output latches of port A
//(Must happen 200nS before the FALLING edge of E.)
PORTA=data;
//Go back to port A as an output
DDRA=0xFF;
//stretch HIGH E pulse width above the minimum of 450nS
_delay_cycles(3);
//Terminate the write
PORTC&=~PORTC7_LCD_E;
}
{
register ubyte
register ubyte
register ubyte
register ubyte
//Initialize our source data pointers.
left_data=&display[0][0];
right_data=&display[0][64];
//Make sure we are not in a write cycle
PORTC&=~PORTC7_LCD_E;
//Make sure the LCD thinks we are writing
PORTC&=~PORTC6_LCD_RW;
for(page_address=0;page_address<=7;page_address++)
*left_data;
*right_data;
page_address;
column_address;
{
Crystalfontz America, Inc.
www.crystalfontz.com
December 2006
//312.5nS
//250nS
//62.5nS
//125nS
//125nS
//125nS
CFAG12864B-WGH-V Graphic LCD Module Data Sheet
Hardware vA / Data Sheet v1.0
Page 26

Related parts for s6b0107b