- This topic has 1 reply, 2 voices, and was last updated 10 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Need help on HW
I literally have no clue how to do either of these programs, I tried rereading stuff in the book and watching some of the videos my teacher has posted on BB but it may as well be written in a different language I am in WAY over my head with this class any help would be greatly appreciated:
Verify that you have an 8 wire connector from PortA on the application board to Port 2 on the micro Board.
Use the following port bits on Port 3 to control the signals on the application board.
P3.2, P3.3, P3.4, P3.5, P3.6, P3.7
Program 1) Make the piezo sounder beep. To do this, generate a 4KHz signal on pin P0.0 and attach a
wire from this pin to the pzo line on the applications board. Use Timer 0 only!
Note: Timer1 is now being used for transmitting and receiving data to the PC.
Program 2) Turn on the ultra-sonic detector and produce a beep if your hand is sensed.
Hint: The URX line will go low if your hand is sensed. Read the write up for this area!
Hint: You want to toggle the port bit that controls the Piezo about 200 times when your hand
is sensed. Use a register to hold the count and DJNZ to decrement and branch back.
you can get idea from my keil interfacing programs given on
http://www.engineersgarage.com/tutorials/keil-programs-8051