#define MX_PIC
#define P16F877
#define MX_EE
#define MX_EE_SIZE 256
#define MX_SPI
#define MX_SPI_C
#define MX_SPI_SDI 4
#define MX_SPI_SDO 5
#define MX_SPI_SCK 3
#define MX_UART
#define MX_UART_C
#define MX_UART_TX 6
#define MX_UART_RX 7
#define MX_I2C
#define MX_MI2C
#define MX_I2C_C
#define MX_I2C_SDA 4
#define MX_I2C_SCL 3
#define MX_PWM
#define MX_PWM_CNT 2
#define MX_PWM_TRIS1 trisc
#define MX_PWM_1 2
#define MX_PWM_TRIS2 trisc
#define MX_PWM_2 1
//Fonksiyonlar
#include <system.h>
#pragma CLOCK_FREQ 19660800
//Dosya yap?land?rmas?
#pragma DATA 0x2007, 0x3d3a
//Dahili fonksiyonlar
#include internals.h
//Makro fonksiyon bildirileri
void FCM_OUT();
void FCM_Sil();
void FCM_giris();
void FCM_hatayaz();
char FCV_TEST_START;
char FCV_GIRIS;
char FCV_HATA20;
char FCV_IN_PUT;
char FCV_HATA10;
char FCV_HATA1;
char FCV_HATA11;
char FCV_HATA2;
char FCV_HATA12;
char FCV_HATA3;
char FCV_HATA13;
char FCV_HATA4;
char FCV_HATA14;
char FCV_HATA5;
char FCV_HATALAR;
char FCV_HATA15;
char FCV_HATA6;
char FCV_HATA16;
char FCV_HATA7;
char FCV_DONGU;
char FCV_FLASH;
char FCV_HATA17;
char FCV_HATA8;
char FCV_A;
char FCV_HATA18;
char FCV_HATA9;
char FCV_HATA19;
//Defines:
/**** Macro Substitutions ****
portb = D1 Port
trisb = D1 Data Direction
portb = D2 Port
trisb = D2 Data Direction
portb = D3 Port
trisb = D3 Data Direction
portb = D4 Port
trisb = D4 Data Direction
portb = RS Port
trisb = RS Data Direction
portb = E Port
trisb = E Data Direction
0 = Data 1_Pin
1 = Data 2 Pin
2 = Data 3 Pin
3 = Data 4 Pin
4 = RS Pin
5 = Enable Pin
LCD_68240 = Unique Component Reference Number
4 = Row Count
20 = Column Count
******************************/
//component connections
#define LCD_68240_PORT0 portb
#define LCD_68240_TRIS0 trisb
#define LCD_68240_PORT1 portb
#define LCD_68240_TRIS1 trisb
#define LCD_68240_PORT2 portb
#define LCD_68240_TRIS2 trisb
#define LCD_68240_PORT3 portb
#define LCD_68240_TRIS3 trisb
#define LCD_68240_PORT4 portb
#define LCD_68240_TRIS4 trisb
#define LCD_68240_PORT5 portb
#define LCD_68240_TRIS5 trisb
#define LCD_68240_BIT0 0
#define LCD_68240_BIT1 1
#define LCD_68240_BIT2 2
#define LCD_68240_BIT3 3
#define LCD_68240_RS 4
#define LCD_68240_E 5
#define LCD_68240_ROWCNT 4
#define LCD_68240_COLCNT 20
#ifdef _BOOSTC
#define LCD_68240_DELAY delay_10us(10)
#endif
#ifdef _C2C_
#define LCD_68240_DELAY delay_us(100)
#endif
#ifndef LCD_68240_DELAY
#define LCD_68240_DELAY delay_us(100)
#endif
//LCDDisplay0: //Makro fonksiyon bildirileri
void FCD_LCDDisplay0_RawSend(char in, char mask);
void FCD_LCDDisplay0_Start();
void FCD_LCDDisplay0_Clear();
void FCD_LCDDisplay0_PrintASCII(char Character);
void FCD_LCDDisplay0_Command(char in);
void FCD_LCDDisplay0_Cursor(char x, char y);
void FCD_LCDDisplay0_PrintNumber(short Number);
void FCD_LCDDisplay0_PrintString(char* String, char MSZ_String);
void FCD_LCDDisplay0_ScrollDisplay(char Direction, char Num_Positions);
void FCD_LCDDisplay0_ClearLine(char Line);
void FCD_LCDDisplay0_RAM_Write(char nIdx, char d0, char d1, char d2, char d3, char d4, char d5, char d6, char d7);
//LCDDisplay0:
void FCD_LCDDisplay0_RawSend(char in, char mask)
{
unsigned char pt;
clear_bit(LCD_68240_PORT0, LCD_68240_BIT0);
clear_bit(LCD_68240_PORT1, LCD_68240_BIT1);
clear_bit(LCD_68240_PORT2, LCD_68240_BIT2);
clear_bit(LCD_68240_PORT3, LCD_68240_BIT3);
clear_bit(LCD_68240_PORT4, LCD_68240_RS);
clear_bit(LCD_68240_PORT5, LCD_68240_E);
pt = ((in >> 4) & 0x0f);
if (pt & 0x01)
set_bit(LCD_68240_PORT0, LCD_68240_BIT0);
if (pt & 0x02)
set_bit(LCD_68240_PORT1, LCD_68240_BIT1);
if (pt & 0x04)
set_bit(LCD_68240_PORT2, LCD_68240_BIT2);
if (pt & 0x08)
set_bit(LCD_68240_PORT3, LCD_68240_BIT3);
if (mask)
set_bit(LCD_68240_PORT4, LCD_68240_RS);
LCD_68240_DELAY;
set_bit (LCD_68240_PORT5, LCD_68240_E);
LCD_68240_DELAY;
clear_bit (LCD_68240_PORT5, LCD_68240_E);
pt = (in & 0x0f);
LCD_68240_DELAY;
clear_bit(LCD_68240_PORT0, LCD_68240_BIT0);
clear_bit(LCD_68240_PORT1, LCD_68240_BIT1);
clear_bit(LCD_68240_PORT2, LCD_68240_BIT2);
clear_bit(LCD_68240_PORT3, LCD_68240_BIT3);
clear_bit(LCD_68240_PORT4, LCD_68240_RS);
clear_bit(LCD_68240_PORT5, LCD_68240_E);
if (pt & 0x01)
set_bit(LCD_68240_PORT0, LCD_68240_BIT0);
if (pt & 0x02)
set_bit(LCD_68240_PORT1, LCD_68240_BIT1);
if (pt & 0x04)
set_bit(LCD_68240_PORT2, LCD_68240_BIT2);
if (pt & 0x08)
set_bit(LCD_68240_PORT3, LCD_68240_BIT3);
if (mask)
set_bit(LCD_68240_PORT4, LCD_68240_RS);
LCD_68240_DELAY;
set_bit (LCD_68240_PORT5, LCD_68240_E);
LCD_68240_DELAY;
clear_bit (LCD_68240_PORT5, LCD_68240_E);
LCD_68240_DELAY;
}
void FCD_LCDDisplay0_Start()
{
clear_bit(LCD_68240_TRIS0, LCD_68240_BIT0);
clear_bit(LCD_68240_TRIS1, LCD_68240_BIT1);
clear_bit(LCD_68240_TRIS2, LCD_68240_BIT2);
clear_bit(LCD_68240_TRIS3, LCD_68240_BIT3);
clear_bit(LCD_68240_TRIS4, LCD_68240_RS);
clear_bit(LCD_68240_TRIS5, LCD_68240_E);
Wdt_Delay_Ms(12);
FCD_LCDDisplay0_RawSend(0x33, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x33, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x32, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x2c, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x06, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x0c, 0);
Wdt_Delay_Ms(2);
//clear the display
FCD_LCDDisplay0_RawSend(0x01, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x02, 0);
Wdt_Delay_Ms(2);
}
void FCD_LCDDisplay0_Clear()
{
FCD_LCDDisplay0_RawSend(0x01, 0);
Wdt_Delay_Ms(2);
FCD_LCDDisplay0_RawSend(0x02, 0);
Wdt_Delay_Ms(2);
}
void FCD_LCDDisplay0_PrintASCII(char Character)
{
FCD_LCDDisplay0_RawSend(Character, 0x10);
}
void FCD_LCDDisplay0_Command(char in)
{
FCD_LCDDisplay0_RawSend(in, 0);
Wdt_Delay_Ms(2);
}
void FCD_LCDDisplay0_Cursor(char x, char y)
{
#if (LCD_68240_ROWCNT == 1)
y=0x80;
#endif
#if (LCD_68240_ROWCNT == 2)
if (y==0)
y=0x80;
else
y=0xc0;
#endif
#if (LCD_68240_ROWCNT == 4)
if (y==0)
y=0x80;
else if (y==1)
y=0xc0;
#if (LCD_68240_COLCNT == 16)
else if (y==2)
y=0x90;
else
y=0xd0;
#endif
#if (LCD_68240_COLCNT == 20)
else if (y==2)
y=0x94;
else
y=0xd4;
#endif
#endif
FCD_LCDDisplay0_RawSend(y+x, 0);
Wdt_Delay_Ms(2);
}
void FCD_LCDDisplay0_PrintNumber(short Number)
{
short tmp_int;
char tmp_byte;
if (Number < 0)
{
FCD_LCDDisplay0_RawSend('-', 0x10);
Number = 0 - Number;
}
tmp_int = Number;
if (Number >= 10000)
{
tmp_byte = tmp_int / 10000;
FCD_LCDDisplay0_RawSend('0' + tmp_byte, 0x10);
while (tmp_byte > 0)
{
tmp_int = tmp_int - 10000;
tmp_byte--;
}
}
if (Number >= 1000)
{
tmp_byte = tmp_int / 1000;
FCD_LCDDisplay0_RawSend('0' + tmp_byte, 0x10);
while (tmp_byte > 0)
{
tmp_int = tmp_int - 1000;
tmp_byte--;
}
}
if (Number >= 100)
{
tmp_byte = tmp_int / 100;
FCD_LCDDisplay0_RawSend('0' + tmp_byte, 0x10);
while (tmp_byte > 0)
{
tmp_int = tmp_int - 100;
tmp_byte--;
}
}
if (Number >= 10)
{
tmp_byte = tmp_int / 10;
FCD_LCDDisplay0_RawSend('0' + tmp_byte, 0x10);
while (tmp_byte > 0)
{
tmp_int = tmp_int - 10;
tmp_byte--;
}
}
FCD_LCDDisplay0_RawSend('0' + tmp_int, 0x10);
}
void FCD_LCDDisplay0_PrintString(char* String, char MSZ_String)
{
char idx;
for (idx=0; idx<MSZ_String; idx++)
{
if (String[idx]==0)
{
break;
}
FCD_LCDDisplay0_RawSend(String[idx], 0x10);
}
}
void FCD_LCDDisplay0_ScrollDisplay(char Direction, char Num_Positions)
{
char cmd = 0;
char count;
//Choose the direction
switch (Direction)
{
case 0:
case 'l':
case 'L':
cmd = 0x18;
break;
case 1:
case 'r':
case 'R':
cmd = 0x1C;
break;
default:
break;
}
//If direction accepted then scroll the specified amount
if (cmd)
{
for (count = 0; count < Num_Positions; count++)
FCD_LCDDisplay0_Command(cmd);
}
}
void FCD_LCDDisplay0_ClearLine(char Line)
{
char count;
char rowcount;
//Define number of columns per line
#if (LCD_68240_ROWCNT == 1)
rowcount=80;
#endif
#if (LCD_68240_ROWCNT == 2)
rowcount=40;
#endif
#if (LCD_68240_ROWCNT == 4)
#if (LCD_68240_COLCNT == 16)
rowcount=16;
#endif
#if (LCD_68240_COLCNT == 20)
rowcount=20;
#endif
#endif
//Start at beginning of the line
FCD_LCDDisplay0_Cursor (0, Line);
//Send out spaces to clear line
for (count = 0; count < rowcount; count++)
FCD_LCDDisplay0_RawSend(' ', 0x10);
//Move back to the beginning of the line.
FCD_LCDDisplay0_Cursor (0, Line);
}
void FCD_LCDDisplay0_RAM_Write(char nIdx, char d0, char d1, char d2, char d3, char d4, char d5, char d6, char d7)
{
//set CGRAM address
FCD_LCDDisplay0_RawSend(64 + (nIdx << 3), 0);
delay_ms(2);
//write CGRAM data
FCD_LCDDisplay0_RawSend(d0, 0x10);
FCD_LCDDisplay0_RawSend(d1, 0x10);
FCD_LCDDisplay0_RawSend(d2, 0x10);
FCD_LCDDisplay0_RawSend(d3, 0x10);
FCD_LCDDisplay0_RawSend(d4, 0x10);
FCD_LCDDisplay0_RawSend(d5, 0x10);
FCD_LCDDisplay0_RawSend(d6, 0x10);
FCD_LCDDisplay0_RawSend(d7, 0x10);
//Clear the display
FCD_LCDDisplay0_RawSend(0x01, 0);
delay_ms(2);
FCD_LCDDisplay0_RawSend(0x02, 0);
delay_ms(2);
}
//Makro uygulamas?
void FCM_OUT()
{
//DATA
//Ç?kt? : 1 -> E0
trise = trise & 0xfe;
if (1)
porte = (porte & 0xfe) | 0x01;
else
porte = porte & 0xfe;
//Döngü
//Döngü: ?ken DONGU=0
while (!(FCV_DONGU==0))
{
//CLOCK
//Ç?kt? : 1 -> E1
trise = trise & 0xfd;
if (1)
porte = (porte & 0xfd) | 0x02;
else
porte = porte & 0xfd;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//CLOCK
//Ç?kt? : 0 -> E1
trise = trise & 0xfd;
if (0)
porte = (porte & 0xfd) | 0x02;
else
porte = porte & 0xfd;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//LATCH
//Ç?kt? : 1 -> E2
trise = trise & 0xfb;
if (1)
porte = (porte & 0xfb) | 0x04;
else
porte = porte & 0xfb;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//LATCH
//Ç?kt? : 0 -> E2
trise = trise & 0xfb;
if (0)
porte = (porte & 0xfb) | 0x04;
else
porte = porte & 0xfb;
//Karar
//Karar : a=1?
if (FCV_A==1)
{
} else {
//DATA
//Ç?kt? : 0 -> E0
trise = trise & 0xfe;
if (0)
porte = (porte & 0xfe) | 0x01;
else
porte = porte & 0xfe;
}
//Hesaplama
//Hesaplama :
// DONGU = DONGU-1
FCV_DONGU = FCV_DONGU-1;
//Gecikme
//Gecikme : 2 ms
delay_ms(2);
}
}
void FCM_Sil()
{
//Hesaplama
//Hesaplama :
// DONGU = 20
FCV_DONGU = 20;
//Döngü
//Döngü: ?ken DONGU=0
while (!(FCV_DONGU==0))
{
//Hesaplama
//Hesaplama :
// DONGU = DONGU-1
FCV_DONGU = FCV_DONGU-1;
//DATA
//Ç?kt? : 0 -> E0
trise = trise & 0xfe;
if (0)
porte = (porte & 0xfe) | 0x01;
else
porte = porte & 0xfe;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//CLOCK
//Ç?kt? : 1 -> E1
trise = trise & 0xfd;
if (1)
porte = (porte & 0xfd) | 0x02;
else
porte = porte & 0xfd;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//CLOCK
//Ç?kt? : 0 -> E1
trise = trise & 0xfd;
if (0)
porte = (porte & 0xfd) | 0x02;
else
porte = porte & 0xfd;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//LATCH
//Ç?kt? : 1 -> E2
trise = trise & 0xfb;
if (1)
porte = (porte & 0xfb) | 0x04;
else
porte = porte & 0xfb;
//Gecikme
//Gecikme : 1 us
delay_us(1);
//LATCH
//Ç?kt? : 0 -> E2
trise = trise & 0xfb;
if (0)
porte = (porte & 0xfb) | 0x04;
else
porte = porte & 0xfb;
}
}
void FCM_giris()
{
//Girdi
//Girdi: TerminalA -> giris
trisa = trisa | 0x0f;
FCV_GIRIS = porta & 0x0f;
//Karar
//Karar : giris>0?
if (FCV_GIRIS>0)
{
//Hesaplama
//Hesaplama :
// test_start = 1
FCV_TEST_START = 1;
} else {
//Girdi
//Girdi: TerminalC -> giris
trisc = trisc | 0xff;
FCV_GIRIS = portc;
//Karar
//Karar : giris>0?
if (FCV_GIRIS>0)
{
//Hesaplama
//Hesaplama :
// test_start = 1
FCV_TEST_START = 1;
} else {
//Girdi
//Girdi: TerminalD -> giris
trisd = trisd | 0xff;
FCV_GIRIS = portd;
//Karar
//Karar : giris>0?
if (FCV_GIRIS>0)
{
//Hesaplama
//Hesaplama :
// test_start = 1
FCV_TEST_START = 1;
} else {
//Hesaplama
//Hesaplama :
// test_start = 0
FCV_TEST_START = 0;
}
}
}
}
void FCM_hatayaz()
{
//Hesaplama
//Hesaplama :
// flash = 5
FCV_FLASH = 5;
//Hesaplama
//Hesaplama :
// hatalar = hata1+hata2+hata3+hata4+hata5+hata6+hata7+hata8+hata9+hata10+hata11+hata12+hata13+hata14+hata15+hata16+hata17+hata18+hata19+hata20
FCV_HATALAR = FCV_HATA1+FCV_HATA2+FCV_HATA3+FCV_HATA4+FCV_HATA5+FCV_HATA6+FCV_HATA7+FCV_HATA8+FCV_HATA9+FCV_HATA10+FCV_HATA11+FCV_HATA12+FCV_HATA13+FCV_HATA14+FCV_HATA15+FCV_HATA16+FCV_HATA17+FCV_HATA18+FCV_HATA19+FCV_HATA20;
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Temizle
FCD_LCDDisplay0_Clear();
//Döngü
//Döngü: ?ken flash>0
while (1)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 0)
FCD_LCDDisplay0_Cursor(0, 0);
//Karar
//Karar : hatalar>0?
if (FCV_HATALAR>0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("*******ERROR********")
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('E');
FCD_LCDDisplay0_PrintASCII('R');
FCD_LCDDisplay0_PrintASCII('R');
FCD_LCDDisplay0_PrintASCII('O');
FCD_LCDDisplay0_PrintASCII('R');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 1)
FCD_LCDDisplay0_Cursor(0, 1);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" BAGLANTI HATASI ")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('B');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('G');
FCD_LCDDisplay0_PrintASCII('L');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('N');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('I');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('H');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('S');
FCD_LCDDisplay0_PrintASCII('I');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 2)
FCD_LCDDisplay0_Cursor(0, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" KABLOYU ")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('K');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('B');
FCD_LCDDisplay0_PrintASCII('L');
FCD_LCDDisplay0_PrintASCII('O');
FCD_LCDDisplay0_PrintASCII('Y');
FCD_LCDDisplay0_PrintASCII('U');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 3)
FCD_LCDDisplay0_Cursor(0, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" KONTROL EDiNiZ ")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('K');
FCD_LCDDisplay0_PrintASCII('O');
FCD_LCDDisplay0_PrintASCII('N');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('R');
FCD_LCDDisplay0_PrintASCII('O');
FCD_LCDDisplay0_PrintASCII('L');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('E');
FCD_LCDDisplay0_PrintASCII('D');
FCD_LCDDisplay0_PrintASCII('i');
FCD_LCDDisplay0_PrintASCII('N');
FCD_LCDDisplay0_PrintASCII('i');
FCD_LCDDisplay0_PrintASCII('Z');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
//Gecikme
//Gecikme : 500 ms
delay_ms(255);
delay_ms(245);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Temizle
FCD_LCDDisplay0_Clear();
//Gecikme
//Gecikme : 300 ms
delay_ms(255);
delay_ms(45);
//Hesaplama
//Hesaplama :
// flash = flash-1
FCV_FLASH = FCV_FLASH-1;
} else {
//Hesaplama
//Hesaplama :
// flash = 0
FCV_FLASH = 0;
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 1)
FCD_LCDDisplay0_Cursor(0, 1);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" TEST ")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('E');
FCD_LCDDisplay0_PrintASCII('S');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 2)
FCD_LCDDisplay0_Cursor(0, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" TAMAM ")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('M');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('M');
FCD_LCDDisplay0_PrintASCII(' ');
//Gecikme
//Gecikme : 2 s
delay_s(2);
}
if ((FCV_FLASH>0) == 0) break;
}
}
void main()
{
//Ba?lang?ç
adcon1 = 0x07;
//Kesme ba?lang?ç kodlamas?
option_reg = 0xC0;
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Ba?la
FCD_LCDDisplay0_Start();
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Temizle
FCD_LCDDisplay0_Clear();
//Gecikme
//Gecikme : 10 ms
delay_ms(10);
//Döngü
//Döngü: ?ken 1
while (1)
{
//Döngü
//Döngü: ?ken test_start=1
while (1)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Temizle
FCD_LCDDisplay0_Clear();
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 0)
FCD_LCDDisplay0_Cursor(0, 0);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("********************")
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 1)
FCD_LCDDisplay0_Cursor(0, 1);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("* TEST iCiN HAZIR *")
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('E');
FCD_LCDDisplay0_PrintASCII('S');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('i');
FCD_LCDDisplay0_PrintASCII('C');
FCD_LCDDisplay0_PrintASCII('i');
FCD_LCDDisplay0_PrintASCII('N');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('H');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('Z');
FCD_LCDDisplay0_PrintASCII('I');
FCD_LCDDisplay0_PrintASCII('R');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('*');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 2)
FCD_LCDDisplay0_Cursor(0, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("* KABLO TAKINIZ *")
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('K');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('B');
FCD_LCDDisplay0_PrintASCII('L');
FCD_LCDDisplay0_PrintASCII('O');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('T');
FCD_LCDDisplay0_PrintASCII('A');
FCD_LCDDisplay0_PrintASCII('K');
FCD_LCDDisplay0_PrintASCII('I');
FCD_LCDDisplay0_PrintASCII('N');
FCD_LCDDisplay0_PrintASCII('I');
FCD_LCDDisplay0_PrintASCII('Z');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('*');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 3)
FCD_LCDDisplay0_Cursor(0, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("********************")
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
FCD_LCDDisplay0_PrintASCII('*');
//Gecikme
//Gecikme : 300 ms
delay_ms(255);
delay_ms(45);
//Hesaplama
//Hesaplama :
// DONGU = 20
FCV_DONGU = 20;
//Hesaplama
//Hesaplama :
// a = 1
FCV_A = 1;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//Hesaplama
//Hesaplama :
// a = 0
FCV_A = 0;
//Makro ça??r
//Makro ça??r : giris
FCM_giris();
//Makro ça??r
//Makro ça??r : Sil
FCM_Sil();
//Döngü
//Döngü: ?ken test_start=0
while (!(FCV_TEST_START==0))
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::Temizle
FCD_LCDDisplay0_Clear();
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 0)
FCD_LCDDisplay0_Cursor(0, 0);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("12345678911111111112")
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('2');
FCD_LCDDisplay0_PrintASCII('3');
FCD_LCDDisplay0_PrintASCII('4');
FCD_LCDDisplay0_PrintASCII('5');
FCD_LCDDisplay0_PrintASCII('6');
FCD_LCDDisplay0_PrintASCII('7');
FCD_LCDDisplay0_PrintASCII('8');
FCD_LCDDisplay0_PrintASCII('9');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('2');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 1)
FCD_LCDDisplay0_Cursor(0, 1);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" 01234567890")
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII(' ');
FCD_LCDDisplay0_PrintASCII('0');
FCD_LCDDisplay0_PrintASCII('1');
FCD_LCDDisplay0_PrintASCII('2');
FCD_LCDDisplay0_PrintASCII('3');
FCD_LCDDisplay0_PrintASCII('4');
FCD_LCDDisplay0_PrintASCII('5');
FCD_LCDDisplay0_PrintASCII('6');
FCD_LCDDisplay0_PrintASCII('7');
FCD_LCDDisplay0_PrintASCII('8');
FCD_LCDDisplay0_PrintASCII('9');
FCD_LCDDisplay0_PrintASCII('0');
//Hesaplama
//Hesaplama :
// DONGU = 1
FCV_DONGU = 1;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: A0 -> IN_PUT
trisa = trisa | 0x01;
FCV_IN_PUT = ((porta & 0x01) == 0x01);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 2)
FCD_LCDDisplay0_Cursor(0, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 3)
FCD_LCDDisplay0_Cursor(0, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata1 = 1
FCV_HATA1 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 2)
FCD_LCDDisplay0_Cursor(0, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(0, 3)
FCD_LCDDisplay0_Cursor(0, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata1 = 0
FCV_HATA1 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 2
FCV_DONGU = 2;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: A1 -> IN_PUT
trisa = trisa | 0x02;
FCV_IN_PUT = ((porta & 0x02) == 0x02);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(1, 2)
FCD_LCDDisplay0_Cursor(1, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(1, 3)
FCD_LCDDisplay0_Cursor(1, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata2 = 1
FCV_HATA2 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(1, 2)
FCD_LCDDisplay0_Cursor(1, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(1, 3)
FCD_LCDDisplay0_Cursor(1, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata2 = 0
FCV_HATA2 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 3
FCV_DONGU = 3;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: A2 -> IN_PUT
trisa = trisa | 0x04;
FCV_IN_PUT = ((porta & 0x04) == 0x04);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(2, 2)
FCD_LCDDisplay0_Cursor(2, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(2, 3)
FCD_LCDDisplay0_Cursor(2, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata3 = 1
FCV_HATA3 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(2, 2)
FCD_LCDDisplay0_Cursor(2, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(2, 3)
FCD_LCDDisplay0_Cursor(2, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata3 = 0
FCV_HATA3 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 4
FCV_DONGU = 4;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: A3 -> IN_PUT
trisa = trisa | 0x08;
FCV_IN_PUT = ((porta & 0x08) == 0x08);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(3, 2)
FCD_LCDDisplay0_Cursor(3, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(3, 3)
FCD_LCDDisplay0_Cursor(3, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata4 = 1
FCV_HATA4 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(3, 2)
FCD_LCDDisplay0_Cursor(3, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(3, 3)
FCD_LCDDisplay0_Cursor(3, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata4 = 0
FCV_HATA4 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 5
FCV_DONGU = 5;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C0 -> IN_PUT
trisc = trisc | 0x01;
FCV_IN_PUT = ((portc & 0x01) == 0x01);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(4, 2)
FCD_LCDDisplay0_Cursor(4, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(4, 3)
FCD_LCDDisplay0_Cursor(4, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata5 = 1
FCV_HATA5 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(4, 2)
FCD_LCDDisplay0_Cursor(4, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(4, 3)
FCD_LCDDisplay0_Cursor(4, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata5 = 0
FCV_HATA5 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 6
FCV_DONGU = 6;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C1 -> IN_PUT
trisc = trisc | 0x02;
FCV_IN_PUT = ((portc & 0x02) == 0x02);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(5, 2)
FCD_LCDDisplay0_Cursor(5, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(5, 3)
FCD_LCDDisplay0_Cursor(5, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata6 = 1
FCV_HATA6 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(5, 2)
FCD_LCDDisplay0_Cursor(5, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(5, 3)
FCD_LCDDisplay0_Cursor(5, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata6 = 0
FCV_HATA6 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 7
FCV_DONGU = 7;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C2 -> IN_PUT
trisc = trisc | 0x04;
FCV_IN_PUT = ((portc & 0x04) == 0x04);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(6, 2)
FCD_LCDDisplay0_Cursor(6, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(6, 3)
FCD_LCDDisplay0_Cursor(6, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata7 = 1
FCV_HATA7 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(6, 2)
FCD_LCDDisplay0_Cursor(6, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(6, 3)
FCD_LCDDisplay0_Cursor(6, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata7 = 0
FCV_HATA7 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 8
FCV_DONGU = 8;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C3 -> IN_PUT
trisc = trisc | 0x08;
FCV_IN_PUT = ((portc & 0x08) == 0x08);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(7, 2)
FCD_LCDDisplay0_Cursor(7, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(7, 3)
FCD_LCDDisplay0_Cursor(7, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata8 = 1
FCV_HATA8 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(7, 2)
FCD_LCDDisplay0_Cursor(7, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(7, 3)
FCD_LCDDisplay0_Cursor(7, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata8 = 0
FCV_HATA8 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 9
FCV_DONGU = 9;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C4 -> IN_PUT
trisc = trisc | 0x10;
FCV_IN_PUT = ((portc & 0x10) == 0x10);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(8, 2)
FCD_LCDDisplay0_Cursor(8, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(8, 3)
FCD_LCDDisplay0_Cursor(8, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata9 = 1
FCV_HATA9 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(8, 2)
FCD_LCDDisplay0_Cursor(8, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(8, 3)
FCD_LCDDisplay0_Cursor(8, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata9 = 0
FCV_HATA9 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 10
FCV_DONGU = 10;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C5 -> IN_PUT
trisc = trisc | 0x20;
FCV_IN_PUT = ((portc & 0x20) == 0x20);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(9, 2)
FCD_LCDDisplay0_Cursor(9, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(9, 3)
FCD_LCDDisplay0_Cursor(9, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata10 = 1
FCV_HATA10 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(9, 2)
FCD_LCDDisplay0_Cursor(9, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(9, 3)
FCD_LCDDisplay0_Cursor(9, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata10 = 0
FCV_HATA10 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 11
FCV_DONGU = 11;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C6 -> IN_PUT
trisc = trisc | 0x40;
FCV_IN_PUT = ((portc & 0x40) == 0x40);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(10, 2)
FCD_LCDDisplay0_Cursor(10, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(10, 3)
FCD_LCDDisplay0_Cursor(10, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata11 = 1
FCV_HATA11 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(10, 2)
FCD_LCDDisplay0_Cursor(10, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(10, 3)
FCD_LCDDisplay0_Cursor(10, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata11 = 0
FCV_HATA11 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 12
FCV_DONGU = 12;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: C7 -> IN_PUT
trisc = trisc | 0x80;
FCV_IN_PUT = ((portc & 0x80) == 0x80);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(11, 2)
FCD_LCDDisplay0_Cursor(11, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(11, 3)
FCD_LCDDisplay0_Cursor(11, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata12 = 1
FCV_HATA12 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(11, 2)
FCD_LCDDisplay0_Cursor(11, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(11, 3)
FCD_LCDDisplay0_Cursor(11, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata12 = 0
FCV_HATA12 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 13
FCV_DONGU = 13;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D0 -> IN_PUT
trisd = trisd | 0x01;
FCV_IN_PUT = ((portd & 0x01) == 0x01);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(12, 2)
FCD_LCDDisplay0_Cursor(12, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(12, 3)
FCD_LCDDisplay0_Cursor(12, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata13 = 1
FCV_HATA13 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(12, 2)
FCD_LCDDisplay0_Cursor(12, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(12, 3)
FCD_LCDDisplay0_Cursor(12, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata13 = 0
FCV_HATA13 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 14
FCV_DONGU = 14;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D1 -> IN_PUT
trisd = trisd | 0x02;
FCV_IN_PUT = ((portd & 0x02) == 0x02);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(13, 2)
FCD_LCDDisplay0_Cursor(13, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(13, 3)
FCD_LCDDisplay0_Cursor(13, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata14 = 1
FCV_HATA14 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(13, 2)
FCD_LCDDisplay0_Cursor(13, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(13, 3)
FCD_LCDDisplay0_Cursor(13, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata14 = 0
FCV_HATA14 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 15
FCV_DONGU = 15;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D2 -> IN_PUT
trisd = trisd | 0x04;
FCV_IN_PUT = ((portd & 0x04) == 0x04);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(14, 2)
FCD_LCDDisplay0_Cursor(14, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(14, 3)
FCD_LCDDisplay0_Cursor(14, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata15 = 1
FCV_HATA15 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(14, 2)
FCD_LCDDisplay0_Cursor(14, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(14, 3)
FCD_LCDDisplay0_Cursor(14, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata15 = 0
FCV_HATA15 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 16
FCV_DONGU = 16;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D3 -> IN_PUT
trisd = trisd | 0x08;
FCV_IN_PUT = ((portd & 0x08) == 0x08);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(15, 2)
FCD_LCDDisplay0_Cursor(15, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(15, 3)
FCD_LCDDisplay0_Cursor(15, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata16 = 1
FCV_HATA16 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(15, 2)
FCD_LCDDisplay0_Cursor(15, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(15, 3)
FCD_LCDDisplay0_Cursor(15, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata16 = 0
FCV_HATA16 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 17
FCV_DONGU = 17;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D4 -> IN_PUT
trisd = trisd | 0x10;
FCV_IN_PUT = ((portd & 0x10) == 0x10);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(16, 2)
FCD_LCDDisplay0_Cursor(16, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(16, 3)
FCD_LCDDisplay0_Cursor(16, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata17 = 1
FCV_HATA17 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(16, 2)
FCD_LCDDisplay0_Cursor(16, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(16, 3)
FCD_LCDDisplay0_Cursor(16, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata17 = 0
FCV_HATA17 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 18
FCV_DONGU = 18;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D5 -> IN_PUT
trisd = trisd | 0x20;
FCV_IN_PUT = ((portd & 0x20) == 0x20);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(17, 2)
FCD_LCDDisplay0_Cursor(17, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(17, 3)
FCD_LCDDisplay0_Cursor(17, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata18 = 1
FCV_HATA18 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(17, 2)
FCD_LCDDisplay0_Cursor(17, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(17, 3)
FCD_LCDDisplay0_Cursor(17, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata18 = 0
FCV_HATA18 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 19
FCV_DONGU = 19;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D6 -> IN_PUT
trisd = trisd | 0x40;
FCV_IN_PUT = ((portd & 0x40) == 0x40);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(18, 2)
FCD_LCDDisplay0_Cursor(18, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(18, 3)
FCD_LCDDisplay0_Cursor(18, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata19 = 1
FCV_HATA19 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(18, 2)
FCD_LCDDisplay0_Cursor(18, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(18, 3)
FCD_LCDDisplay0_Cursor(18, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata19 = 0
FCV_HATA19 = 0;
}
//Hesaplama
//Hesaplama :
// DONGU = 20
FCV_DONGU = 20;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//KABLO_1
//Girdi: D7 -> IN_PUT
trisd = trisd | 0x80;
FCV_IN_PUT = ((portd & 0x80) == 0x80);
//Karar
//Karar : IN_PUT=0?
if (FCV_IN_PUT==0)
{
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(19, 2)
FCD_LCDDisplay0_Cursor(19, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(19, 3)
FCD_LCDDisplay0_Cursor(19, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r(" ")
FCD_LCDDisplay0_PrintASCII(' ');
//Hesaplama
//Hesaplama :
// hata20 = 1
FCV_HATA20 = 1;
} else {
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(19, 2)
FCD_LCDDisplay0_Cursor(19, 2);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("O")
FCD_LCDDisplay0_PrintASCII('O');
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::?mleç(19, 3)
FCD_LCDDisplay0_Cursor(19, 3);
//Bile?en makrosunu ça??r
//Bile?en makrosunu ça??r: LCDDisplay(0)::ASCIIYazd?r("K")
FCD_LCDDisplay0_PrintASCII('K');
//Hesaplama
//Hesaplama :
// hata20 = 0
FCV_HATA20 = 0;
}
//Gecikme
//Gecikme : 3 s
delay_s(3);
//Makro ça??r
//Makro ça??r : hatayaz
FCM_hatayaz();
//Hesaplama
//Hesaplama :
// DONGU = 20
FCV_DONGU = 20;
//Hesaplama
//Hesaplama :
// a = 1
FCV_A = 1;
//Makro ça??r
//Makro ça??r : OUT
FCM_OUT();
//Hesaplama
//Hesaplama :
// a = 0
FCV_A = 0;
//Makro ça??r
//Makro ça??r : giris
FCM_giris();
//Makro ça??r
//Makro ça??r : Sil
FCM_Sil();
}
if ((FCV_TEST_START==1) != 0) break;
}
}
mainendloop: goto mainendloop;
}
void interrupt(void)
{
}