#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i
标签: 查询学会少年宫
上传时间: 2016-12-29
上传用户:767483511
#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i<j;i++) printf("%5d",add[i]); if(i%5==0) printf("\n"); getch(); fclose(fp); } else printf("Sorry!Cannot find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1; while(flag) {printf("In put the word you want to seqarch:"); scanf("%s",pd); search(strlwr(pd)); printf("\nWould you want to continue?(Y/N):"); getchar(); scanf("%c",&choose); if((tolower(choose))=='n') flag=0; else flag=1; } printf("Thanks for your using!Bye-bye!\n"); getch(); }
标签: 学生专用
上传时间: 2016-12-29
上传用户:767483511
通过在工件表面形成一层高硬度的耐磨材料是提高工件耐磨,抗咬合,耐蚀等性能,从而提高其使用寿命的有效而又经济的方法,TD覆层处理技术以碳化钒覆层为例,其表面硬度可达HV3200左右,较传统的表面处理方法如渗碳HV~900;渗氮HV~1200;镀硬铬HV~1000;甚至渗硼HV 1200~1800等表面处理的硬度高得多,因此具有远优于这些表面处理方法的耐磨性能。
上传时间: 2018-01-30
上传用户:yanjianwen
基于TMS320F2812 光伏并网发电模拟装置PROTEL设计原理图+PCB+软件源码+WORD论文文档,硬件采用2层板设计,PROTEL99SE 设计的工程文件,包括完整的原理图和PCB文件,可以做为你的学习设计参考。 摘要:本文实现了一个基于TMS320F2812 DSP芯片的光伏并网发电模拟装置,采用直流稳压源和滑动变阻器来模拟光伏电池。通过TMS320F2812 DSP芯片ADC模块实时采样模拟电网电压的正弦参考信号、光伏电池输出电压、负载电压电流反馈信号等。经过数据处理后,用PWM模块产生实时的SPWM 波,控制MOSFET逆变全桥输出正弦波。本文用PI控制算法实现了输出信号对给定模拟电网电压的正弦参考信号的频率和相位跟踪,用恒定电压法实现了光伏电池最大功率点跟踪(MPPT),从而达到模拟并网的效果。另外本装置还实现了光伏电池输出欠压、负载过流保护功能以及光伏电池输出欠压、过流保护自恢复功能、声光报警功能、孤岛效应的检测、保护与自恢复功能。系统测试结果表明本设计完全满定设计要求。关键词:光伏并网,MPPT,DSP Photovoltaic Grid-connected generation simulator Zhangyuxin,Tantiancheng,Xiewuyang(College of Electrical Engineering, Chongqing University)Abstract: This paper presents a photovoltaic grid-connected generation simulator which is based on TMS320F2812 DSP, with a DC voltage source and a variable resistor to simulate the characteristic of photovoltaic cells. We use the internal AD converter to real-time sampling the referenced grid voltage signal, outputting voltage of photovoltaic, feedback outputting voltage and current signal. The PWM module generates SVPWM according to the calculation of the real-time sampling data, to control the full MOSFET inverter bridge output sine wave. We realized that the output voltage of the simulator can track the frequency and phase of the referenced grid voltage with PI regulation, and the maximum photovoltaic power tracking with constant voltage regulation, thereby achieved the purpose of grid-connected simulation. Additionally, this device has the over-voltage and over-current protection, audible and visual alarm, islanding detecting and protection, and it can recover automatically. The testing shows that our design is feasible.Keywords: Photovoltaic Grid-connected,MPPT,DSP 目录引言 11. 方案论证 11.1. 总体介绍 11.2. 光伏电池模拟装置 11.3. DC-AC逆变桥 11.4. MOSFET驱动电路方案 21.5. 逆变电路的变频控制方案 22. 理论分析与计算 22.1. SPWM产生 22.1.1. 规则采样法 22.1.2. SPWM 脉冲的计算公式 32.1.3. SPWM 脉冲计算公式中的参数计算 32.1.4. TMS320F2812 DSP控制器的事件管理单元 42.1.5. 软件设计方法 62.2. MPPT的控制方法与参数计算 72.3. 同频、同相的控制方法和参数计算 8
标签: tms320f2812 光伏 并网发电 模拟 protel pcb
上传时间: 2021-11-02
上传用户:
1.5mm间距BGA封装库BGA芯片封装ALTIUM库(AD库PCB封装库 ),51个封装,列表如下:Component Count : 51Component Name-----------------------------------------------BGA150P3X3-9BGA150P4X4-16BGA150P4X4-16ABGA150P5X5-25BGA150P5X5-25ABGA150P5X5-25BBGA150P6X6-36BGA150P6X6-36ABGA150P6X6-36BBGA150P7X7-49BGA150P7X7-49ABGA150P7X7-49BBGA150P8X8-64BGA150P8X8-64ABGA150P8X8-64BBGA150P9X9-81BGA150P9X9-81ABGA150P10X10-100BGA150P10X10-100ABGA150P11X11-121BGA150P11X11-121ABGA150P12X12-144BGA150P13X13-169BGA150P14X14-196BGA150P14X14-196ABGA150P15X15-225BGA150P15X15-225ABGA150P15X15-225BBGA150P16X16-256BGA150P17X17-289BGA150P18X18-324BGA150P18X18-324ABGA150P19X19-361BGA150P19X19-361ABGA150P20X20-400BGA150P21X21-441BGA150P22X22-484BGA150P22X22-484ABGA150P23X23-529BGA150P24X24-576BGA150P25X25-625BGA150P25X25-625ABGA150P26X26-676BGA150P27X27-729BGA150P28X28-784BGA150P29X29-841BGA150P30X30-900BGA150P30X30-900ABGA150P31X31-961BGA150P32X32-1024BGA150P33X33-1089
标签: BGA封装库
上传时间: 2021-11-30
上传用户:qingfengchizhu
1mm间距BGA芯片封装库ALTIUM库PCB封装库(AD库 ),114个,封装库型号列表:Component Count : 114Component Name-----------------------------------------------BGA100P5X5-25BGA100P6X6-36BGA100P6X6-36ABGA100P7X7-49BGA100P7X7-49ABGA100P8X8-64BGA100P8X8-64ABGA100P9X9-81BGA100P9X9-81ABGA100P10X10-100BGA100P10X10-100ABGA100P10X10-100BBGA100P10X10-100CBGA100P11X11-121BGA100P11X11-121ABGA100P12X12-144BGA100P12X12-144ABGA100P12X12-144BBGA100P13X13-169BGA100P13X13-169ABGA100P14X14-160BGA100P14X14-176BGA100P14X14-196BGA100P14X14-196BBGA100P15X15-225BGA100P16X16-208BGA100P16X16-256BGA100P16X16-256BBGA100P16X16-256CBGA100P17X17-169BGA100P17X17-289BGA100P18X18-320BGA100P18X18-324BGA100P19X19-361BGA100P20X20-292BGA100P20X20-400BGA100P20X20-400ABGA100P21X21-441BGA100P22X22-324BGA100P22X22-388BGA100P22X22-456BGA100P22X22-484BGA100P22X22-484BBGA100P22X22-484CBGA100P22X22-484DBGA100P23X23-413BGA100P23X23-529BGA100P24X24-552BGA100P24X24-552ABGA100P24X24-552BBGA100P24X24-576BGA100P24X24-576ABGA100P25X25-625BGA100P26X26-352BGA100P26X26-388BGA100P26X26-416BGA100P26X26-452BGA100P26X26-456ABGA100P26X26-484BGA100P26X26-665BGA100P26X26-668BGA100P26X26-672BGA100P26X26-675BGA100P26X26-676BGA100P26X26-676ABGA100P27X27-729BGA100P28X28-780BGA100P28X28-780ABGA100P28X28-783BGA100P28X28-784BGA100P29X29-841BGA100P30X30-516BGA100P30X30-556BGA100P30X30-676BBGA100P30X30-896ABGA100P30X30-900BGA100P31X31-961BGA100P32X32-772BGA100P32X32-772ABGA100P32X32-1020BGA100P32X32-1024BGA100P33X33-1089BGA100P34X34-580BGA100P34X34-680BGA100P34X34-1136BGA100P34X34-1148BGA100P34X34-1152ABGA100P34X34-1152BBGA100P34X34-1153BGA100P34X34-1156BGA100P36X36-1296BGA100P37X37-1369BGA100P38X38-1444BGA100P39X39-680BGA100P39X39-680ABGA100P39X39-792BGA100P39X39-896BGA100P39X39-1508ABGA100P39X39-1513BGA100P39X39-1517BGA100P39X39-1521BGA100P41X41-1681BGA100P42X42-860BGA100P42X42-1696BGA100P42X42-1704BGA100P42X42-1738BGA100P42X42-1760BGA100P42X42-1764
上传时间: 2021-11-30
上传用户:
基于STC15W201单片机+PT4115的彩灯 ALTIUM AD硬件原理图+PCB文件
上传时间: 2022-03-17
上传用户:
GJB/Z 99-1997 系统安全性工程手册为GJB 900《系统安全性通用大纲》的支持标准,在J用系统研制中怪车和实施GJB 900提供一套较为完整的系统安全管理、系统安全分析、系统安全设计和验证的程序和方法,以促进我过J用系统安全性水平。
标签: 系统安全性
上传时间: 2022-04-08
上传用户:wangshoupeng199
1.Spartan-6 系列封装概述Spartan-6 系列具有低成本、省空间的封装形式,能使用户引脚密度最大化。所有Spartan-6 LX 器件之间的引脚分配是兼容的,所有Spartan-6 LXT器件之间的引脚分配是兼容的,但是Spartan-6 LX和Spartan-6 LXT器件之间的引脚分配是不兼容的。表格1 Spartan-6 系列FPGA封装2.Spartan-6 系列引脚分配及功能详述Spartan-6 系列有自己的专用引脚,这些引脚是不能作为Select IO 使用的,这些专用引脚包括:专用配置引脚,表格2 所示GTP高速串行收发器引脚,表格3 所示表格2 Spartan-6 FPGA专用配置引脚注意:只有LX75, LX75T, LX100, LX100T, LX150, and LX150T器件才有VFS、VBATT、RFUSE引脚。表格3 Spartan-6 器件GTP通道数目注意:LX75T 在FG(G)484 和CS(G)484 中封装4 个GTP通道,而在FG(G)676中封装了8 个GTP通道;LX100T在FG(G)484 和CS(G)484 中封装4个GTP通道,而在FG(G)676 和FG(G)900中封装了8 个GTP通道。如表4,每一种型号、每一种封装的器件的可用IO 引脚数目不尽相同,例如对于LX4TQG144器件,它总共有引脚144 个,其中可作为单端IO 引脚使用的IO 个数为102 个,这102 个单端引脚可作为51 对差分IO 使用,另外的32 个引脚为电源或特殊功能如配置引脚。表格4 Spartan6 系列各型号封装可用的IO 资源汇总表格5 引脚功能详述
标签: spartan-6
上传时间: 2022-06-18
上传用户:
【摘要】HP3射频接收发组件比前一代提供了更完整的兼容性等改进。适用于低成本、高性能的902-928MHz频带的无线传输模拟或数字信号的收发。所有HP3系列模块都具有8位串行通信功能,目前也新增了高达100位的。引脚和封装兼容所有前几代,但其总的物理尺寸也有所减少。现存贴片式和直插式两种。理想情况下,HP3收发组件能够确定一个长达1000英尺可靠的传输模拟和数字信号的信道。如同所有的Linx模块,HP3无需调整或补充射频元件(天线除外),即使没有经验的射频工程师也能自如运用。【关键词】HP3射频收发封装一、引言随着科技的飞速发展,通信已经是最为迫切发展的热门行业。而现代通信正向着无线通信技术的方向发展。无线收发系统的设计成为了现代通信领域里的一大高端课题,无论短距离无线收发还是远距离无线收发都有待进一步发展。本收发系统有主要由TXM-900-HP3,RXM-900-HP3两芯片构成,之所以选择这两款芯片是因为它们具有较高的性能,价格低廉,而且无需复杂的外部电路应用简单等诸多优点。下面我们来一起了解一下这两款芯片,从而了解本系统。
上传时间: 2022-06-19
上传用户:wangshoupeng199