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

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
APPENDIX B: SAMPLE CODE
SOURCES FOR DRIVER LIBRARIES
Graphic LCD driver libraries may save you a lot of time and help you develop a more professional product. Two library
sources are
C++ INITIALIZATION EXAMPLE
Below is an example of an initialization sequence based on Atmel’s ATmega32.
//============================================================================
// LOW_LCD.C: Low-level lcd display routines.
// Samsung KS0107+KS0108 (S6B0107+S6B0108) LCD Controller
// Atmel ATMega32 processor @ 16MHz
// WinAVR / AVR GCC + Atmel AVR Studio
// Written by Brent A. Crosby
// Copyright 2005, Crystalfontz America, Inc. http://www.crystalfontz.com
//============================================================================
#include <avr/io.h>
#include <avr/iom32.h>
#include <string.h>
#include <avr/delay_x.h>
#include "typedefs.h"
#include "utils.h"
#include "low_lcd.h"
//============================================================================
//This is the display memory.
ubyte
//============================================================================
void write_both_lcd_control_registers(ubyte data)
display[8][128];
{
//We need to wait until both controller's busy bits are clear.
//Talk to the status (instruction) register.
//(Must happen 140nS before the RISING edge of E.)
PORTC&=~PORTC1_LCD_DI;
//Tell the LCD we are going to be reading it
//(Must happen 140nS before the RISING edge of E.)
PORTC|=PORTC6_LCD_RW;
//Talk to the left controller only
//(Must happen 140nS before the RISING edge of E.)
PORTC&=~PORTC0_LCD_CS1;
PORTD|=PORTD6_LCD_CS2;
//Make port A high-impedance
DDRA=0x00;
//Enable the selected controller's read data onto the port
PORTC|=PORTC7_LCD_E;
//The data is not valid for 320nS
_delay_cycles(4); //375nS
Crystalfontz America, Inc.
www.crystalfontz.com
December 2006
RAMTEX
and easyGUI.
//1024 bytes
CFAG12864B-WGH-V Graphic LCD Module Data Sheet
Hardware vA / Data Sheet v1.0
Page 24

Related parts for s6b0107b