超声波电路程序3
case 5480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6072, 3031); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6060, 3025); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6048, 3019); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6036, 3013); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6024, 3008); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6016, 3004); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6008, 3000); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6000, 2996); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5988, 2990); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5976, 2985); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5964, 2979); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5952, 2973); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5940, 2967); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5928, 2962); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5920, 2958); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5912, 2955); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5904, 2951); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5892, 2945); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5880, 2940); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5868, 2934); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5857, 2928); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5845, 2922); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5834, 2917); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5826, 2913); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5818, 2909); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5811, 2905); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5799, 2899); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5788, 2894); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5776, 2888); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5765, 2882); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5757, 2878); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5749, 2875); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5742, 2871); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5730, 2865); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5719, 2859); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5708, 2853); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5697, 2848); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5685, 2842); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5674, 2836); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5666, 2832); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5658, 2828); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5651, 2825); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5639, 2819); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5628, 2813); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5620, 2809); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5613, 2805); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5606, 2802); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5594, 2794); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5583, 2787); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5571, 2780); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5560, 2773); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5552, 2770); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 0);
API_GPIO_Output(2, 0);
API_GPIO_Output(3, 1);
API_GPIO_Output(4, 0);
API_GPIO_Output(5, 0);
API_GPIO_Output(6, 0);
API_GPIO_Output(7, 0);
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5544, 2767); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5537, 2765); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5526, 2761); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5515, 2757); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5507, 2753); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5499, 2749); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5492, 2745); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5480, 2739); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5469, 2734); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5461, 2730); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5453, 2726); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5446, 2722); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5435, 2716); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5424, 2711); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5416, 2707); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5408, 2703); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5400, 2700); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5392, 2696); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5385, 2692); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5378, 2688); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5366, 2682); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5355, 2677); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5347, 2673); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5340, 2669); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5333, 2666); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5325, 2662); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5317, 2658); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5310, 2654); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5298, 2648); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5287, 2643); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5271, 2639); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5264, 2635); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5271, 2631); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5261, 2627); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5251, 2623); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5242, 2620); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5234, 2616); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5226, 2612); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5219, 2608); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5207, 2602); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5196, 2597); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5188, 2593); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5180, 2589); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5173, 2586); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5165, 2582); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5158, 2578); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5151, 2575); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5143, 2571); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5135, 2567); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5128, 2563); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5120, 2559); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5112, 2555); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5105, 2552); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5097, 2548); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5089, 2544); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5082, 2540); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5074, 2536); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5067, 2532); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5060, 2529); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5052, 2525); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5044, 2521); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5037, 2517); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5029, 2513); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5021, 2509); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5014, 2506); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 5006, 2502); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4998, 2498); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4991, 2495); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4983, 2491); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4976, 2487); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4969, 2484); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4961, 2480); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4953, 2476); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4946, 2472); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4938, 2468); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4930, 2464); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4923, 2461); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4915, 2457); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4907, 2453); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4900, 2450); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4892, 2446); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4885, 2442); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4878, 2438); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4870, 2434); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4862, 2430); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4855, 2426); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4849, 2423); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4843, 2420); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4837, 2417); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4832, 2415); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4824, 2411); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4816, 2407); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4809, 2404); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4801, 2400); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4794, 2396); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4787, 2393); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4779, 2389); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4771, 2385); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4764, 2381); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 6990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4758, 2378); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7000:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4752, 2375); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4746, 2372); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4741, 2370); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4733, 2366); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4725, 2362); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4718, 2358); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4712, 2355); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4706, 2352); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4700, 2349); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4695, 2347); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4687, 2343); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4679, 2339); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4672, 2335); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4666, 2332); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4660, 2329); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4654, 2326); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4649, 2324); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4641, 2320); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4633, 2316); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4626, 2313); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4620, 2310); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4615, 2307); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4609, 2304); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4604, 2302); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4596, 2298); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4588, 2294); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4581, 2290); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4575, 2287); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4569, 2284); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4563, 2281); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4560, 2280); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4558, 2279); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4550, 2275); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4542, 2271); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4535, 2267); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4527, 2263); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4520, 2259); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4513, 2256); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4507, 2253); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4501, 2250); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4495, 2247); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4490, 2244); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4484, 2241); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4478, 2238); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4472, 2235); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4467, 2233); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4461, 2230); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4455, 2227); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4449, 2224); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4444, 2222); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4436, 2218); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4429, 2214); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4422, 2211); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4416, 2208); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4411, 2205); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4405, 2202); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4400, 2200); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4394, 2197); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4388, 2194); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4382, 2191); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4376, 2188); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4370, 2185); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4364, 2182); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4358, 2179); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4353, 2176); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4347, 2173); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4342, 2170); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4336, 2167); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4331, 2165); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4325, 2162); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4319, 2159); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4313, 2156); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4308, 2153); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4303, 2151); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4299, 2149); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4295, 2147); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4290, 2144); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4285, 2142); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4279, 2139); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4273, 2136); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4267, 2133); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4262, 2131); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4256, 2128); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4251, 2125); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4245, 2122); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4240, 2120); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4234, 2117); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4228, 2114); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4222, 2111); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4217, 2108); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4211, 2105); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4205, 2102); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4200, 2100); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4194, 2097); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4189, 2094); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4184, 2091); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4179, 2088); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4175, 2085); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4162, 2079); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 7990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4158, 2077); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 0);
API_GPIO_Output(2, 0);
API_GPIO_Output(3, 0);
API_GPIO_Output(4, 1);
API_GPIO_Output(5, 0);
API_GPIO_Output(6, 0);
API_GPIO_Output(7, 0);
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4155, 2076); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4152, 2075); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4149, 2074); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4143, 2071); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4137, 2068); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4131, 2065); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4126, 2062); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4122, 2060); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4118, 2058); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4114, 2056); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4108, 2053); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4103, 2051); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4097, 2048); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4091, 2045); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4087, 2043); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4083, 2041); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4080, 2040); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4074, 2037); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4069, 2034); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4063, 2031); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4058, 2029); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4052, 2026); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4046, 2023); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4042, 2021); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4038, 2019); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4035, 2017); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4029, 2014); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4023, 2011); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4017, 2008); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4012, 2006); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4008, 2004); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4004, 2002); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 4000, 2000); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3994, 1997); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3989, 1994); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3983, 1991); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3978, 1988); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3974, 1986); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3970, 1984); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3967, 1983); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3961, 1980); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3955, 1977); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3951, 1975); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3947, 1973); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3943, 1971); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3937, 1968); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3931, 1965); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3927, 1963); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3923, 1961); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3920, 1960); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3914, 1957); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3909, 1954); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3905, 1952); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3901, 1950); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3898, 1949); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3892, 1946); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3887, 1943); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3881, 1940); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3876, 1938); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3872, 1936); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3868, 1934); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3864, 1932); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3860, 1930); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3856, 1928); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3853, 1926); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3847, 1923); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3841, 1920); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3837, 1918); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3833, 1916); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3830, 1915); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3824, 1912); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3818, 1909); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3814, 1907); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3810, 1905); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3807, 1903); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3801, 1900); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3796, 1897); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3792, 1895); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3788, 1893); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3785, 1892); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3781, 1890); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3777, 1888); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3773, 1886); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3769, 1884); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3765, 1882); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3762, 1880); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3756, 1877); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3750, 1874); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3746, 1872); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3742, 1870); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3739, 1869); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3735, 1867); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3731, 1865); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3727, 1863); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3721, 1860); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3716, 1858); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3712, 1856); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3708, 1854); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3705, 1852); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 8990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3701, 1850); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9000:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3697, 1848); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3694, 1847); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3688, 1844); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3683, 1841); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3679, 1839); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3675, 1837); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3672, 1835); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3668, 1833); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3664, 1831); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3661, 1829); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3657, 1827); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3653, 1825); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3650, 1824); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3644, 1821); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3639, 1818); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3635, 1816); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3631, 1814); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3628, 1812); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3624, 1810); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3620, 1808); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3617, 1806); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3613, 1804); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3610, 1802); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3607, 1801); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3601, 1798); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3596, 1795); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3592, 1793); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3588, 1791); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3585, 1789); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3581, 1787); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3577, 1785); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3574, 1783); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3570, 1781); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3567, 1779); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3564, 1778); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3558, 1775); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3553, 1772); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3549, 1770); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3545, 1768); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3542, 1767); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3538, 1765); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3534, 1763); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3531, 1761); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3527, 1759); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3524, 1757); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3521, 1756); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3517, 1754); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3513, 1752); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3509, 1750); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3505, 1748); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3501, 1746); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3497, 1744); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3494, 1742); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3491, 1741); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3488, 1739); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3485, 1738); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3481, 1736); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3477, 1734); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3473, 1733); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3469, 1731); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3465, 1729); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3461, 1727); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3458, 1725); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3455, 1724); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3452, 1722); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3449, 1721); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3445, 1719); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3441, 1717); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3437, 1715); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3433, 1713); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3429, 1711); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3425, 1710); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3422, 1708); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3419, 1707); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3416, 1705); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3413, 1704); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3409, 1702); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3405, 1700); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3401, 1698); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3398, 1696); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3395, 1695); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3392, 1693); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3389, 1692); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3385, 1690); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3381, 1688); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3377, 1687); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3374, 1685); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3371, 1684); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3368, 1682); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3365, 1681); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3361, 1679); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3357, 1677); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3353, 1676); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3350, 1674); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3347, 1673); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3344, 1671); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3341, 1670); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3338, 1668); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3335, 1667); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 9990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3332, 1666); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
// case 1000:
// API_GPIO_Output(0, 1);
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
case 10000:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3330, 1665); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300\
break;
default:
break;
}
}
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// }
// if (((b > 1000 & b < 1002)
// {
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33297, 16648); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// }
// if (b = 3000)
// {
// case 3000:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 3330, 1665); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// }
b++;
// b++;
//this.timer3.Enabled = true;//可以使用
// c = Convert.ToString(b);
// csbpl.Text = Convert.ToString(b);
csbpl.Text = Convert.ToString(b);
// a = "0" + a;
// }
}
// return b;
}
private void button2_Click(object sender, EventArgs e)
{
API_PWM_Stop(0);
API_BEEP_Delay(50);
this.timer1.Enabled = false;//可以使用
// line();
this.timer3.Enabled = false;//可以使用
API_BEEP_Delay(50);
//textBox6.Text="";
}
public void ad( )
{
int i0;
level0 = &i0;
API_ADC_Read(0, level0);
textBox1.Text = Convert.ToString(i0);
int i1;
level1 = &i1;
API_ADC_Read(1, level1);
textBox2.Text = Convert.ToString(i1);
int i2;
level2 = &i2;
API_ADC_Read(2, level2);
textBox3.Text = Convert.ToString(i2);
int i3;
level3 = &i3;
API_ADC_Read(3, level3);
textBox4.Text = Convert.ToString(i3);
// textBox4.Text = level3;
Graphics g = this.CreateGraphics();
// Create pen.
Pen blackPen = new Pen(Color.Red, 3);
// Create coordinates of points that define line.
// int x1 = 100;
// int y1 = 300;
//int x2 = 200;
//int y2 = 300;
// Draw line to screen.
// g.DrawLine(blackPen, 2, 3, 40, 50);
// g.DrawLine(blackPen, x1, y1, x2, y2);
Pen mypen3 = new Pen(Color.Green, 2);
Point[] points2 = new Point[18];
// points2[0].X = 60; points2[0].Y = 340 - Count2[0];
//points2[1].X = 140; points2[1].Y = 340 - Count2[1];
// points2[2].X = 220; points2[2].Y = 340 - Count2[2];
// points2[3].X = 300;
// points2[3].Y = 340 - Count2[3];
// points2[4].X = 380; points2[4].Y = 340 - Count2[4];
// points2[5].X = 460;
// points2[5].Y = 340 - Count2[5];
// points2[6].X = 540; points2[6].Y = 340 - Count2[6];
// g.DrawLines(mypen3, points2);?//绘制折线?
points2[0].X = 50; points2[0].Y = i0-1000;
// thread.sleep(int);
// Thread.Sleep(1000);
//Application.DoEvents();
// Delay1(10);
points2[0].X = 50; points2[0].Y = 290;
points2[1].X = 60; points2[1].Y = 300;
// points2[1].X = 60; points2[1].Y = i0-1000;
points2[2].X = 70; points2[2].Y = 310;
points2[3].X = 80; points2[3].Y = 290;
points2[4].X = 90; points2[4].Y = 300;
points2[5].X = 100; points2[5].Y = 330;
points2[6].X = 110; points2[6].Y = 290;
points2[7].X = 120; points2[7].Y = 280;
points2[8].X = 130; points2[8].Y = 300;
points2[9].X = 140; points2[9].Y = 270;
points2[10].X = 150; points2[10].Y = 300;
points2[11].X = 160; points2[11].Y = 260;
points2[12].X = 170; points2[12].Y = 270;
points2[13].X = 180; points2[13].Y = 200;
points2[14].X = 190; points2[14].Y = 210;
points2[15].X = 200; points2[15].Y = 220;
points2[16].X = 210; points2[16].Y = 180;
points2[17].X = 220; points2[17].Y = 160;
g.DrawLines(mypen3, points2);//绘制折线?
}
public void line()
{
Graphics g = this.CreateGraphics();
// Create pen.
Pen blackPen = new Pen(Color.Red, 3);
// Create coordinates of points that define line.
int x1 = 100;
int y1 = 300;
int x2 = 200;
int y2 = 300;
// Draw line to screen.
g.DrawLine(blackPen, 2, 3, 40, 50);
g.DrawLine(blackPen, x1, y1, x2, y2);
Pen mypen3 = new Pen(Color.Green, 2);
Point[] points2 = new Point[18];
// points2[0].X = 60; points2[0].Y = 340 - Count2[0];
//points2[1].X = 140; points2[1].Y = 340 - Count2[1];
// points2[2].X = 220; points2[2].Y = 340 - Count2[2];
// points2[3].X = 300;
// points2[3].Y = 340 - Count2[3];
// points2[4].X = 380; points2[4].Y = 340 - Count2[4];
// points2[5].X = 460;
// points2[5].Y = 340 - Count2[5];
// points2[6].X = 540; points2[6].Y = 340 - Count2[6];
// g.DrawLines(mypen3, points2);?//绘制折线?
points2[0].X =50; points2[0].Y = 320;
// thread.sleep(int);
// Thread.Sleep(1000);
//Application.DoEvents();
// Delay1(10);
//points2[1].X = 60; points2[1].Y = 300;
//points2[1].X = 60; points2[1].Y = level0;
points2[2].X = 70; points2[2].Y = 310;
points2[3].X = 80; points2[3].Y = 290;
points2[4].X = 90; points2[4].Y = 300;
points2[5].X = 100; points2[5].Y = 330;
points2[6].X = 110; points2[6].Y = 290;
points2[7].X = 120; points2[7].Y = 280;
points2[8].X = 130; points2[8].Y = 300;
points2[9].X = 140; points2[9].Y = 270;
points2[10].X = 150; points2[10].Y = 300;
points2[11].X = 160; points2[11].Y = 260;
points2[12].X = 170; points2[12].Y = 270;
points2[13].X = 180; points2[13].Y = 200;
points2[14].X = 190; points2[14].Y = 210;
points2[15].X = 200; points2[15].Y = 220;
points2[16].X = 210; points2[16].Y = 180;
points2[17].X = 220; points2[17].Y = 160;
g.DrawLines(mypen3, points2);//绘制折线?
}
private void timer1_Tick(object sender, EventArgs e)
{
ad();
DateTime dt = DateTime.Now;
// datagrid();
string strtxt = textBox4.Text.ToString();
// FileStream fs1 = new FileStream("ResidentFlash2\\dtm.txt", FileMode.Create, FileAccess.Write);//创建写入文件
// StreamWriter sw = new StreamWriter(fs1);
//sw.WriteLine(this.textBox3.Text.Trim() + "+" + this.textBox4.Text);//开始写入值
//sw.Write(strtxt);//开始写入值
// sw.Write(textBox3.Text);//开始写入值
//sw.Close();
// fs1.Close();
//表示清空 txt
// StreamWriter sw = new StreamWriter("D:\\1.txt");
//string w = "";
//sw.Write(w);
//sw.Close();
//表示向txt写入文本
//StreamWriter sw = new StreamWriter("D:\\1.txt");
//string w = "10";
//sw.Write(w);
//sw.Close();
//表示追加文本
//StreamWriter sw = File.AppendText("D:\\1.txt");
StreamWriter sw = File.AppendText("ResidentFlash2\\dtm.txt");
//string w = dt+"混凝土震动量"+textBox4.Text+",";
string w = dt + csbpl.Text+"HZ时混凝土震动量" + textBox4.Text +",";
sw.Write(w);
sw.Close();
this.textBox6.SelectedText = dt + csbpl.Text + "HZ时混凝土震动量" + "混凝土震动量" + textBox4.Text + ",";
// label2.Text = textBox6.Text;
//listBox1.Text = textBox6.Text;
}
|