O
otuzsubat
Guest
V CCS kompilátor nie je také príkazy.(asm ( "clrwdt"))
Mohli by ste mi povedať, whis překladač je to?
# Include <pic.h>
# Include <stdio.h>
# Include <stdlib.h>
# Include <string.h>
# Define START RA3
# Define STOP RA4
# Define KAPAK RA5
# Define ALARM RC0
# Define açık RA1 / / input
# Define Kapała RA2
# Define YEMDURUM RC1
# Define HIGH 1
# Define LOW 0
# Define MIKTAR 0x49
# Define A_Adresi 100
# Define C_Adresi 99
# Define S_Adresi 98
# Define Step_Adresi 97
# Define C_Adresi1 89
# Define Saat 96
# Define dakika 95
# Define Yil 94
# Define Ay 93
# Define Gun 92
# Define Yem_Saati 91
# Define Yem_Dakika 90
# Define ADC_CHANNEL ADCON0 / / ADC Config Reg
# Define START_ADC ADGO = 1
# Define ADC_RESULT ADRESA
# Define WAIT_ADC while (ADGO)
# Define HAV asm ( "clrwdt")
# Define KEY_BASE 60
# Define SLOPE_BASE 58
# Define SLOPE_INC 4
# Define SEC 200
statické unsigned char ekran_no;
statické unsigned char a, b, sayac;
# Define mod%
# Define a &
# Define nolines 2
# Define nochars 16
# Define tablen 5
# Define BIRSATIR 16
# Define slučky (k) u (leafar = 0; leafar <(k); leafar )
# Define LCD_STROBE ((LCD_EN = 1), (LCD_EN = 0))statické trochu LCD_RS @ ((unsigned) & Portbou * 8 2) / / Register výber
statické trochu LCD_EN @ ((unsigned) & Portbou * 8 3); / / Zapnevoid gotoxy (unsigned, unsigned);
void CLR (unsigned char);
void Tus_decode (unsigned char);
void Eprom_Write (void);
unsigned char rd_e2 (unsigned char adr);
void wr_e2 (unsigned char DÁT1, unsigned char adr);
/************************** DEGISKENLER ********************** /
bank2 unsigned char yemleme_zamani [24] [2];
bank2 unsigned char ss, ay, Yil, zbraň;
bank2 unsigned char adcnt, adc_en, slučka, AD_str, smp_cnt, smp_point, ch;
bank1 podpísal char sa, dd, prvý;
bánk3 unsigned char cx, kopať, kod_y, kod_y1, kod_y2;
bánk3 unsigned char Y_Saati, Y_Dakika, as, a_s, k;
bank1 float in1, tot1, pv;
bank1 unsigned int pw1;
bank1 unsigned char tus, tus_kod, kod, prv_kod, key_cnt, key_slope;
bank1 unsigned msec, DELN, sec, loop, chk;
bank1 unsigned char chks;
statické unsigned char Yeni_Tus, Eski_Tus;
statická unsigned int data;
bánk3 statické stbits struct (
unsigned delayx: 1 / * * /
unsigned tus: 1 / * * /
unsigned aout: 1;
unsigned tus1: 1 / * * /
unsigned tus_press: 1 / * * /
unsigned tus_proc: 1;
unsigned mod_ok: 1 / * * /
unsigned yeni: 1;
unsigned timer_thi: 1;
unsigned timer_surucu: 1;
unsigned sorun: 1;
unsigned listov: 1;
unsigned OPN: 1;
unsigned zavrel: 1;
unsigned shut_down: 1;
unsigned prm: 1;
unsigned prm_set: 1;
unsigned alarm_enb: 1;
unsigned alarm_bitti: 1;
unsigned alarm_off: 1;
unsigned alarm_tog: 1;
unsigned Cal: 1;unsigned F1_call: 1 / * * /
unsigned F2_set: 1 / * * /
unsigned F3_Oto: 1 / * * /
unsigned F4: 1 / * * /
unsigned Rise: 1 / * * /
unsigned F6_Man_Oto: 1 / * * /
unsigned Esc: 1 / * * /
unsigned START: 1 / * * /
unsigned STOP: 1 / * * /
unsigned Dk: 1 / * * /
unsigned So: 1 / * * /
unsigned Hotovo: 1 / * * /unsigned E2_Oku: 1 / * * /
unsigned Oku_Set: 1 / * * /
unsigned zostavy: 1 / * * /
unsigned sets_ok: 1 / * * /
unsigned zmena: 1;
unsigned kbhit: 1;
unsigned par_in: 1;st);
const unsigned char c_tab [] =
(
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,
0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0
);void Yem_Ayar (void);
void Yem_Zamani (void);
void M_Vindow (void);
void Oto_Yem (void);
void DelayUs (unsigned x) (
unsigned char dcnt;
/ / Dcnt = (x);
/ / Dcnt = (x / 2);
dcnt = (2 * x);
while (- dcnt! = 0) (HAV;
/ / Continue;
)
void DelayMs (unsigned char CNT)
(
unsigned char i;
do (
i = 4;
/ / Asm ( "clrwdt");
do (
DelayUs (250);
) While (- i);
) While (- CNT);
)
void del1 (unsigned char del)
(
unsigned char k;
while (del) (
for (k = 0; k <2, k ) asm ( "NOP");
del -;
);
)void ekran (void) (if (dig == 7)
(
/ / RST;
RB1 = 1;
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
RB1 = 0;
....
Mohli by ste mi povedať, whis překladač je to?
# Include <pic.h>
# Include <stdio.h>
# Include <stdlib.h>
# Include <string.h>
# Define START RA3
# Define STOP RA4
# Define KAPAK RA5
# Define ALARM RC0
# Define açık RA1 / / input
# Define Kapała RA2
# Define YEMDURUM RC1
# Define HIGH 1
# Define LOW 0
# Define MIKTAR 0x49
# Define A_Adresi 100
# Define C_Adresi 99
# Define S_Adresi 98
# Define Step_Adresi 97
# Define C_Adresi1 89
# Define Saat 96
# Define dakika 95
# Define Yil 94
# Define Ay 93
# Define Gun 92
# Define Yem_Saati 91
# Define Yem_Dakika 90
# Define ADC_CHANNEL ADCON0 / / ADC Config Reg
# Define START_ADC ADGO = 1
# Define ADC_RESULT ADRESA
# Define WAIT_ADC while (ADGO)
# Define HAV asm ( "clrwdt")
# Define KEY_BASE 60
# Define SLOPE_BASE 58
# Define SLOPE_INC 4
# Define SEC 200
statické unsigned char ekran_no;
statické unsigned char a, b, sayac;
# Define mod%
# Define a &
# Define nolines 2
# Define nochars 16
# Define tablen 5
# Define BIRSATIR 16
# Define slučky (k) u (leafar = 0; leafar <(k); leafar )
# Define LCD_STROBE ((LCD_EN = 1), (LCD_EN = 0))statické trochu LCD_RS @ ((unsigned) & Portbou * 8 2) / / Register výber
statické trochu LCD_EN @ ((unsigned) & Portbou * 8 3); / / Zapnevoid gotoxy (unsigned, unsigned);
void CLR (unsigned char);
void Tus_decode (unsigned char);
void Eprom_Write (void);
unsigned char rd_e2 (unsigned char adr);
void wr_e2 (unsigned char DÁT1, unsigned char adr);
/************************** DEGISKENLER ********************** /
bank2 unsigned char yemleme_zamani [24] [2];
bank2 unsigned char ss, ay, Yil, zbraň;
bank2 unsigned char adcnt, adc_en, slučka, AD_str, smp_cnt, smp_point, ch;
bank1 podpísal char sa, dd, prvý;
bánk3 unsigned char cx, kopať, kod_y, kod_y1, kod_y2;
bánk3 unsigned char Y_Saati, Y_Dakika, as, a_s, k;
bank1 float in1, tot1, pv;
bank1 unsigned int pw1;
bank1 unsigned char tus, tus_kod, kod, prv_kod, key_cnt, key_slope;
bank1 unsigned msec, DELN, sec, loop, chk;
bank1 unsigned char chks;
statické unsigned char Yeni_Tus, Eski_Tus;
statická unsigned int data;
bánk3 statické stbits struct (
unsigned delayx: 1 / * * /
unsigned tus: 1 / * * /
unsigned aout: 1;
unsigned tus1: 1 / * * /
unsigned tus_press: 1 / * * /
unsigned tus_proc: 1;
unsigned mod_ok: 1 / * * /
unsigned yeni: 1;
unsigned timer_thi: 1;
unsigned timer_surucu: 1;
unsigned sorun: 1;
unsigned listov: 1;
unsigned OPN: 1;
unsigned zavrel: 1;
unsigned shut_down: 1;
unsigned prm: 1;
unsigned prm_set: 1;
unsigned alarm_enb: 1;
unsigned alarm_bitti: 1;
unsigned alarm_off: 1;
unsigned alarm_tog: 1;
unsigned Cal: 1;unsigned F1_call: 1 / * * /
unsigned F2_set: 1 / * * /
unsigned F3_Oto: 1 / * * /
unsigned F4: 1 / * * /
unsigned Rise: 1 / * * /
unsigned F6_Man_Oto: 1 / * * /
unsigned Esc: 1 / * * /
unsigned START: 1 / * * /
unsigned STOP: 1 / * * /
unsigned Dk: 1 / * * /
unsigned So: 1 / * * /
unsigned Hotovo: 1 / * * /unsigned E2_Oku: 1 / * * /
unsigned Oku_Set: 1 / * * /
unsigned zostavy: 1 / * * /
unsigned sets_ok: 1 / * * /
unsigned zmena: 1;
unsigned kbhit: 1;
unsigned par_in: 1;st);
const unsigned char c_tab [] =
(
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,
0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0
);void Yem_Ayar (void);
void Yem_Zamani (void);
void M_Vindow (void);
void Oto_Yem (void);
void DelayUs (unsigned x) (
unsigned char dcnt;
/ / Dcnt = (x);
/ / Dcnt = (x / 2);
dcnt = (2 * x);
while (- dcnt! = 0) (HAV;
/ / Continue;
)
void DelayMs (unsigned char CNT)
(
unsigned char i;
do (
i = 4;
/ / Asm ( "clrwdt");
do (
DelayUs (250);
) While (- i);
) While (- CNT);
)
void del1 (unsigned char del)
(
unsigned char k;
while (del) (
for (k = 0; k <2, k ) asm ( "NOP");
del -;
);
)void ekran (void) (if (dig == 7)
(
/ / RST;
RB1 = 1;
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
asm ( "NOP");
RB1 = 0;
....