M
maykut
Guest
Mam ac kod napisany pic lite c
I dont pic wykorzystania c lite
i od razu konwersji kodu C hex
ktoś konwersji dla mnie i mail do mnie
mail: aykutmustafa (at) gmail.com
pic16f877
c kod
# include <pic.h>
# include <delay.c>
# include <lcd.c>
# include <stdio.h>
main ()
const LSB float = 5.0/1024.0;
unsigned char gerilim, ust, alt;
float sicaklik;
unsigned char sonuc [] = "SICAKLIK =";
TRISB = 0;
Trisa = 1;
DelayMs (250);
lcd_init ();
lcd_clear ();
ADCON1 = 0x8E;
ADCON0 = 0x41;
for (;
<img src="http://www.edaboard.com/images/smiles/icon_wink.gif" alt="Wink" border="0" />
(
ADCON0 = 0x45;
while ((ADCON0 i 4) = 0);
gerilim = ADRESH;
gerilim = 256 * gerilim ADRESL;sicaklik = gerilim * LSB * 100,0;ust = (int) sicaklik;
alt = (int) (10.0 * (sicaklik-Hutnicza));sprintf (sonuc 11, "% d.% dC", ust, alt);lcd_goto (0x00);
lcd_puts ( "ve Mustafa Fatih");
lcd_goto (0x40);
lcd_puts (sonuc);
DelayMs (250);
lcd_clear ();
)
)
I dont pic wykorzystania c lite
i od razu konwersji kodu C hex
ktoś konwersji dla mnie i mail do mnie
mail: aykutmustafa (at) gmail.com
pic16f877
c kod
# include <pic.h>
# include <delay.c>
# include <lcd.c>
# include <stdio.h>
main ()
const LSB float = 5.0/1024.0;
unsigned char gerilim, ust, alt;
float sicaklik;
unsigned char sonuc [] = "SICAKLIK =";
TRISB = 0;
Trisa = 1;
DelayMs (250);
lcd_init ();
lcd_clear ();
ADCON1 = 0x8E;
ADCON0 = 0x41;
for (;
<img src="http://www.edaboard.com/images/smiles/icon_wink.gif" alt="Wink" border="0" />
(
ADCON0 = 0x45;
while ((ADCON0 i 4) = 0);
gerilim = ADRESH;
gerilim = 256 * gerilim ADRESL;sicaklik = gerilim * LSB * 100,0;ust = (int) sicaklik;
alt = (int) (10.0 * (sicaklik-Hutnicza));sprintf (sonuc 11, "% d.% dC", ust, alt);lcd_goto (0x00);
lcd_puts ( "ve Mustafa Fatih");
lcd_goto (0x40);
lcd_puts (sonuc);
DelayMs (250);
lcd_clear ();
)
)