اتمنى ان تنال اعجابكم
هذا هو الفديو والاكواد وملف بروتوس
http://www.mediafire.com/?beax2kmyolw
وهذا هو الكود
كود:
unsigned short i,l,m;
// LCD module connections
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;
// End LCD module connections
unsigned char k;
void main() {
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Init();
TRISB=0x00;
i=0;
l=0;
m=0;
while(1){
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Cmd(_LCD_RETURN_HOME);
k=l/10;
Lcd_Chr_CP(k+48);
k=l%10;
Lcd_Chr_CP(k+48);
Lcd_Chr_CP(58);
k=m/10;
Lcd_Chr_CP(k+48);
k=m%10;
Lcd_Chr_CP(k+48);
Lcd_Chr_CP(58);
k=i/10;
Lcd_Chr_CP(k+48);
k=i%10;
Lcd_Chr_CP(k+48);
i++ ;
Delay_ms(100);
if(i==59){
i=0 ;
m++;
}
if(m==59){
m=0;
l++;
}
}
}
مهندس :أحمد عبدالكريم مراد
مص____________________ر