mikro c lm35 ile fr modül ile lcd yazdırma acill yardımm :(

Başlatan ens_azl, 23 Nisan 2013, 00:10:43

ens_azl

pic16f876 4 mhz
2*16 lcd kullanılıyorum arkdaşlar bi yardımcı olabilirmisin bi sürü yol denedim olmadı bi el atın yardımcı olun arkdaşlar şimdiden teşekkürler

alıcı;
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
unsigned int gelen=0;

void main()
{
UART1_Init(9600);
trisb = 0;
Lcd_Init();
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Cmd(_Lcd_Clear);
Lcd_Out(1, 1,"SICAKLIK=");
Lcd_Chr (1,12,223);
Lcd_Chr(1,13,'C');
delay_ms(100);

while(1)
{
if(UART1_data_Ready()==1)
{

gelen=uart1_read();
Lcd_Chr(1, 10, (gelen/10)+48);
Lcd_Chr(1, 11, (gelen%10)+48);
delay_ms(100);
}
} }


verici;

unsigned int pre[15]={'U','U','U','U','U',255,255,255,255,255,0,0,0,0,0};
int i;
unsigned int deger=0,derece=0;
void kurulum()
{
ADCON0 = 0x01;
ADCON1 = 0x0e;
Uart1_Init(9600);
TRISA=0x01;
}
void main()
{
kurulum();
while(1)
{
deger=adc_read(0);

derece=deger*500/1024;


for(i=0;i<15;i++)
{
UART1_Write(pre);
}

uart1_write(derece);

}

}