Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
4 views
code
Uploaded by
mohamedabotreka18
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download now
Download
Save code For Later
Download
Save
Save code For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
4 views
code
Uploaded by
mohamedabotreka18
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download now
Download
Save code For Later
Carousel Previous
Carousel Next
Save
Save code For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
sbit LCD_RS at RB0_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;
sbit LCD_RS_Direction at TRISB0_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;
int time_count = 0;
char txt[10];
void main() {
TRISD.B0 = 1; // ????? ???? D ????? ????? ?????
TRISC = 0; // ????? ???? C ?????
PORTC = 0; // ????? ????? ???? C
Lcd_Init(); // ????? ???? ?? LCD
Lcd_Cmd(_LCD_CURSOR_OFF); // ????? ??????
Lcd_Out(1, 1, "Time:"); // ??? "Time:" ??? ???? ?? LCD
while (1) {
if (PORTD.B0 == 1) { // ??? ??? ??????? ???????
PORTC.B0 = 1; // ????? ?? LED
Delay_ms(1000); // ????? ???? 1 ?????
time_count++; // ????? ?????? ?????
IntToStr(time_count, txt); // ????? ????? ??? ??
Ltrim(txt); // ????? ??????? ??????? ?? ??????
Lcd_Out(2, 1, txt); // ??? ?????? ??? ?? LCD
if (time_count == 25) { // ??? ??? ?????? ????? 30
PORTC.B1 = 1; // ????? PORTC.B1
} else { // ??? ??? ??????? ??? ?????
time_count = 0; // ????? ????? ?????? ??? ?????
PORTC.B0 = 0; // ????? ?? LED
PORTC.B1 = 0; // ????? PORTC.B1
Lcd_Cmd(_LCD_CLEAR); // ??? ???? ?? LCD
Lcd_Out(1, 1, "Time:"); // ????? ??? "Time:" ??? ?? LCD
You might also like
Giovanni
PDF
100% (1)
Giovanni
1 page
Groupquiz
PDF
No ratings yet
Groupquiz
2 pages
Groupquiz
PDF
No ratings yet
Groupquiz
2 pages
Digital Temperature Meter Using PIC16F688
PDF
No ratings yet
Digital Temperature Meter Using PIC16F688
3 pages
Labno7: Labno7 Embedded System Design Lab
PDF
No ratings yet
Labno7: Labno7 Embedded System Design Lab
2 pages
Adc
PDF
No ratings yet
Adc
3 pages
Teclado 2
PDF
No ratings yet
Teclado 2
2 pages
Mikroc Potenciometro y ADC
PDF
No ratings yet
Mikroc Potenciometro y ADC
2 pages
LCD 2wires Ex Pic18f
PDF
100% (1)
LCD 2wires Ex Pic18f
2 pages
Motor Stepper
PDF
No ratings yet
Motor Stepper
3 pages
DSN Timer
PDF
No ratings yet
DSN Timer
1 page
Ccs-Picc - HTML: // LCD Module Connections
PDF
No ratings yet
Ccs-Picc - HTML: // LCD Module Connections
5 pages
LM35
PDF
No ratings yet
LM35
7 pages
Program For ADC 0808 Connecting Temperature Sensor Using 8051
PDF
No ratings yet
Program For ADC 0808 Connecting Temperature Sensor Using 8051
13 pages
The only code
PDF
No ratings yet
The only code
5 pages
Programming LCD Display (16x2) With PIC16F877A
PDF
No ratings yet
Programming LCD Display (16x2) With PIC16F877A
2 pages
Codigo para Calcular El Area de Un Triangulo
PDF
No ratings yet
Codigo para Calcular El Area de Un Triangulo
2 pages
LCD C
PDF
No ratings yet
LCD C
4 pages
Practica Micros 2 Parcial
PDF
No ratings yet
Practica Micros 2 Parcial
5 pages
Thuc Hanh 2
PDF
No ratings yet
Thuc Hanh 2
8 pages
Lesson Nr.17-WPS Office
PDF
No ratings yet
Lesson Nr.17-WPS Office
4 pages
Llakjsldkj
PDF
No ratings yet
Llakjsldkj
2 pages
Code Báo Cháy
PDF
No ratings yet
Code Báo Cháy
8 pages
Library Dependency Tree
PDF
No ratings yet
Library Dependency Tree
6 pages
1sbit LCD
PDF
No ratings yet
1sbit LCD
2 pages
#Define Saida LATB0 - Bit: 0xFF 0xFE 0x01 0x0e 0b00011000 0x00
PDF
100% (1)
#Define Saida LATB0 - Bit: 0xFF 0xFE 0x01 0x0e 0b00011000 0x00
2 pages
Lab 7 - MNM Comp
PDF
No ratings yet
Lab 7 - MNM Comp
5 pages
Lab Report 9
PDF
No ratings yet
Lab Report 9
6 pages
LCD Interface PGM
PDF
100% (1)
LCD Interface PGM
4 pages
header File
PDF
No ratings yet
header File
5 pages
Clock
PDF
No ratings yet
Clock
6 pages
T C E E T: Embedded System Lab Experiment #4 LCD Programming
PDF
No ratings yet
T C E E T: Embedded System Lab Experiment #4 LCD Programming
7 pages
LCD Code For Avr
PDF
100% (1)
LCD Code For Avr
4 pages
rev1
PDF
No ratings yet
rev1
1 page
LCD and Keyboard Interfacing With 8051
PDF
No ratings yet
LCD and Keyboard Interfacing With 8051
3 pages
Heart Beat Monitoring Program
PDF
No ratings yet
Heart Beat Monitoring Program
5 pages
Coduri
PDF
No ratings yet
Coduri
2 pages
code vi xử lý cho cảm biến nhiệt độ LM 35 hiển thị trên đèn led và màn hình LCD
PDF
No ratings yet
code vi xử lý cho cảm biến nhiệt độ LM 35 hiển thị trên đèn led và màn hình LCD
4 pages
STM
PDF
No ratings yet
STM
8 pages
Code
PDF
No ratings yet
Code
2 pages
#Includereg51 H
PDF
No ratings yet
#Includereg51 H
3 pages
PIRCODE
PDF
No ratings yet
PIRCODE
13 pages
Código Medidor de Distancia
PDF
No ratings yet
Código Medidor de Distancia
15 pages
HX711
PDF
100% (1)
HX711
9 pages
Code Cho Pic Tham Khao
PDF
No ratings yet
Code Cho Pic Tham Khao
89 pages
علي باهميم - ١١١٩٢٩
PDF
No ratings yet
علي باهميم - ١١١٩٢٩
3 pages
Real Time Digital Clock Report
PDF
No ratings yet
Real Time Digital Clock Report
14 pages
sbit LCD
PDF
No ratings yet
sbit LCD
8 pages
Simulacion
PDF
No ratings yet
Simulacion
8 pages
Pic 16 F
PDF
100% (2)
Pic 16 F
63 pages
Programme Température
PDF
No ratings yet
Programme Température
1 page
Programas Microcontrolador
PDF
No ratings yet
Programas Microcontrolador
4 pages
mukoma final
PDF
No ratings yet
mukoma final
3 pages
Gagandeep Singh, Assignment 3.doxc
PDF
No ratings yet
Gagandeep Singh, Assignment 3.doxc
23 pages
Code
PDF
No ratings yet
Code
4 pages
Mikroc: Adc To Volt Conversion Using A 16F877: // Define LCD
PDF
No ratings yet
Mikroc: Adc To Volt Conversion Using A 16F877: // Define LCD
2 pages
LCD Test
PDF
100% (1)
LCD Test
3 pages
Three
PDF
No ratings yet
Three
2 pages
Three
PDF
No ratings yet
Three
2 pages
Calculated Encryption
From Everand
Calculated Encryption
John C Livingstone
No ratings yet
ANSWER mohamed weal
PDF
No ratings yet
ANSWER mohamed weal
34 pages
shawqy 3
PDF
No ratings yet
shawqy 3
27 pages
Shawkey 1
PDF
No ratings yet
Shawkey 1
19 pages
Presentation1[1]
PDF
No ratings yet
Presentation1[1]
5 pages
sec ass
PDF
No ratings yet
sec ass
24 pages
ups material-1
PDF
No ratings yet
ups material-1
8 pages
shaza 2
PDF
No ratings yet
shaza 2
45 pages
Shawkat Analdig
PDF
No ratings yet
Shawkat Analdig
19 pages
New Microsoft Word Document
PDF
No ratings yet
New Microsoft Word Document
3 pages
واحد
PDF
No ratings yet
واحد
18 pages
Smart Pharmacy
PDF
No ratings yet
Smart Pharmacy
1 page
Smart toolbox
PDF
No ratings yet
Smart toolbox
1 page
A device that converts sign language to speech and vice versa
PDF
No ratings yet
A device that converts sign language to speech and vice versa
1 page
shaza3
PDF
No ratings yet
shaza3
21 pages
assissment 1
PDF
No ratings yet
assissment 1
23 pages
Document (8)
PDF
No ratings yet
Document (8)
3 pages
r2
PDF
No ratings yet
r2
1 page