3v0 Coop Build Coordinator Forum Supporter Nov 27, 2008 #2 Duration of what ? You need to be much more specific. If you are talking about clock speed it varies with the processor. Often by a crystal osc. If you are talking about a delay time you can do that with delay loops or timer/counter hardware. HTH
Duration of what ? You need to be much more specific. If you are talking about clock speed it varies with the processor. Often by a crystal osc. If you are talking about a delay time you can do that with delay loops or timer/counter hardware. HTH
R rgbutterfly New Member Nov 29, 2008 #3 I need to know how to write the assembly code so that the microcontroller plays the music with a 2ms delay between notes.
I need to know how to write the assembly code so that the microcontroller plays the music with a 2ms delay between notes.
3v0 Coop Build Coordinator Forum Supporter Nov 29, 2008 #4 rgbutterfly said: I need to know how to write the assembly code so that the microcontroller plays the music with a 2ms delay between notes. Click to expand... I take it that you wat 2ms of quite between notes. A simple loop that takes 2ms to execute is what you need. How to write that in asm depends on the processor. Try googling for PROCESS_NAME delay loop calculator
rgbutterfly said: I need to know how to write the assembly code so that the microcontroller plays the music with a 2ms delay between notes. Click to expand... I take it that you wat 2ms of quite between notes. A simple loop that takes 2ms to execute is what you need. How to write that in asm depends on the processor. Try googling for PROCESS_NAME delay loop calculator