如何用protues仿真c语言

Python017

如何用protues仿真c语言,第1张

protues里面只能仿真单片机的执行文件,也就是说proteus并不能直接仿真C语言。需要使用

特定编译器把C语言编译成hex文件,然后在proteus当中加载。

所以请确认你的目标单片机在proteus的支持列表当中

你定义字符

char

a=7//这个输出就可以发声。。这是系统的发生。。

#include

#include

#include

#include

#define N 10

void fun()

{

printf("OK,now fun() start!!")

printf("%c",7)//这里发声

}

void main()

{

clock_t start,end

int i=0

Sleep(1000) //这里定时

fun()

}