STM8多通道频率捕获
时间:10-02
整理:3721RD
点击:
写了个STM8多通道的频率捕获,不知道问题出在哪里,求交流
#include "stm8s.h"
#include "stm8s208r.h"
#include "delay.h"
#include "1602.h"
unsigned int CaptureValue1_1,CaptureValue1_2;
unsigned int CaptureValue2_1,CaptureValue2_2;
unsigned int CaptureValue3_1,CaptureValue3_2;
//unsigned long R;
unsigned long frequency1,frequency2,frequency3;
unsigned char R[3],C[3],L[3];
void chufa(void);
void display(void);
void capture_R(void);
void capture_C(void);
void capture_L(void);
void main(void)
{
#include "stm8s.h"
#include "stm8s208r.h"
#include "delay.h"
#include "1602.h"
unsigned int CaptureValue1_1,CaptureValue1_2;
unsigned int CaptureValue2_1,CaptureValue2_2;
unsigned int CaptureValue3_1,CaptureValue3_2;
//unsigned long R;
unsigned long frequency1,frequency2,frequency3;
unsigned char R[3],C[3],L[3];
void chufa(void);
void display(void);
void capture_R(void);
void capture_C(void);
void capture_L(void);
void main(void)
{
这种帖子有意思么?什么程序附件都没有..