Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - max
Search - max - List
为每一个待译码bit计算其LLR 得到一个序列中的最大值无素. 计算外信息for each decoded bit
Date : 2011-02-09 Size : 9.98kb User : ludahaiii@sohu.com

DL : 0
#include"c8051f020.h" #define Tcount 13333 sbit SPWM_OUT1=P0^4; sbit SPWM_OUT2=P0^5; //调制度为0.8// unsigned int code sin_H[25]={26,78,129,178,224,267,305,338,367,389,405,415,418,415,405,389,367,338,305,267,224,178,129,78,26}; unsigned int code sin_L[25]={497,445,394,345,299,256,218,185,156,134,118,108,105,108,118,134,156,185,218,256,299,345,394,445,497}; unsigned max=24; unsigned char i_SPWM1,i_SPWM2; unsigned int temp0,temp1; void SysclkInit(void) { OSCICN=0x87; //设置SYSCLK为16MHz内部振荡器 } void PortInit(void) { XBR0=0x1d; //使CEX0和CEX1输出到P0.0、P0.1 XBR1=0x14; //外部中断0端脚来测频率,外部中断1端脚来测相位差 XBR2=0x40; //允许交叉开关和弱上拉 P0MDOUT=0xff; //端口引脚输出方式为推挽 } void PCA0Init(void) { PCA0MD=0x00; //设置空闲等待方式,PCA时基=SYSCLK/12 //禁止CF中断 PCA0CPM0=0x4d; //PCA输出方式选择,8位pwm PCA0CPM1=0x4d; }
Date : 2011-10-26 Size : 33kb User : daiweiran@yahoo.cn

CIC滤波器matlab代码 D=5; r=D; fs=1e5; S3_cic=conv(conv(ones(1,D),ones(1,D)),ones(1,D)); %三个单级卷积 [h3,f3]=freqz(S3_cic,1,1000,fs); plot(f3/(fs/2),20*log10(abs(h3))-max(20*log10(abs(h3))),'r','LineWidth',1.4) ylabel('\fontsize{12}\bf幅度响应(dB)') xlabel('\fontsize{12}\bf归一化频率(\times\pi rad/sample)') grid; box on; axis([0 1 -80, 0])
Date : 2012-05-30 Size : 680byte User : 530228758@qq.com
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.