CW210开发板外围电路原理及应用

版权申诉
0 下载量 196 浏览量 更新于2024-11-10 收藏 221KB RAR 举报
资源摘要信息: "CW210-Peripherial_ver2.rar_CW210-COREC_cw210" 根据提供的信息,我们可以推断出以下IT知识: 1. CW210开发板:CW210是一种开发板,用于嵌入式系统的学习和开发。它可能是一个特定型号的开发板,用于教育或个人项目。 2. 周边电路原理图:该文件包含CW210开发板的外围电路原理图,这是理解开发板功能和设计的关键部分。电路原理图是电子工程中的一种图表,用于展示电子组件以及它们之间的连接和操作关系。原理图对于理解和维护电路至关重要,因为它可以提供清晰的视图来分析电路的运行方式。 3. 达内嵌入式系统:描述中提到“达内嵌入式使用”,这表明CW210开发板可能是由达内(Tarena)开发或支持的。达内是一家提供IT培训的教育机构,它提供各种技术课程,包括嵌入式系统设计和开发。这暗示CW210开发板可能被用于教学目的,帮助学生理解和实践嵌入式系统开发。 4. CW210-COREC标签:标签中的CW210-COREC可能指开发板的某种特定功能或模块。 COREC可能是一个缩写或代号,用于区分开发板的不同版本或配置。在这里,它可能代表CW210开发板的核心控制器或核心电路部分。 5. 压缩包文件格式:文件以“.rar”为后缀,表明它是一个压缩文件。RAR是一种广泛使用的压缩文件格式,它允许用户将多个文件压缩到一个较小的文件中,以方便传输和存储。在这种情况下,文件可能包含一个或多个与CW210开发板相关的文档或设计文件。 6. 文件名CW210-Peripherial_ver2.pdf:给出的文件名表明该文件是CW210外围板电路原理图的第二版PDF文档。PDF(便携式文档格式)是一种文件格式,用于将文件以与操作系统无关的方式呈现,保持格式和内容不变,非常适合文档的共享和打印。 总结来说,CW210-Peripherial_ver2.rar_CW210-COREC_cw210这个资源可能是指一个用于嵌入式系统教育和培训的开发板——CW210的周边电路原理图的压缩包文件。它可能是由达内这样的教育机构使用的教学材料。此压缩包中包含电路原理图的PDF文件,对于学习嵌入式系统设计、理解和维护相关硬件电路具有较高的参考价值。

select lot_hs.lot_id as lot_id,lot_type,lot_hs.mainpd_id, created_time,COMPLETE_TIME, value(bank.banktime,0) as banktime , round ( ( 1.00*(days(COMPLETE_TIME)-days(created_time)) + (hour(COMPLETE_TIME)-hour(created_time))*1.00/24 + (minute(COMPLETE_TIME)-minute(created_time))*1.00/24/60 + (second(COMPLETE_TIME)-second(created_time))1.00/24/60/60) - value(bank.banktime,0),3) as use_days, customer_id, coalesce(cc.cust_id_define,lot_hs.customer_id) as cust_id2, cc.cycletime_target as ct_target, date,layer, round(count() over(partition by coalesce(cc.cust_id_define,lot_hs.customer_id),cc.cycletime_target)*0.9,0) cnt, row_number() over(partition by coalesce(cc.cust_id_define,lot_hs.customer_id),cc.cycletime_target order by ( ( days(COMPLETE_TIME)-days(created_time) + (hour(COMPLETE_TIME)-hour(created_time))*1.00/24 + (minute(COMPLETE_TIME)-minute(created_time))*1.00/24/60 + (second(COMPLETE_TIME)-second(created_time))*1.00/24/60/60) - value(bank.banktime,0))/layer) id From (select date(a.claim_time) as date, a.lot_id, a.lot_type,a.mainpd_id,a.prodspec_id,a.custprod_id, case when(date(b.created_time) <= '2009-01-05') then b.created_time + 21 days else b.created_time end as created_time, CASE WHEN A.CUST_id in ('MCA','NPA','SET') THEN a.COMPLETE_TIME ELSE a.COMPLETE_TIME END COMPLETE_TIME, a.cust_id as customer_id, a.ope_category, c.layer From f3rpt.F3_TB_DAILY_FABOUT a, f3rpt.fvlot b, (select mainpd_id, sum(masks)layer from f3rpt.ASMCRPT_VW_MAINPD_MASKS_ALL group by mainpd_id) as c, (select * from (select lot_id, max(claim_time)claim_time, count(case when(ope_category='Ship')then lot_id else null end) as LS, count(case when(ope_category='Unship') then lot_id else null end) as LUS from f3rpt.F3_TB_DAILY_FABOUT where substr(lot_id,1,2) not in('CA','CW','ES','E0','EM') and lot_type = 'Production' AND LOT_ID NOT LIKE 'H%' and substr(lot_id,7,4)='.00F' and ope_category in ('Ship','Unship') and year(claim_time) = year(current date - 1 days) and month(claim_time) = month(current date - 1 days) group by lot_id) as a where LS - LUS > 0 ) as lot Where a.lot_id = b.lot_id and b.mainpd_id = c.mainpd_id and a.lot_id = lot.LOT_ID and a.claim_time = lot.claim_time and a.ope_category = 'Ship' and a.cust_id in ('SM','BOE','GSC','NPA','GTA') ) as lot_hs left outer join (select lot_id,max(bankin_time) banktime from f3rpt.asmc_dpm where bankin_time>0 group by lot_id) bank on (lot_hs.lot_id = bank.lot_id) left join f3cim.f3cim_cfg_cust_rule cc on case when lot_hs.customer_id='WXM' THEN 'WII'||SUBSTR(lot_hs.mainpd_id,6,1) else lot_hs.customer_id end = cc.cust_id and locate(cc.mainpd_id,lot_hs.mainpd_id)>0 and locate(cc.prodspec_id,lot_hs.prodspec_id)>0 and locate(cc.custprod_id_45,substr(lot_hs.custprod_id,3,3))>0 where lot_hs.ope_category = 'Ship' ;以上sql如何优化

2023-06-07 上传

import maya.cmds as cmds windowName = "AssetsLibraryBatev8" if cmds.window(windowName, ex=True): cmds.deleteUI(windowName) cmds.window(windowName) cmds.columnLayout(adj=1) # body---- cmds.rowColumnLayout( numberOfColumns=3, adj=2, cw=[(1, 185), (3, 200)], h=30, bgc=[0.1, 0.1, 0.1] ) # NAV---- cmds.setParent("..") # NAV---- cmds.rowColumnLayout( numberOfColumns=2, adj=2, cw=[(1, 185)], h=690, bgc=[0.3, 0.3, 0.3] ) # workspace---- cmds.columnLayout(adj=1, h=690, bgc=[0.15, 0.15, 0.15]) # left---- cmds.setParent("..") # left---- # flip--- form = cmds.formLayout(nd=100) flow_layout = cmds.flowLayout(cs=20, bgc=[0.3, 0.3, 0.3], w=600, h=50) def button_ui(Normal_color): def button_change(*args): for buffer in all_button: bgc = cmds.button(buffer, q=1, bgc=1) if bgc == [0.6, 0.6, 0.6]: cmds.button(buffer, e=1, bgc=[0.4, 0.4, 0.4]) else: cmds.button(buffer,e=1, bgc=[0.6, 0.6, 0.6]) Left_Arrow = cmds.button(label="<", h=25, w=25, bgc=Normal_color) # no change Initial_Page = cmds.button( label="1", h=25, w=25, bgc=[0.6, 0.6, 0.6], c=button_change ) Left_Excess = cmds.button(label="2", h=25, w=25, bgc=Normal_color, c=button_change) First_Middle_option = cmds.button( label="3", h=25, w=25, bgc=Normal_color, c=button_change ) Second_Middle_option = cmds.button( label="4", h=25, w=25, bgc=Normal_color, c=button_change ) Third_Middle_option = cmds.button( label="5", h=25, w=25, bgc=Normal_color, c=button_change ) Fourth_Middle_option = cmds.button( label="6", h=25, w=25, bgc=Normal_color, c=button_change ) Right_Excess = cmds.button(label="7", h=25, w=25, bgc=Normal_color, c=button_change) Last_Page = cmds.button(label="8", h=25, w=25, bgc=Normal_color, c=button_change) Right_Arrow = cmds.button(label=">", h=25, w=25, bgc=Normal_color) # no change all_button = [ Initial_Page, Left_Excess, First_Middle_option, Second_Middle_option, Third_Middle_option, Fourth_Middle_option, Right_Excess, Last_Page, ] button_ui([0.4, 0.4, 0.4]) cmds.formLayout( form, edit=True, attachForm=[(flow_layout, "top", 620), (flow_layout, "left", 300)] ) cmds.setParent("..") # flow cmds.setParent("..") # form # flip--- cmds.rowColumnLayout(numberOfColumns=5, h=690, bgc=[0.5, 0.5, 0.5]) # list---- cmds.setParent("..") # list---- cmds.setParent("..") # workspace---- cmds.setParent("..") # body---- cmds.window(windowName, e=1, w=1280, h=720, mxb=False, s=False) cmds.showWindow(windowName)

2023-06-07 上传

优化这段代码void Motor_GB_Position(Motor_HandleTypeDef *H_AXISx) { double t=0; int Distance=0; Distance=(int)((H_AXISx->GBAngle - H_AXISx->REL_GB_Angle)/H_AXISx->GB_MAX*H_AXISx->CP_CountMAX); // if(Distance >= ((int)H_AXISx->CP_CountMAX/2)) // Distance=Distance-(int)H_AXISx->CP_CountMAX; // else if(Distance<= ((int)H_AXISx->CP_CountMAX / -2)) // Distance=(int)H_AXISx->CP_CountMAX+Distance; if(H_AXISx->GBDWFLAG==1) { t=(double)H_AXISx->Newspeed/(double)H_AXISx->Accspeed; H_AXISx->DecCount=(uint32_t)(t*t*(double)H_AXISx->Accspeed/2); if(Distance>5) Motor_Run(H_AXISx->Number , CW); else if(Distance<-5) Motor_Run(H_AXISx->Number , CCW); else { H_AXISx->GBDWFLAG=0; return; } if(H_AXISx->DecCount>abs(Distance/2)) { H_AXISx->DecCount=abs(Distance/2); } H_AXISx->againflag=0; H_AXISx->againcount=0; H_AXISx->GBDWFLAG=2; } else if(H_AXISx->GBDWFLAG==2) { if(abs(Distance)<=H_AXISx->DecCount) { H_AXISx->Newspeed=H_AXISx->MINSpeed; H_AXISx->Accspeed+=H_AXISx->Accspeed/10; Motor_Speed_Calculate(H_AXISx); H_AXISx->GBDWFLAG=3; } } else if(H_AXISx->GBDWFLAG==3) { if((abs(Distance)<=H_AXISx->JINGDU)&&(H_AXISx->againcount>=2)) { H_AXISx->againflag=0; H_AXISx->againcount=0; Motor_Run(H_AXISx->Number,STOP); H_AXISx->Nowspeed=0; H_AXISx->GBDWFLAG=0; } else if((Distance>H_AXISx->JINGDU)&&((H_AXISx->againflag==0)||(H_AXISx->againflag==1)))//&&(H_AXISx->Nowspeed<=H_AXISx->MINSpeed)) { H_AXISx->againflag=2; H_AXISx->againcount++; H_AXISx->Newspeed=H_AXISx->MINSpeed; // Motor_Speed_Calculate(H_AXISx); Motor_Run(H_AXISx->Number,CW); } else if((Distance<-(H_AXISx->JINGDU))&&((H_AXISx->againflag==0)||(H_AXISx->againflag==2)))//&&(H_AXISx->Nowspeed<=H_AXISx->MINSpeed)) { H_AXISx->againflag=1; H_AXISx->againcount++; H_AXISx->Newspeed=H_AXISx->MINSpeed; // Motor_Speed_Calculate(H_AXISx); Motor_Run(H_AXISx->Number,CCW); } } }

2023-06-11 上传