Microcontrollers

Status
Not open for further replies.
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
 
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.
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…