Datasheets.org.uk - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine
  
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

AN1762 D


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet


TIL 123 - TIL 123  
diode 107 10K 521 - diode 107 10K 521  
AN1762 - AN1762  

Order this document AN1762/D
AN1762
Automatic Contrast Control Displays Using MC68HC708LN56 Microcontroller
Stellini Transportation Systems Group Design Engineering Austin, Texas
Introduction
This application note describes implement automatic contrast control (liquid crystal display) using MC68HC08LN56 microcontroller. applications where power supply voltage vary, such battery-powered systems, maintaining constant contrast display desirable. This achieved software MC68HC08LN56 using (analog-to-digital) converter conjunction with controller. This application note discusses factors such amount multiplexing, type bias, voltage levels affect contrast. This followed description system which converter board MC68HC708LN56 samples system power supply contrast control updated based result. Also included here source code implementing this system.
Freescale Semiconductor, Inc., 2004. rights reserved.
Motorola, Inc., 1998
AN1762
More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note Contrast Control
contrast characters which appear display controlled average voltage difference across segments pixels character. general, larger applied voltage causes pixels appear darker, smaller voltages cause pixels appear lighter, OFF. nature liquid crystal material, voltages applied across them will cause permanent damage. result, relative contrast characterized magnitude voltage across order pixel OFF, voltage across must below threshold voltage, VTH. voltage must above saturation voltage, VSAT. typical contrast versus voltage characteristic curve shown Figure
CONTRAST
VSAT VOLTAGE
Figure Typical Contrast Characteristic When selecting display particular application, voltages should used ensure that proper contrast achieved. voltage controller should greater than VSAT glass. voltage should less than glass.
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note MC68HC708LN56 Microcontroller
MC68HC708LN56 Microcontroller
MC68HC708LN56 onboard controller/driver module which capable directly driving matrix display with backplanes frontplanes. Typically, this display composed four rows eight characters rows characters. necessary voltage levels waveforms generated onboard charge pump. voltage levels produced what called bias. levels adjustable scale fraction voltage, VLL7, described later. Integrating controller/driver with microcontroller reduces system cost user. waveforms have 1/32 duty, which means they multiplexed time intervals. Figure shows waveforms backplane frontplane with alternating data. voltage across pixel difference backplane frontplane waveform, shown waveform BP0-FPX.
AN1762
More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
1/32 DUTY FRAME VLL7 VLL6 VLL1 VLL7 VLL5 VLL2 DATA 10101 1010101
VLL7 VLL5
BP0-FPX
VLL1 -VLL1
-VLL5 -VLL7
Figure Waveforms Example Data 01.10101 voltage across pixel calculated using this equation.
Since data during time period when active, waveform BP0-FPX waveform. voltage during active time VLL7 only VLL1 remainder time.
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note MC68HC708LN56 Microcontroller
voltage this waveform calculated with this equation: RMSON VLL7 VLL7 VLL7
Figure shows same frontplane waveform along with backplane (BP1) their difference waveform BP1-FPX. period when active, data and, therefore, waveform BP1-FPX waveform. During active time, voltage swings between VLL5 between VLL1 when inactive. This gives voltage
RMSON
VLL7 VLL7 VLL7
actual values voltages depend voltage, VLL7. typical value VLL7 volts which case VRMSON =1.58 volts VRMSOFF 1.32 volts.
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
1/32 DUTY FRAME VLL7 VLL6 VLL1 VLL7 VLL5 VLL2 DATA 10101 1010101
VLL7 VLL5
BP1-FPX
VLL1 -VLL1
-VLL5 -VLL7
Figure Waveforms Example Data 01.10101 MC68HC708LN56 allows user ability value VLL7 and, therefore, move operating points VRMSON VRMSOFF. desired value VLL7, contrast control register should value resulting from this equation: VLL7 LCDCCR 47.143 SUPV 94.286 SUPV value depending range which operating, SUPV 3-volt operation, SUPV 5-volt operation. This LCDCCR register value written time during operation, waveforms will scale proportion value VLL7.
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Sample Application
Sample Application
typical battery application, power supply gradually decays over time. Since voltage dependent VDD, maintain constant contrast display, contrast register must updated with value that will result same voltage times. This done using converter periodically measure then determine correct setting contrast control register. doing this continuously software, automatic contrast control achieved. this sample application, contrast display maintained constant value battery-powered supply ranging from volts down volts. Manual contrast control also implemented down contrast buttons which allows user manually increment decrement contrast setting. schematic diagram circuit this application shown Figure used input channel A/D. MAXIM 6125 voltage reference chip generates VREFH A/D. This reference 2.5-volt must greater than maximum input voltage. simple resistor divider used divide half, which allows maximum input voltage volts (max volts). display used this circuit custom display with backplanes frontplanes. Displays this size ordered readily from many manufacturers optimized user's specifications. software uses timebase module create periodic interrupt every interval time. this time, samples VDD. offset generated lookup table contrast control values from value. contrast control register written with this value which will keep VLL7 original value. buttons used manual contrast control connected PA1/KBD1 PA0/KBD0 when pushed, generate keyboard interrupt. These keyboard interrupts will either increase decrease conversion factor lookup table constant amount. this application, manual adjustments were designed change VLL7 ~100-mv steps. automatic contrast control adjustments then relative latest manual adjustment.
AN1762 More Information This Product, www.freescale.com
AN1762
0.1UF 0.1UF VCP1 VCP2 VCP3 VCP4 VLL1 VLL2 VLL5 VLL6 VLL7 VLLH CPFLT 0.1UF 0.22UF 0.1UF 0.1UF 0.1UF 0.1UF 0.1UF 0.1UF PWRTERM2 4.7UF TANTALUM 0.1UF 0.1UF 0.1UF
APPLICATION POWER
VDD1 VDD2 VDD3
BATT_SOCKET
FFFFFFFFFFFFFFFFFFFFFFFFF PPPPPPPPPPPPPPPPPPPPPPPPP 2222211111111119876543210 432109876543210
FFFFFFFFFFFFFFF PPPPPPPPPPPPPPPFFFFFFFFFF 4321098765432109876543210
FP[0.39] BP[0.31]
FP10 FP11 FP12 FP13 FP14 FP15 FP16 FP17 FP18 FP19 FP20 FP21 FP22 FP23 FP24 FP25 FP26 FP27 FP28 FP29 FP30 FP31 FP32 FP33 FP34 FP35 FP36 FP37 FP38 FP39 SW_MOMENTARY +CONTRAST SW_MOMENTARY -CONTRAST PA0/KBD0 PA1/KBD1 PA2/KBD2 PA3/KBD3 PA4/KBD4 PA5/KBD5 PA6/KBD6 PA7/KBD7
FP25 FP26 FP27 FP28 FP29 FP30 FP31 FP32 FP33 FP34 FP35 FP36 FP37 FP38 FP39 BP31 BP30 BP29 BP28 BP27 BP26 BP25 BP31 BP30 BP29 BP28 BP27 BP26 BP25
FP25 FP26 FP27 FP28 FP29 FP30 FP31 FP32 FP33 FP34 FP35 FP36 FP37 FP38 FP39
FP10 FP11 FP12 FP13 FP14 FP15 FP16 FP17 FP18 FP19 FP20 FP21 FP22 FP23 FP24 FP25 FP26 FP27 FP28 FP29 FP30 FP31 FP32 FP33 FP34 FP35 FP36 FP37 FP38 FP39
LCD_DISPLAY PPPPPPPPPPPPPPPPPPPPPPPPP 0123456789111111111122222 012345678901234
BBBBBBBBBBBBBBBBBBBBBBBBB PPPPPPPPPPPPPPPPPPPPPPPPP 0123456789111111111122222 012345678901234
PB0/AD0 PB1/AD1 PB2/AD2 PB3/AD3
330K
OSC1 OSC2 VDDA AVDD
32.768 0.47UF 20PF 0.1UF 0.1UF Title MC68HC708LN56 APPLICATION Size Document Number Date: June 1998 Sheet DESIGN ENGINEERING 20PF
IRQ2* IRQ1* RST* IRQ2 IRQ1 MAX6125 SW_MOMENTARY 0.1UF
BP10 BP11 BP12 BP13 BP14 BP15 BP16 BP17 BP18 BP19 BP20 BP21 BP22 BP23 BP24 BP25 BP26 BP27 BP28 BP29 BP30 BP31 BP10 BP11 BP12 BP13 BP14 BP15 BP16 BP17 BP18 BP19 BP20 BP21 BP22 BP23 BP24 BP25 BP26 BP27 BP28 BP29 BP30 BP31
Freescale Semiconductor, Inc.
More Information This Product, www.freescale.com
CGND VSS1 VSS2 VSS3 VSSA VREFH AVSSA MC68HC708LN56
Application Note Sample Application
Figure Schematic Diagram Sample Application
Freescale Semiconductor, Inc.
Application Note Sample Application
START
INITIALIZE 4-MHZ
LOAD WITH DATA DISPLAY MESSAGE
INITIALIZE TIMEBASE MODULE
INITIALIZE KEYBOARD MODULE
LOOP
Figure Main Program Flow
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
ANOTHER
DELAYED DESIRED SECONDS?
CALL SAMPLE
INCREMENT SECOND COUNTER
START TIMEBASE AGAIN
RETURN
Figure Timebase Interrupt Routine
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Sample Application
SAMPLE
CONVERSION
SUBTRACT CONVERSION FACTOR LOOKUP TABLE OFFSET
RESULT BELOW BOTTOM LOOKUP TABLE?
LOAD BOTTOM LOOKUP TABLE VALUE
LOAD LOOKUP TABLE VALUE
RESULT ABOVE LOOKUP TABLE?
LOAD CONTRAST CONTROL REGISTER WITH VALUE FROM LOOKUP TABLE
RESET COUNT SECONDS TIMEBASE
RETURN
Figure Sample Subroutine
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
KEYBOARD
INTERRUPT FROM PA0? DOWN CONTRAST
REDUCE LOOKUP TABLE CONVERSION CONSTANT
INTERRUPT FROM PTA0? CONTRAST
INCREASE LOOKUP TABLE CONVERSION CONSTANT
CALL SAMPLE
RETURN
Figure Keyboard Interrupt Routine
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Code Listings
Code Listings
ADCLCD.ASM Stellini, 06/06/98 Applications Engineering This software demonstrates automatic contrast control display using MC68HC708LN56 microcontroller. Memory Equates RAMSPACE $0050 ROMSPACE $2000 LCDRAM1 $0E00 LCDRAM2 $0E80 LCDRAM3 $0F00 LCDRAM4 $0F80 Register Equates Registers $0000 DDRA $0004 Registers LCDFL0 $0033 LCDFL1 $0034 LCDFL2 $0035 LCDFL3 $0036 LCDFL4 $0037 LCDCR $0038 LCDCCR $0039 LCDDIV $003A LCDFR $003B Registers ADSCR $0040 $0041 ADCLKR $0042 Registers PCTL $004A PBWC $004B PMSH $004C PMSL $004D
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
PVRS PRDS Time Base Registers TBCR Keyboard Registers KBSCR KBIER Register Interrupt Vectors RESET $004E $004F $003F $001A $001B $001F $FFDA $FFDC $FFD8 $FFFE
Constant Equates ADJUST !153 ;initial lookup conv factor NUMSECS ;number between samples Variables RAMSPACE TBMCNT ADCTOCCR Start Program Code ROMSPACE #$01,MOR ;Disable BEGIN CLRX CLRH #ADJUST,ADCTOCCR
;store conversion factor variable
Initialize Program from 32.768KHz crystal #$01,PCTL #$80,PBWC #$01,PMSH #$E8,PMSL #$D0,PVRS #$01,PRDS #$21,PCTL BRCLR 6,PBWC,* #$31,PCTL
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Code Listings
Initialize loading each bank with part message. LOOP1 LCDBANK1,X LCDRAM1,X INCX LOOP1 CLRX LOOP2 INCX CLRX INCX CLRX INCX LCDBANK2,X LCDRAM2,X LOOP2
LOOP3
LCDBANK3,X LCDRAM3,X LOOP3
LOOP4
LCDBANK4,X LCDRAM4,X LOOP4 #$01,LCDDIV #$04,LCDFR #$17,LCDCCR #$80,LCDCR 32KHz ;for frame rate ;starting value ;turn
Initialize Time Base Module ;clear interrupts #$4A,TBCR ;cgmxclk 32768 ;start #!01,TBMCNT ;initialize count Initialize Keyboard Module #$02,KBSCR ;mask interrupts #$03,KBIER ;enable interrupts bits #$06,KBSCR ;acknowledge false interrupts #$00,KBSCR ;unmask interrupts, edge sens AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
Main Loop ;wait here timer interrupt Time Base Interrupt Routine ANOTHERSEC TBMCNT ;load count #NUMSECS ;have delayed enough seconds? INCREMENT ;don't take sample ADCSAMPLE take sample RETURN INCREMENT TBMCNT ;increment second counter RETURN #$4A,TBCR ;ack start time base again ;delay some more Take Sample Update ADCSAMPLE #$50,ADCLKR ;use (1MHz) #$01,ADSCR ;PTB1 input WAIT BRCLR 7,ADSCR,WAIT ;stay here conversion done CONVDONE ;load accum with value ADCTOCCR ;convert offset from table BOTTOM ;went below zero #!56 ;check over ;went above CORRECTED ;still within valid range BOTTOM #!00 ;don't past bottom CORRECTED ;return #!56 ;don't past CORRECTED ;put index Table,X ;get value from lookup table LCDCCR ;put table value #!01,TBMCNT ;start count over ;return Keyboard Interrupt Routine KEYBOARD #$00,DDRA ;make inputs read BRCLR 0,PTA,DOWN ;down contrast button pushed BRCLR 1,PTA,UP contrast button pushed DOWN ADCTOCCR ;load conversion constant #!03 ;subtract from constant KEYDONE ;return ADCTOCCR ;load conversion constant #!03 ;add constant KEYDONE ADCTOCCR ;write value back variable AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Code Listings
ADCSAMPLE
update LCDCCR value ;return
Lookup table contrast control register values. Table AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
Data writing display say: Freescale PRESENTS HC08 CHINOOK HC08 (backwards) LCDBANK1 CHINOOK LCDBANK2 (backwards) (forwards)
FREESCALE LCDBANK3
(forward) RESET ROMSPACE ANOTHERSEC KEYBOARD beginning reset ;time base interrupt routine ;keyboard interrupt routine
PRESENTS LCDBANK4
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc.
Application Note Code Listings
AN1762 More Information This Product, www.freescale.com
Freescale Semiconductor, Inc. Application Note
Reach
Home Page: www.freescale.com E-mail: support@freescale.com USA/Europe Locations Listed: Freescale Semiconductor Technical Information Center, CH370 1300 Alma School Road Chandler, Arizona 85224 +1-800-521-6274 +1-480-768-2130 support@freescale.com Europe, Middle East, Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 81829 Muenchen, Germany 1296 (English) 52200080 (English) 92103 (German) (French) support@freescale.com Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064 Japan 0120 191014 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center King Street Industrial Estate N.T., Hong Kong +800 2666 8080 support.asia@freescale.com Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. 5405 Denver, Colorado 80217 1-800-441-2447 303-675-2140 Fax: 303-675-2150
Information this document provided solely enable system software implementers Freescale Semiconductor products. There express implied copyright licenses granted hereunder design fabricate integrated circuits integrated circuits based information this document. Freescale Semiconductor reserves right make changes without further notice products herein. Freescale Semiconductor makes warranty, representation guarantee regarding suitability products particular purpose, does Freescale Semiconductor assume liability arising application product circuit, specifically disclaims liability, including without limitation consequential incidental damages. "Typical" parameters which provided Freescale Semiconductor data sheets and/or specifications vary different applications actual performance vary over time. operating parameters, including "Typicals" must validated each customer application customer's technical experts. Freescale Semiconductor does convey license under patent rights rights others. Freescale Semiconductor products designed, intended, authorized components systems intended surgical implant into body, other applications intended support sustain life, other application which failure Freescale Semiconductor product could create situation where personal injury death occur. Should Buyer purchase Freescale Semiconductor products such unintended unauthorized application, Buyer shall indemnify hold Freescale Semiconductor officers, employees, subsidiaries, affiliates, distributors harmless against claims, costs, damages, expenses, reasonable attorney fees arising directly indirectly, claim personal injury death associated with such unintended unauthorized use, even such claim alleges that Freescale Semiconductor negligent regarding design manufacture part.
More Information This Product, www.freescale.com

Other recent searches


X9241 - X9241   X9241 Datasheet
PD101SC0SS - PD101SC0SS   PD101SC0SS Datasheet
MA2C178 - MA2C178   MA2C178 Datasheet
MA2C179 - MA2C179   MA2C179 Datasheet
CSS-514Y - CSS-514Y   CSS-514Y Datasheet
515Y - 515Y   515Y Datasheet
BLS101PBC-12V-P - BLS101PBC-12V-P   BLS101PBC-12V-P Datasheet
2SK2171 - 2SK2171   2SK2171 Datasheet
2SD1148 - 2SD1148   2SD1148 Datasheet
2SC5933 - 2SC5933   2SC5933 Datasheet

 

Privacy Policy | Disclaimer
© 2013 Datasheets.org.uk