超声波测试仪电路程序2
超声波测试仪电路程序2
case 837:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4968, 2484); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 847:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4909, 2454); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 857:
//API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4851, 2425); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 867:
//API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4792, 2396); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 878:
//API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4734, 2367); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 889:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4675, 2337); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 900:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4617, 2308); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 912:
API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4558, 2279); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 924:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4500, 2250); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 936:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4440, 2220); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 948:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4383, 2191); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 962:
// API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4324, 2162); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 975:
//API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4266, 2133); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 989:
//API_GPIO_Output(0, 1);
API_PWM_SetDiv(0, 16);//2850656057
API_PWM_Start(0, 4203, 2103); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1000:
API_GPIO_Output(0, 1);
API_GPIO_Output(1, 0);
API_GPIO_Output(2, 0);
API_GPIO_Output(3, 0);
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, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
// case 1001:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33297, 16649); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
// case 1002:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33294, 16647); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
// case 1003:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33290, 16646); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
// case 1004:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33287, 16642); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
// case 1005:
// // API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 33091, 16545); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
case 1010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 32883, 16441); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 32645, 16337); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 32407, 16233); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 32051, 16025); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 31635, 15817); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 31357, 15678); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 31080, 15539); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 30802, 15401); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1090:
API_PWM_SetDiv(0, 2);//2850656057 277.5 138.6
API_PWM_Start(0, 30525, 15262); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 30247, 15123); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 29970, 14985); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 29732, 14866); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 29494, 14747); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 29256, 14628); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1150:
API_PWM_SetDiv(0, 2);//2850656057 277.5 138.75
API_PWM_Start(0, 29018, 14509); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 28780, 14390); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 28542, 14271); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 28305, 14152); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 28067, 14033); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 27829, 13914); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 27591, 13795); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 27353, 13676); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 27115, 13558); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 26877, 13439); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 26640, 13320); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//标记点
case 1260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 26455, 13227); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 26270, 13135); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 26085, 13042); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 25900, 12950); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 25715, 12857); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 25530, 12765); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 25345, 12672); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 25160, 12580); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24975, 12487); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24790, 12395); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24605, 12302); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24420, 12210); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24235, 12117); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 24050, 12025); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23865, 11932); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23680, 11840); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23495, 11747); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23310, 11655); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//标记点
case 1440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23158, 11579); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 23007, 11503); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22856, 11428); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22704, 11352); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22553, 11276); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22402, 11201); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22250, 11125); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 22099, 11049); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21948, 10973); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21796, 10898); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21645, 10822); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//标记点
break;
case 1550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21526, 10763); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21407, 10703); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21288, 10644); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21169, 10584); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 21050, 10525); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20931, 10465); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20812, 10406); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20694, 10346); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20575, 10287); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20456, 10227); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20337, 10168); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20218, 10108); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 20099, 10049); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19980, 9989); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19861, 9930); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19742, 9871); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19623, 9811); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19504, 9751); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19385, 9692); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19267, 9633); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19148, 9573); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 19029, 9513); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18910, 9454); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18791, 9395); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18672, 9335); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18553, 9276); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18434, 9216); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18315, 9157); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//标记点
case 1830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18223, 9111); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18130, 9064); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 18038, 9018); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17945, 8972); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17853, 8926); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17760, 8879); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17668, 8833); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17575, 8787); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17483, 8741); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17390, 8694); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17298, 8648); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17205, 8602); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17113, 8555); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 17020, 8509); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16928, 8462); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16835, 8416); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 1990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16743, 8370); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 1);
API_GPIO_Output(2, 0);
API_GPIO_Output(3, 0);
API_GPIO_Output(4, 0);
API_GPIO_Output(5, 0);
API_GPIO_Output(6, 0);
API_GPIO_Output(7, 0);
API_GPIO_Output(1, 1);
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16650, 8324); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//标记点
case 2010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16569, 8272); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16487, 8220); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16406, 8168); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16324, 8116); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16240, 8081); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16155, 8047); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 16071, 8012); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15987, 7977); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15902, 7943); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15818, 7908); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15749, 7882); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15679, 7856); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15610, 7830); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15541, 7804); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15471, 7778); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15402, 7752); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15332, 7726); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15263, 7700); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15194, 7648); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15124, 7596); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 15055, 7544); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14985, 7492); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//标记点
case 2230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14924, 7462); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14864, 7431); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14803, 7401); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14742, 7371); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14682, 7340); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14621, 7310); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14548, 7274); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14475, 7237); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14403, 7201); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14330, 7164); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14257, 7128); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14196, 7098); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14136, 7067); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14075, 7037); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 14030, 7014); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13984, 6992); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13939, 6969); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13893, 6946); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13832, 6916); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13771, 6885); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13711, 6855); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13650, 6825); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13589, 6794); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13528, 6764); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13467, 6733); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13407, 6702); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13346, 6672); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13301, 6650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13256, 6627); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13210, 6605); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13164, 6582); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13103, 6552); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 13043, 6521); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12982, 6491); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12937, 6468); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12891, 6446); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12846, 6423); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12800, 6400); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12754, 6377); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12709, 6354); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12663, 6332); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12618, 6309); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12572, 6286); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12527, 6263); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12481, 6240); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12436, 6218); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12390, 6195); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12345, 6172); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12299, 6149); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12254, 6126); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12208, 6103); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12162, 6081); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12117, 6058); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12071, 6035); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break; //标记点
case 2770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 12026, 6012); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11980, 5990); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11935, 5967); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11889, 5944); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11844, 5921); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11798, 5899); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11753, 5876); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11707, 5853); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11671, 5835); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11634, 5817); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11598, 5798); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11561, 5780); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11525, 5762); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11480, 5739); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11434, 5717); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11389, 5794); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11343, 5671); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11307, 5653); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11270, 5635); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11234, 5616); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11197, 5598); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11161, 5580); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 2990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11125, 5562); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 1);
API_GPIO_Output(2, 0);
API_GPIO_Output(3, 0);
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, 11088, 5544); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11052, 5525); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 11015, 5507); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10979, 5489); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10949, 5474); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10918, 5459); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10888, 5444); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10843, 5421); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10797, 5398); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10767, 5383); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10736, 5368); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10706, 5353); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10675, 5337); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10645, 5322); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10614, 5307); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10578, 5289); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10541, 5271); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10505, 5252); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10468, 5234); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10432, 5216); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10402, 5201); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10371, 5186); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10341, 5170); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10311, 5155); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10280, 5140); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10250, 5125); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10220, 5107); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10189, 5088); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10158, 5070); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10128, 5051); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10098, 5033); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10068, 5014); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10038, 5002); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 10007, 4990); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9977, 4979); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9947, 4967); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9916, 4955); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9886, 4943); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9856, 4928); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9825, 4913); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9795, 4897); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9765, 4882); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9734, 4867); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9704, 4852); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9674, 4837); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9643, 4821); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9613, 4806); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9583, 4791); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9552, 4775); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9527, 4766); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9502, 4759); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9478, 4749); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9453, 4740); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9429, 4731); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9404, 4722); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9379, 4718); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9354, 4714); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9330, 4696); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9305, 4687); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9280, 4678); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9256, 4669); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9207, 4624); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9182, 4601); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9157, 4578); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9132, 4567); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9112, 4555); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9089, 4544); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9066, 4532); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9043, 4521); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 9021, 4510); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8998, 4498); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8975, 4487); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8949, 4474); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8923, 4461); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8897, 4448); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8871, 4435); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8845, 4422); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8819, 4409); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8793, 4396); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8770, 4385); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8748, 4374); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8725, 4362); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8702, 4351); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8679, 4339); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8656, 4328); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8634, 4317); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8611, 4305); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8593, 4296); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8575, 4287); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8556, 4278); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8538, 4269); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8520, 4260); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8497, 4249); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8475, 4237); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8452, 4226); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8429, 4214); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8406, 4203); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8384, 4192); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8361, 4180); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 3990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8338, 4169); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 0);
API_GPIO_Output(2, 1);
API_GPIO_Output(3, 0);
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, 8315, 4158); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8293, 4146); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8270, 4135); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8247, 4123); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8231, 4115); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8216, 4108); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8200, 4100); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8178, 4089); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8156, 4078); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8139, 4070); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8123, 4063); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8106, 4055); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8085, 4044); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8065, 4032); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8042, 4021); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 8020, 4010); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7997, 3998); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7974, 3987); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7956, 3978); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7937, 3969); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7919, 3959); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7900, 3950); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7882, 3941); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7864, 3932); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7846, 3923); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7827, 3914); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7809, 3905); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7791, 3896); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7773, 3887); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7755, 3878); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7736, 3868); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7718, 3859); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7700, 3850); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7682, 3841); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7664, 3832); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7645, 3823); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7627, 3814); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7609, 3805); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7594, 3797); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7579, 3790); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7564, 3782); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7548, 3774); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7533, 3767); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7518, 3759); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7500, 3750); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7482, 3741); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7463, 3732); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7445, 3723); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4480:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7427, 3714); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4490:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7412, 3706); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4500:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7397, 3699); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4510:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7382, 3691); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4520:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7367, 3683); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4530:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7351, 3675); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4540:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7336, 3668); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4550:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7318, 3658); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4560:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7300, 3648); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4570:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7281, 3638); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4580:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7263, 3628); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4590:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7245, 3618); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4600:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7230, 3610); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4610:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7215, 3601); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4620:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7200, 3593); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4630:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7185, 3584); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4640:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7169, 3576); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4650:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7154, 3567); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4660:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7139, 3560); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4670:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7124, 3554); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4680:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7109, 3547); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4690:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7094, 3540); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4700:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7078, 3534); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4710:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7063, 3527); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4720:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7048, 3520); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4730:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7033, 3514); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4740:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7018, 3507); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4750:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 7003, 3500); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4760:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6987, 3493); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4770:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6972, 3486); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4780:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6957, 3479); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4790:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6942, 3471); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4800:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6927, 3464); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4810:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6916, 3458); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4820:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6904, 3453); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4830:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6893, 3447); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4840:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6881, 3441); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4850:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6866, 3433); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4860:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6851, 3426); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4870:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6836, 3418); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4880:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6821, 3410); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4890:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6805, 3403); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4900:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6790, 3395); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4910:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6775, 3388); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4920:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6760, 3380); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4930:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6745, 3373); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4940:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6734, 3367); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4950:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6723, 3362); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4960:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6711, 3356); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4970:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6700, 3350); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4980:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6685, 3342); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 4990:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6670, 3336); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5000:
API_GPIO_Output(0, 0);
API_GPIO_Output(1, 0);
API_GPIO_Output(2, 1);
API_GPIO_Output(3, 0);
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, 6654, 3327); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5010:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6643, 3321); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5020:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6631, 3315); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5030:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6620, 3309); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5040:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6608, 3304); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5050:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6593, 3296); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5060:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6577, 3288); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5070:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6562, 3281); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5080:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6551, 3276); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5090:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6540, 3270); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5100:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6528, 3265); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5110:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6517, 3259); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5120:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6502, 3251); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5130:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6487, 3244); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5140:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6472, 3236); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5150:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6461, 3230); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5160:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6449, 3224); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5170:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6437, 3219); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5180:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6426, 3213); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5190:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6411, 3206); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5200:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6395, 3198); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5210:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6380, 3191); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5220:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6369, 3185); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5230:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6357, 3180); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5240:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6345, 3174); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5250:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6335, 3168); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5260:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6324, 3162); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5270:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6312, 3156); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5280:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6301, 3151); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5290:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6290, 3145); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5300:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6278, 3139); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5310:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6267, 3133); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5320:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6255, 3127); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
//case 3650:
// API_PWM_SetDiv(0, 2);//2850656057
// API_PWM_Start(0, 5272, 2636); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// break;
case 5330:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6244, 3122); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5340:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6233, 3116); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5350:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6222, 3111); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5360:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6211, 3105); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5370:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6200, 3100); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5380:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6186, 3092); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5390:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6172, 3084); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5400:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6158, 3076); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5410:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6147, 3070); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5420:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6136, 3065); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5430:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6125, 3058); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5440:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6115, 3053); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5450:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6104, 3047); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5460:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6093, 3042); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;
case 5470:
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 6081, 3036); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
break;