The tar file contains the following files: ptfsf.c: heart of the perfect TFSF code ptfsf.h: header file for same ptfsf-demo.c: FDTD code which demonstrates use of perfect TFSF code. Essentially this program used to generate results shown in the paper ptfsf-file-maker.c: code to generate an incident-field file using the "perfect" incident fields ptfsf-demo-file.c: FDTD code which uses the perfect incident fields stored in a file fdtdgen.h: defines Macros used in much of my code Makefile: simple make-file to compile programs Also include are some simple script files to run the programs with reasonable values. The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region first. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.)
标签: ptfsf following the contains
上传时间: 2013-11-28
上传用户:风之骄子
DWT变换源代码,As a special exception, you may use this file as part of a free software library without restriction. Specifically, if other files instantiate templates or use Macros or inline functions from this file, or you compile this file and link it with other files to produce an executable, this file does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License.
上传时间: 2014-12-05
上传用户:ynsnjs
我收藏的c語言900個例題,裡頭有控制dos-bios,memory,Macros,math....的一些範例,原碼可能很簡單但是很實用,希望大家喜歡
标签: 900
上传时间: 2015-09-08
上传用户:小码农lz
This design package includes reference materials for creating a USB - PS/2 combination mouse that auto-detects the interface and configures itself to operate on the appropriate bus. Documentation docs - Designing a low cost CY7C63723 combination mouse.pdf - application note for this design - schematic.pdf - mouse schematic Firmware Source Files src - chip.c - include file that defines CY7C63723 constants - combi.c - main source file - combi.hex - Intel hex file for programming a CY7C63723 microcontroller - combi.lst - output listing from c-compiler for use with the CYDB debugger - Macros.h - defines Macros used in combi.c - ps2defs.h - defines PS/2 interface constants - usb_desc.h - defines the USB descriptors - usbdefs.h - defines USB interface constants
标签: combination materials reference creating
上传时间: 2015-10-19
上传用户:784533221
Advanced_modelling_in_finance_using_Excel_and_VBA(pdf) The book adopts a step-by-step approach to understanding the more sophisticated aspects of Excel Macros and VBA programming, showing how these programming techniques can be used to model and manipulate financial data, as applied to equities, bonds and options. The book is essential for financial practitioners who need to develop their financial modelling skill sets as there is an increase in the need to analyse and develop ever more complex what if scenarios.
标签: Advanced_modelling_in_finance_usi ng_Excel_and_VBA step-by-step approach
上传时间: 2013-12-14
上传用户:txfyddz
File: fw.c Contents: Firmware frameworks task dispatcher and device request parser File: FX2.h Contents: EZ-USB FX2 constants, Macros, datatypes, globals, and library function prototypes. File: FX2regs.h Contents: EZ-USB FX2 register declarations and bit mask definitions. File: periph.c Contents: Hooks required to implement USB peripheral function. File: dscr.a51 Contents: This file contains descriptor data tables. File: dscr.a51 Contents: This file contains descriptor data tables. File: dscr.a51 Contents: This file contains descriptor data tables.
标签: File frameworks dispatcher Contents
上传时间: 2014-01-18
上传用户:bakdesec
IDE开发环境,可以挂载SDCC The BASIC IDE is a new, RAD (Rapid Application Development) IDE (Integrated Development Environment) for the RapidQ programming language. The IDE currently has rich project options, a form designer (similar to Delphi s), and code editor. The BASIC IDE is being coded in Borland® Delphi® . We are currently using Delphi 6, but you should be able to use Delphi 3 or later (Delphi 7 included). Some of the BASIC IDEs features include: Form Designer with support for all of RapidQ s components Flexible Code Editor Project Management Written in OO (Object Oriented) Delphi. Some future items that we are working on are: Code Tip Code Completion CVS Integration Code Editor Macros Point-and-Click access to subroutines, functions, and variables
上传时间: 2016-07-05
上传用户:dapangxie
/**************************************************************** 外部晶振8M PA0~3:四位数码管的位选 PB0~7:数码管的8位段选 外部中断0用于计数 定时器0溢出中断的定时为1ms 说明 :检测到水流较小时,继电器延时1秒关闭 ******************************************************************/ #include<iom16v.h> #include<Macros.h> #define uchar unsigned char #define uint unsigned int char led_7[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; //数码管段选 char position[4]={0xfe,0xfd,0xfb,0xf7};//数码管位选 uint sumnum=0; //用于记录1000ms内进入中断的次数 uint time=0; //记录进入比较定时器0的次数 uint num=0; //记录1ms内进入中断的次数 uint count=0; //进入外部中断0的次数 uchar flag; uint sumnum1; //记录100ms内的数目 /***************************函数声明***************************/ void delay(); void display(uint m ); void init(); void init_0(); void init_2(); void _delay_us(uint l) { unsigned int i; for(i=0;i<l;i++) { asm("nop"); } } /**************************主函数***********************************/ void main() { init(); init_0(); init_2(); while(sumnum<5) { PORTD=0XBF; segdisplay(sumnum1); } while(1) { segdisplay(sumnum1); } } /*************************扫描数码管时的延时函数*********************/ void delay() { uchar i,j; for(i=6;i>0;i--) for(j=225;j>0;j--); } /************************数码管显示函数*****************************/ void segdisplay( int temp) { int seg[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; int temp1,temp2,temp3,temp4; temp1=temp/1000; temp2=(temp/100)%10; temp3=(temp/10)%10; temp4=temp%10; DDRB=0xff; DDRA|=0x0f; PORTA=~BIT(3); PORTB=seg[temp1]; _delay_us(100); PORTA=~BIT(2); PORTB=seg[temp2]; _delay_us(100); PORTA=~BIT(1); PORTB=seg[temp3]; _delay_us(100); PORTA=~BIT(0); PORTB=seg[temp4]; _delay_us(100); } /***********************管脚初始化函数*********************/ void init() { DDRD|=0X40; //PD4 设置为输出 PORTD=0XBF; DDRA=0XFF; DDRB=0XFF; PORTA=0XFF; PORTB=0XFF; } /***********************外部中断0初始化*********************/ void init_0() { MCUCR=0X02; //INT0为下降沿触发 GICR=0X40; //使能INT0中断 SREG=0X80; //使能总中断 } /**********************定时器2初始化***********************/ void init_2() { TCCR0=0x03; // 内部时钟,64 分频(8M/64=125KHz) TCNT0=0x83; //装初值 TIMSK=0x01; // 允许 T/C0溢出中断中断 } /***********************外部中断0子函数********************/ #pragma interrupt_handler int0_isr:2 void int0_isr(void) { count++; } /*********************定时计数器0溢出中断子函数*****************/ #pragma interrupt_handler int0_over:10 void int0_over(void) { TCNT0=0x83; //重装初值 if((time%100) == 0) sumnum1 = num; if(time == 1000) { sumnum=num; if(sumnum<10) { if((flag==1)&&(sumnum<10)) { PORTD=0XFF; flag=0; } flag++; } else PORTD=0XBF; num=0; time=0; } num+=count; count=0; ++time; }
标签: C语言
上传时间: 2016-03-09
上传用户:彦 yan
#include <hidef.h> /* common defines and Macros */ #include "derivative.h" /* derivative-specific definitions */ #include <mc9s12xs128.h> //定义PID参数 #define VV_KPVALUE 3 //比例 #define VV_KIVALUE 40 //积分 #define VV_KDVALUE 3 //微分 #define VV_MAX 10000 //返回的最大值,是pwm的周期值 #define VV_MIN 0 #define VV_DEADLINE 0X08 //速度PID,设置死区范围 typedef struct PID //定义数法核心数据 { signed int vi_Ref; //速度PID,速度设定值 signed int vi_FeedBack; //速度PID,速度反馈值
上传时间: 2016-04-27
上传用户:547453159