i urgently need a speaker simulator program for the project. i try searching my intrnet but cannot find much that is good. please someone must have some like anyone have library or source code for it?
i put on the led to the port pin and it lit bright but then wend down but i didnot change your code.
i go again and led is not bright but same code ?)
As the OP didn't even think to mention this detail, it is not surprising that he can't get it to work!
I just took a look at the whole thread and there is not one single detail from the OP.
I guess he is trying to make us curious and his next post will be "I sell crystal balls"
Erik
I meant my answer to be a bit more generic than it now looks.
:-(
The truth of the matter is that the question is impossible to answer without proper details of how the LED is connected.
If it's connected to a port pin, then you just set that port pin to the appropriate level (1 or 0) required by your hardware. with many derivatives, setting the port pin to '1' will not make the LED light up unless external measures are taken. Small LEDs (and their series resistor) directly driven by port pins should be connected between Vcc and the port pin.
How is the LED connected to the controller?
If it's connected to a port pin, then you just set that port pin to the appropriate level (1 or 0) required by your hardware.
hi,
im still workin on the program bit cannot get the led to go when there is a sound.
how can i get the led to light in code?
Have a look at the following link http://www.keil.com/arm/mcb2300/ Its schematic & sample program
Switch to a more powerful processor. Connect line out from preamp, computer or whatever to AD input of uC. Write a couple of digital filters to extract the amount of energy at different frequencies. Use PWM or similar to control a couple of LEDs. Voila - a spectrum analyzer.
based on your previous questions:
I speaked to a lecturer either your 'lecturer' is asking you to do things he has not covered - which is totally unreasonable - or - i had to eat and sleep. which took place in class
if the first is the case, go tho the 'lecturers' boss and complain, if the second is the case, you dug that hole yourself.
so it lights when there is a sound. then you need a microphone (or something similar) not a speaker.
how can i get the led to go in code?
has someone a sample code or good project please
Don't you think that also applies to everyone else?!
I have always thought that everyone else on web forums or mailing lists were droids or bots :)
"sorry for long time but i had to eat and sleep."
"i speaked to a lecturer"
Yes, It's always a good idea to make sure you have the correct requirements!!
sorry for long time but i had to eat and sleep.
i speaked to a lecturer to get good help and he say what he wanted was a led light so it lights when there is a sound.
now is very easy i hope.
Hmmm... over 6 hours with no comment from "malcom sky"
Where's the sense of urgency gone now, then...?!
View all questions in Keil forum