簡(jiǎn)易頻率計(jì)的制作
頻率計(jì)計(jì)算程序:
#include
# define uchar unsigned char
# define uint unsigned int
sbit dout=P3^0;
unsigned char num;
void init()
{
}
void time() interrupt 1
{
}
void main()
{
}
產(chǎn)生方波信號(hào)程序:
#include
# define uchar unsigned char
# define uint unsigned int
sbit dout=P3^0;
unsigned char num;
void init()
{
}
void time() interrupt 1
{
}
void main()
{
}
兩個(gè)MCU的P3^0口用一根杜邦線連接起來(lái)
評(píng)論