Курсовая работа: Устройство управления системой измерения веса
{
unsigned char i;
for(i=0;i<4;i++)
{
PositionPort = AllDigitsOFF;
SymbolPort = BufSeg(i);
PositionPort = DigitNmb(i)
}
}
Файл main.c
//== Include files =========================
#include <mega16.h>
#include <bitsm16.h>
#include <ind.h>
#include "ctype.h"
#include "stdlib.h"
//== Common declarations ==========================
#define Tmr0_Reload 1;
#define PrescalerTmr0 4; // timer0 counts clk/256
#define PrescalerTmr1 5; // timer1 counts clk/1024
#define comp_t1 36000-1; // coBnaDeHie 1ro taimepa
//== Global Variables ==========================
unsigned char Tmr0Flag;
unsigned char Tmr1Flag;
unsigned char Tmr0Cnt;
unsigned char NewPortSignal;
unsigned char RealSignal;
unsigned char kol_otg;
//== Port Initialisation ===================================