1 / 7

Riistvarapõhine programmeerimine

Riistvarapõhine programmeerimine. Labor 3 Kahe registriga välisseadme kasutamine , LCD. HD44780U (LCD-II). 5 x 8 and 5 x 10 dot matrix possible 4-bit or 8-bit MPU interface enabled 80 x 8-bit display RAM (80 characters max.) 64 ´ 8-bit character generator RAM

odelia
Download Presentation

Riistvarapõhine programmeerimine

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Riistvarapõhine programmeerimine Labor 3 Kahe registriga välisseadme kasutamine, LCD

  2. HD44780U (LCD-II) • 5 x 8 and 5 x 10 dot matrix possible • 4-bit or 8-bit MPU interface enabled • 80 x 8-bit display RAM (80 characters max.) • 64 ´ 8-bit character generator RAM • 16-common ´ 40-segment liquid crystal display driver http://www.itcollege.ee/~amulin/8051/DATASHEETS/LCD/hd44780.pdf ID218 Riistvaralähedane programmeerimine

  3. LCD registrid • Kirjutamine käsuregistrisse 8000h • Kirjutamine andmeregistrisse 8001h • Lugemine käsuregistrist 8002h • Lugemine andmeregistrist 8003h ID218 Riistvaralähedane programmeerimine

  4. LCD kasutamine I • Kontrollida staatus • Kui staatus = 80h, väljastame käsk • Kui staatus !=80h, ootame ID218 Riistvaralähedane programmeerimine

  5. LCD kasutamine II • LCD init 8 bits, 2 line display, 5x7 pixel chars, jne • LCD clear Clear display • LCD home Move cursor to home position • LCD set xy Set the address • LCD putchar Writing a char ID218 Riistvaralähedane programmeerimine

  6. LCD kasutamine III • Otsekasutamine, led31.c • LCD teek, led32.c • Funktsioon putchar defineerimine http://www.pjrc.com/tech/8051/board5/lcd_example.html ID218 Riistvaralähedane programmeerimine

  7. Ülesanded • Led31.c • Led32.c • Putchar defineerimine • LCD lisamine LED projekti, sec, min, hour ID218 Riistvaralähedane programmeerimine

More Related