Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me with 8051-based memory game with music in Assembly

Status
Not open for further replies.

ddtage

Newbie level 1
Joined
Jul 21, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
Hi guys..this is my project here...i'm havin some problems wit it..i'll be grateful if anyone can help me wit the source codes for this project..
 

Re: Need Help !!!

Start with "teaching" your 8051 how to play notes on a selected pin, say, P1.0 ..
For example, to play DO (262Hz) you will need to output a square wave of T=3.82ms, to play Re(294Hz) the time is 3.4ms and so on .. The other notes and their frequecies can be easily found googling ..

As you can see, you will need to use one of 8051's timers: Timer0 or Timer1 ..
Using Timer Interrupt create base time of, say, 100µs .. 10µs would be probably better, but for the sake of this excercise you can stay with 100 ..
If this 100µs routine is repeated for 38 times with P1.0 "L" and then 38 times "H" and the sequence is continously repeated for, say, 5s, the output will be DO ..

So, here: you will find out how to generate time interrupts with 8051 ..

Regards,
IanP
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top