Sie sind auf Seite 1von 1

Jeff Brown Microprocessing Mr.

Hamza 08-01-13
Chapter 12: Problems 2-11, 13, 15, 17, 21-28

2. They are the control lines for the LCD. E is for latching information into the LCD, R/W is for reading from or writing information into the LCD , and RS is for making a distinction between the data and command. 3. Vee controls the contrast of the screen while Vcc provides power to the LCD. 4. command, 01h 5. 0Fh 6. RS = 0, RW = 0, E = H-to-L pulse 7. RS = 1, RW = 0, E = H-to-L pulse 8. (a) 9. True 10. Sending information to the LCD without checking the busy flag is very simple to write but the microcontroller wastes a lot of time in a delay subroutine. The advantage of monitoring the busy flag is that the next information is sent when the LCD is ready and there is no wasting of time. This is very critical, especially when the microcontroller is busy and must serve many devices. However, the subroutine for monitoring the busy flag is much harder to write and takes more code. To monitor the busy flag, we make the port D0 - D7 of the LCD an input port, read the D7 bit, and wait for low. 11. 80h is the starting location ,and 16 locations to the right is 8Fh. 13. 80h is the starting location, and 20 locations to the right is 13h which result in 80h + 13h = 93h. 15. If 80h is the address of the first location, then adding 39 (27h) we get 80h + 27h = A7h. 17. 89h since 80h + 9 = 89h. The 10th is address 9 since it starts at 0. 21. 1s 22. (a) 23. (b) 24. key 3 25. This allows the microcontroller to do other things. 26. Use a chip for the keyboard (for both key press and identification) and then pass the scan code for the pressed key to the microcontroller via a hardware interrupt.

Das könnte Ihnen auch gefallen