- 0
- 0
- 约1.04万字
- 约 30页
- 2024-04-09 发布于江苏
- 举报
计量经济学期末考试(f)
•计量经济学基础
contents•回归分析
•时间序列分析
目录•计量经济学中的假设检验
•计量经济学中的联立方程模型
•计量经济学中的面板数据分析
01计量经济学基础
-
-
voidmain(void)
{
charcounter=0;//计数器
port_init();//调用端口函数
while(1)
{
if((PIND0x10)==0)
{
if(++counter8)counter=1;
delay_ms(300);
}
if((PIND0x20)==0)
{
counter=counter--;
if(--counter1)counter=8;
delay_ms(300);
}
switch(counter)
{
case1:PORTB=0xfe;break;
case2:PORTB=0xfd;break;
-word.zl-
-
-
case3:PORTB=0xfb;break;
case4:PORTB=0xf7;break;
case5:PORTB=0xef;break;
case6:PORTB=0xdf;break;
case7:PORTB=0xbf;break;
case8:PORTB=0x7f;break;
default:break;
}
}
}
(2).自动循环程序:
#includeiom16v.h
#defineucharunsignedchar
#defineuintunsignedint
//**********延时函数**********//
voiddelay_ms(uintk)
{
uinti,j;
for(i=0;ik;i++)
{
for(j=0;j1140;j++);
-word.zl-
-
-
}
}
//*****************端口设置函数********************//
voidport_init(void){
DDRB=0xFF;//B端口设置为输出
PORTD=0XFF;//输出高电平
DD
原创力文档

文档评论(0)