We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
switch(periodplay) { default : NVIC_ST_RELOAD_R = 0;Sound_Off(); break; case 0x01: NVIC_ST_RELOAD_R = beatC0 ; break; case 0x02: NVIC_ST_RELOAD_R = beatD; break; case 0x04 : NVIC_ST_RELOAD_R = beatE ; break; case 0x08 : NVIC_ST_RELOAD_R = beatG ; break; } NVIC_ST_CURRENT_R = 0; }
Let say "periodplay" have value 0x04. case statement assign "Reload" with beatE, than follow break statement. After break it jumps to the previous case 0x02. And than come out of switch to NVIC_CURRENT_R=0. Any suggestion for troubleshooting?
As shown here: www.danlhenry.com/.../keil_code.png
tern of optimeyezation
singal step der assumblar