Using the LCD - Using the LCD LCD Layout 14 segments /...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Using the LCD
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LCD Layout 14 segments / digit
Background image of page 2
First the initialization Initialize: ldi r16, 0xB7 ; Configure LCD sts LCDCRB, r16 ; Set bias voltage and Duty Cycle ldi r16, 0x10 sts LCDFRR, r16 ; Set frame rate ldi r16, 0x0F sts LCDCCR, r16 ; Set clock rate and drive times ldi r16, 0x80 sts LCDCRA, r16 ; Set drive waveform Sets up LCDCRB to operate with the LCD and the wiring. Sets the number of times per second the LCD segment is turned on. 300 us drive time, highest contrast Enable the LCD
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Segment Control Code SCC 16 bits indicating the segments to turn on for a LCD segment. Bits are scattered as: In the given code they are rearranged to make writing to the LCD easier. Example: a 0 is : 0X1551 Example J is: 0x0151 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0 1 M P N D L E G C J F H B K - - A K - - A J F H B L E G C M P N D 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1
Background image of page 4
Writing the SCC to the LCD The shuffle Each nibble is loaded into LCD Data Registers separated by 5 registers.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/21/2012 for the course COMP EE357 taught by Professor Vanloon during the Fall '10 term at Mohawk College.

Page1 / 12

Using the LCD - Using the LCD LCD Layout 14 segments /...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online