| Posted: 08:56am 27 Aug 2020 |
Copy link to clipboard |
 Print this post |
|
Hi Peter
I did a whole heap of tests but I'm not sure what it all means as the results appeared not to be consistent.
My updated test program is as follows as is my list of steps I did & results. Tests mainly PWM command directly from the keyboard or from the test program
'PWM_Test.bas do print time$, pwm 2,15,50 pause 3000 print time$ pwm 2,stop pause 1000 loop
Tests & Results.
PWM 1 working... as expected (Swapped PWM 2 for PWM 1 in my main program Stopped current prog with faulty PMW 2 PWM 1 still working. PWM 2, 15, 30 ..... not working pwm 2, stop ... setpin 36, dout ..... test pin PIN(36) = 1 ....OK NEW PWM 2, 15,30 ...not working reset CMM2 - off then on. Ver ...05b20 PWM 2, 15, 50 works PWM 2, stop .... ok PWM 2, 15, 15 ...ok PWM_Test.bas.....not working reset (Off & On) files...PWM_Test.bas...no go. reset PWM 15, 50 ... OK PWM 2, STOP PWM 2, 15, 50 ...OK RUN PWM_Test.bas ...OK Ctrl - C & run....OK Crtl - C & NEW. Run PWM_Test.bas.....no ouput. Prog Running though Ctrl - C. PWM 2,15,50...no go. Reset. PWM 2,15,50......ok PWM 2, stop....OK Run PWM_Test.bas....no output Rest. Runs OK Stopped when running. PWM 2, 15, 50 OK as were various PWM ratios. PWM 2, stop & PWM 2, 15, 90 worked CTRL - C & RUN worked CTRL - C & NEW PWM_Test.bas... no output.
New BIN download & reflash... Ran PWM_test.bas...no output. Turned CMM2 off & on again. RUN (F2) .... OK Ctrl - C & NEW. Run test prog.....no output. Turned off then on again. F2 to run. Works.....
Hope this helps
Brian ChopperP |