New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Microcontrollers Lab

by: Fredy Okuneva

Microcontrollers Lab ECE 341

Fredy Okuneva
GPA 3.81


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course


This 20 page Class Notes was uploaded by Fredy Okuneva on Thursday October 22, 2015. The Class Notes belongs to ECE 341 at University of Idaho taught by Staff in Fall. Since its upload, it has received 39 views. For similar materials see /class/227745/ece-341-university-of-idaho in ELECTRICAL AND COMPUTER ENGINEERING at University of Idaho.

Similar to ECE 341 at UI



Reviews for Microcontrollers Lab


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/22/15
ENEWHAVEN DISPLAY pt User s Guide NHD 021 6K1 Z NSPG FBWL LCM Liquid Crystal Display Module Ro HS Compliant Newhaven Display 16 Characters Transmissive side Pure Green LED BL FSTN 600 View Wide Temperature 20 70e Low Power zornA For product support contact Newhaven Display International LLC 2511 Technology Drive 101 Elgin IL 60124 Tel 847 8448795 Fax 847 8448796 October 5 2007 NHD0216K12NSPGFBWL Newhaven Display DOCU MENT REVISION HISTORY CO Version DATE DESCRIPTION CHANGED BY 00 OCT05O7 First issue lTENTS Item Functions amp Features Mechanical speci cations Dimensional Outline Absolute maximum ratings Block diagram Pin description Contrast adjust Optical characteristics Electrical characteristics Timing Characteristics Instruction description Display character address code character pattern Quality Speci cations quotU m is quot ummmmmmgww cow 00 1421 NHD0216K12NSPGFBWL Newhaven Display Features 5x8 dots with cursor Builtin controller KSOO66U or equivalent 5V power supply also available for 30V version 116 duty cycle15bias BKL to be driven by pin1 pin2 or pin15 pin16 orA K 16characters 2 lines display QSN39EP NT A 2 MECHANICAL SPECIFICATIONS LED GREEN 31V TA 3 t 4 5 6 JV DATE 80 254X15381 m PIN ASSIGNMENT A E 167931 m 459385 7 GND 26302 i o bwwwwwwig w r 098 16418 310i02 360t05 o bxe O iiii iiiiiiiiiiiiiiiiiiiiiiiiiii 1 14 i F7 5565 64508 71302 750i08 80005 Speci cation 1 Driving Dutyill BiugilS VLCD145V VDDIS V 8 Viewing Direction 6 DciocR Dr 18 DciocR 3 Digpiuy mooieiSTNFSTN 4 Dpenoting temp Wide Dr Nowmoi Storage temp Wioie Dr Nonmui 5 Driver 1 SSAUUEB or ST7UEgt6 or SPLC780D En Bockiignti Dptionoi Display Pattern 0 i 51 300 056 iiiiiilii E SCALE41 Mechanil Thickr ass THICKNESS T1 T2 WIO EKL 45 35 With sag BKL mm mm EKL 35 135 Model Nlml GENERALTOL39 t W WAS DATE mm no WM CHK APR i7 5 4 Absolute maximum VDD VSS K CON LCD PANEL RW LCD E CONTROLLER SEC L AND DBOiDB7lt DRWER SEG LCD DRWER LED an 6 Interface pin description Pin no Symbol Function Power supply DBODB3 Used for data transfer between the MPU and the LCM DB4DB7 10 Timing Characteristics Write RS RW RS RW DBODB7 Write mode timing diagram RS ViH1 ViL1 gtlt tsu1 tm RW ViL1 i ViL1 tw th1 E W Vim tf ViL1 ViL1 ViL1 7 tr tsu2 th2 Vim Vim DBO DB7 gtV L1 VALiD DATA MW to RSRNV RSRNV DBODB7 RS VH1 VIL1 M th VL1 VL1 tw th L g WH1 VH1 E mm mm mm tr m ltJQE1 WH1 mm DBO D B7 gtVIM VALID DATA XVII1 tc 11 Instruction description 111 Outline To overcome the speed difference between the internal clock of KSOO66U and the MPU clock KSOO66U performs internal operations by storing control in formations to IR or DR The internal operation is determined according to the signal from MPU composed of readwrite and data bus Referto Table7 Instructions can be divided largely into four groups 1 KSOO66U function set instructions set display methods set data length etc 2 Address set instructions to internal RAM 3 Data transfer instructions with internal RAM The address ofthe internal RAM is automatically increased or decreased by 1 Note during internal operation busy ag DB7 is read High Busy flag check must be preceded by the next instruction 112 39 39 Table C de Execution Instruction 03 03 Description time fosc RS RIW DB7 D36 5 DB4 D33 D32 1 D30 270 KHZ Clear Write 20H to DDRA and set D I 0 0 0 0 0 0 0 0 0 1 DDRAM address to OOH from 153ms isp ay AC Set DDRAM address to OOH Return From AC and return cursorto 0 0 0 0 0 0 0 0 1 ts original position if shifted 153ms Home The contents of DDRAM are not changed Ent mode Assign cursor moving direction Setry 0 0 0 0 0 0 0 1 D SH And blinking of entire display 39 Set displayD cursor C and D39Splay ON 0 0 0 0 0 0 1 D C B Blinking of cursor B onoff OFF Comml Control bit C Set cursor moving and display ursor Ol39 Shift control bit and the Display Shift 0 0 0 0 0 1 80 RL Direction without changing of ggus DDRAM data Set interface data length DL g Futnd39on 0 0 0 0 1 DL N F Bit4bit numbers of display 39us 39 Line N 2line1line and Display font type F 5X115X8 Set et address in CGRAM 0 0 0 1 AC5 AC4 AC3 AC2 AC1 ACO address 39us Address Counter Set Set DDRAM address in DDRAM 0 0 1 AC6 AC5 AC4 AC3 AC2 AC1 ACO address 39us Address Counter Whether during internal Read busy Operation or not can be known Flag and 0 1 BF AC6 AC5 AC4 AC3 AC2 AC1 ACO By reading BF The contents of Ous Address Address counter can also be rea Write data Write data into internal RAM to 1 0 D7 D6 D5 D4 D3 D2 D1 D0 DDRAMCGRAMgt 4sus Address R d d t f 39 t IRAM Egan gt 1 1 D7 D6 D5 D4 D3 D2 D1 D0 SgRAi acgmfm 43us NOTE When an MPU program with checking the busy flag DB7 is made it must be necessary 12fosc is necessary for executing the next instruction by the falling edge ofthe E signal afterthe busy flag DB7 goes to Low 113Contents 1 Clear displa 0 0 0 0 0 0 0 0 0 1 Clear all the display data by writing 20H space code to all DDRAM address and set DDRAM address to 00H into AC address counter Return cursorto the original status namely bring the cursorto the left edge on the fist line ofthe display Make the entry mode increment lD Highquot 2 Return home 0 0 0 0 0 0 0 0 1 Return home is cursor return home instruction Set DDRAM address to 00H into the address counter Return cursorto its original site and return display to its original status if shifted Contents of DDRAM does not change 3 Ent mode set 0 0 0 0 0 0 0 1 VB SH Set the moving direction of cursor and display IID increment I decrement of DDRAM address cursor or blink When lD highquot cursorblink moves to right and DDRAM address is increased by 1 When lD Lowquot cursorblink moves to left and DDRAM address is increased by 1 CGRAM operates the same way as DDRAM when reading from or writing to CGRAM SH shift of entire display When DDRAM read CGRAM readwrite operation or SH Lowquot shifting of entire display is not performed If SH High and DDRAM write operation shift of entire display is performed according to lD value lD highquot shift left lD LoW Shift right 4 Display ONOFF control RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO 0 0 0 0 0 0 1 D C B Control displaycursorblink ONOFF 1 bit register D Display ONIOFF control bit When D Highquot entire display is turned on When D LoW display is turned off but display data remains in DDRAM C cursor ONIOFF control bit When D Highquot cursor is turned on When D LoW cursor is disappeared in current display but lD register preserves its data B Cursor blink ONIOFF control bit When B Highquot cursor blink is on which performs alternately between all the High data and display characters at the cursor position When B Lowquot blink is off 5 Cursor or displa shift 0 0 0 0 1 SC RL Shifting of rightleft cursor position or display without writing or reading of display data This instruction is used to correct or search display data During 2 line mode display cursor moves to the 2nd line afterthe 40th digit of the 1st line Note that display shift is performed simultaneously in all the lines When display data is shifted repeatedly each line is shifted individually When display shift is performed the contents of the address counter are not changed Shift patterns according to SIC and RIL bits 6 Function set RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO 0 0 0 0 1 DL N F DL Interface data length control bit When DL Highquot it means 8bit bus mode with MPU When DL Lowquot it means 4bit bus mode with MPU Hence DL is a signal to select 8bit or 4bit bus mode When 4but bus mode it needs to transfer 4bit data twice N Display line number control bit When N LoVif 1line display mode is set When N Highquot 2 line display mode is set F Display line number control bit When F LoVif 5x8 dots format display mode is set When F Highquot 5x11 dots format display mode 7 Set CGRAM address RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO 0 0 0 1 AC5 AC4 AC3 AC2 AC1 ACO Set CGRAM address to AC The instruction makes CGRAM data available from MPU 8 Set DDRAM address WW 0 1 AC6 AC5 AC4 AC3 A02 A01 A00 Set DDRAM address to AC This instruction makes DDRAM data available form MPU When 1line display mode NLOW DDRAM address is form 00H to 4FHquotln 2 line display mode NHigh DDRAM address in the 1st line form 00H to 27H and DDRAM address in the 2nd line is from 40H to 67H 9 Read bus fla amp address WW 1 BF AC6 A05 A04 A03 A02 A01 ACO This instruction shows whether KS0066U is in internal operation or not lfthe resultant BF is High internal operation is in progress and should wait BF is to be LOW which by then the nest instruction can be performed In this instruction you can also read the value of the address counter 10 Write data to RAM RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO 1 0 D7 D6 D5 D4 D3 D2 D1 D0 Write binary 8bit data to DDRAMCGRAM 11 2006 12 4 The selection of RAM from DDRAM and CGRAM is set by the previous address set instruction DDRAM address set CGRAM address set RAM set instruction can also determine the AC direction to RAM After write operation The address is automatically increaseddecreased by 1 according to the entry mode 11 Read data from RAM 1 1 D7 D6 05 D4 03 D2 D1 D0 Read binary 8bit data from DDRAMCGRAM The selection of RAM is set by the previous address set instruction lfthe address set instruction of RAM is not performed before this instruction the data that has been read first is invalid as the direction of AC is not yet determined If RAM data is read several times without RAM address instructions set before read operation the correct RAM data can be obtained from the second But the rst data would be incorrect as there is no time margin to transfer RAM data In case of DDRAM read operation cursor shift instruction plays the same role as DDRAM address set instruction it also transfers RAM data to output data register After read operation address counter is automatically increaseddecreased by 1 according to the entry mode After CGRAM read operation display shift may not be executed correctly NOTE In case of RAM write operation AC is increaseddecreased by 1 as in read operation At this time AC indicates next address position but only the previous data can be read by the read instruction 12 Display character address code 45 I7I8I9I10I11121314I1516I 01 I3I04I05IO6I07I08IO9IOAIOBIOCIODIOE OF I 1 344 I46I47I4849I4A4B4C4DI4E 4F 13 Standard character pattern 1101 XXXXOODI xxxxOOlO xxxxOOll XXXXDIOO XXXXOlOl XXXXOllO XXXXOlll XXXXIOOO xxxxlDOl xxxxlDlO XxxxlOll xxxxllOO XxxxllOl Xxxxlll xxxxllll 14 QUALITY SPECIFICATIONS 141 Standard of the product appearance test Manner of appearance test The inspection should be performed in using 20W x 2 uorescent lamps Distance between LCM and uorescent lamps should be 100 cm or more Distance between LCM and inspector eyes should be 30 cm or more Viewing direction for inspection is 45 from vertical against LCM l Fluores cent 3 0 cm min 100mm min 45 45 LCM LCD Definition of zone A Zone B Zone AZone Active display area minimum viewing area B Zone Nonactive display area outside viewing area 142 Speci cation of quality assurance AQL inspection standard Sampling method MlLSTD105E Level II single sampling Defect classification Note is not including Classify ltem Note AQL Major Display state Short or open circuit 1 065 LC leakage Flickering No display Wrong Viewing direction Contrast defect dim ghost 2 Backlight 18 Nondisplay Flat cable or pin reverse 10 Wrong or missing component 11 Minor Display Background color deviation 2 10 state Black spot and dust 3 Line defect Scratch 4 Rainbow 5 Chip 6 Pin hole 7 Protruded 12 Polarizer Bubble and foreign material 3 Soldering Poor connection 9 Wire Poor connection 10 TAB Position Bonding strength 13 Note on defect classification No Item Criterion 1 Short or open circuit LC leakage Flickering No display Wrong Viewing direction Wrong Backlight Not allow 2 Contrast defect deviation Background color Refer to approval sample 3 Point defect Black spot dust including Polarizer l XY2 Acceptable Qtyt 4 Line defect Scratch Unit mm 5 Rainbow Not more than two color changes across the Viewing area Criterion No Item 6 Chip X Acceptable criterion H Y Remark 4 lt X Length direction ZN Y Short direction Z Thickness direction GI X Acceptable criterion t ass Y X m i W Terminal 39 Width TZ Acceptable criterion Q N Y shall not reach to ITO Acceptable criterion N N Y X Y z I Disregard S02 S t IHl Y Accetable criterion i H i X Z No Item Criterion 7 Segment 1 Pin hole pattern I l lt 010mm is acceptable W Segment Width 1 XY2 X X Pomt Slze R Y 12 f Y a w 8 EEK gm 1 The color of backlight should correspond to its specification 2 Not allow flickering 9 so39derm 1 Not allow heavy dirty and solder ball on PCB The size of dirty refer to point and dust defect 2 Over 50 of lead should be soldered on Land Lead Land 50 lead 10 Wire 1 Copper wire should not be rusted 2 Not allow crack on copper wire connection 3 Not allow reversing the position of the flat cable 4 Not allow exposed copper wire inside the flat cable 11 PCB 1 Not allow screw rust or damage 2 Not allow missing or wrong putting of component No Item Crttenan 12 Pratmded W Termmat Wtdth Ampmhlg grimt N My Y o 4 X 13 TAB 1 Pastttan quot W1 H H1 TAB 2 TAB bandmg strength test P FTAB bonding width Z SUgfcm spmd ram 1mmmin 5pc par SOAshipmznt 14 Tatat mat acceptabte A Zane Defect Maxtmum 2 mmarnancanfamttes perane umt Defect dtstance each pamt to be separated Wet 10mm B Zane It 5 acceptabte when t 5 no traubte far quahty and assembty m customer s end product 143 Reliability of LCM Reliability test condition No abnormalities in functions and appearance 0 C e 25 C a50 C 30 min e 5 min a 30min Temp Cycle 10cyces Recovery time should be 24 hours minimum Moreover functions performance and appearance shall be free from remarkable deterioration within 50000 hours under ordinary operating and storage conditions room temperature 208 C normal humidity below 65 RH and in the area not exposed to direct sun light 144 Precaution for using LCDLCM LCDLCM is assembled and adjusted with a high degree of precision Do not attempt to make any alteration or modification The followings should be noted General Precautions 1 LCD panel is made of glass Avoid excessive mechanical shock or applying strong pressure onto the surface of display area 2 The polarizer used on the display surface is easily scratched and damaged Extreme care should be taken when handling To clean dust or dirt off the display surface wipe gently with cotton or other soft material soaked with isoproply alcohol ethyl alcohol or trichlorotriflorothane do not use water ketone or aromatics and never scrub hard Do not tamper in any way with the tabs on the metal frame Do not make any modi cation on the PCB without consulting NEWHAVEN When mounting a LCM make sure that the PCB is not under any stress such as bending PE or twisting Elastomer contacts are very delicate and missing pixels could result from slight dislocation of any of the elements CD Avoid pressing on the metal bezel othenvise the elastomer connector could be deformed and lose contact resulting in missing pixels and also cause rainbow on the display l Be careful not to touch or swaow liquid crystal that might leak from a damaged ce Any liquid crystal adheres to skin or clothes wash it off immediately with soap and water Static Electricity Precautions 1 CMOS LSI is used for the module circuit therefore operators should be grounded whenever heshe comes into contact with the module 2 Do not touch any of the conductive parts such as the LSI pads the copper leads on the PCB and the interface terminals with any parts ofthe human body 9 Do not touch the connection terminals ofthe display with bare hand it will cause disconnection or defective insulation of terminals The modules should be kept in antistatic bags or other containers resistant to static for storage Only properly grounded soldering irons should be used If an electric screwdriver is used it should be grounded and shielded to prevent sparks The normal static prevention measures should be observed for work clothes and working benches Since dry air is inductive to static a relative humidity of 5060 is recommended N535 gt 53 Soldering Precautions 1 Soldering should be performed only on the HO terminals 2 Use soldering irons with proper grounding and no leakage 3 Soldering temperature 280 C110 C 4 Soldering time 3 to 4 second 5 Use eutectic solder with resin flux filling 6 If flux is used the LCD surface should be protected to avoid spattering flux 7 Flux residue should be removed Operation Precautions 1 The viewing angle can be adjusted by varying the LCD driving voltage V0 2 Since applied DC voltage causes electrochemical reactions which deteriorate the display the applied pulse waveform should be a symmetric waveform such that no DC component remains Be sure to use the specified operating voltage 3 Driving voltage should be kept within speci ed range excess voltage will shorten display life 4 Response time increases with decrease in temperature 5 Display color may be affected at temperatures above its operational range 6 Keep the temperature within the specified range usage and storage Excessive temperature and humidity could cause polarization degradation polarizer peeloff or generate bubbles 7 For longterm storage over 40 C is required the relative humidity should be kept below 60 and avoid direct sunlight Limited Warranty NEWHAVEN LCDs and modules are not consumer products but may be incorporated by NEWHAVEN S customers into consumer products or components thereof NEWHAVEN does not warrant that its LCDs and components are t for any such particular purpose 1 The liability of NEWHAVEN is limited to repair or replacement on the terms set forth below NEWHAVEN will not be quot 39 o 39 quot 39 events or injury or damage to any personnel or user including third party personnel andor user Unless othenNise agreed in writing between NEWHAVEN and the customer NEWHAVEN will only replace or repair any of its LCD which is found defective electrically or visually when inspected in accordance with NEWHAVEN general LCD inspection standard Copies available on request warranty can be granted if any of the precautions state in handling liquid crystal display above has been disregarded Broken glass scratches on polarizer mechanical damages as well as defects that are caused accelerated environment tests are excluded from warrant ln returning the LCDLCM they must be properly packaged there should be detailed description of the failures or defect


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.