Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
22 Raport Final

22 Raport Final

Ratings: (0)|Views: 342 |Likes:
Published by Abidi Marwen

More info:

Published by: Abidi Marwen on Feb 26, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

05/31/2013

pdf

text

original

 
 Mois--;delay_ms(200);If (mois==0) mois=12; Printf (lcd_putc,"\fDATE :\n -%02u- ",mois); }}While (input (BP_VALID) ==1);While (input (BP_VALID) ==0); //update_time();delay_ms (1000);Pos=2;//break;Case 2://jour=dt.dayYear=dt.year; ; //mois=dt.month; Printf (lcd_putc,"\fDATE :\n - -%02u",year);Do{If (input (BP_SUI)==0) {Year++;delay_ms(200);if (year==100) year=0; printf(lcd_putc,"\fDATE :\n - -%02u",year); }if (input(BP_PREC)==0) {Year--;delay_ms(200);If (year==0) year=99; Printf (lcd_putc,"\fDATE :\n - -%02u",year); }}While (input (BP_VALID) ==1);while (input (BP_VALID) ==0);//update_time ();delay_ms (1000);Pos=3;//break;Void time (){PCF8583_read_datetime(&dt); printf(lcd_putc,"\f%02u:%02u %02u-%02u-%02u",dt.hours,dt.minutes,dt.day,dt.month,dt.year);}Void update_time(){dt.seconds = 0;dt.hours=heur;dt.minutes= minute;dt.month = mois;dt.day = jour;dt.year = year;PCF8583_set_datetime(&dt);}Void reg_heure (){Mf=true;printf("*REGLAGE DE L'HEURE*\n\r");Switch(pos) {Case0:Jour=dt.day;mois=dt.month;Year=dt.year;Printf (lcd_putc,"\fDATE :\n%02u- - ",jour);Do{If (input (BP_SUI) ==0){jour++;delay_ms(200);If (jour==32) jour=1;Printf (lcd_putc,"\fDATE :\n%02u- - ",jour);}If ( input (BP_PREC) ==0){{temp_max=temp_max+0.5;delay_ms(200);if (temp_max==100) temp_max=1;printf(lcd_putc,"\ftemp_max:\n%2.2f C",temp_max);}if (input(BP_PREC)==0){temp_max=temp_max-0.5;delay_ms(200);if (temp_max==0) temp_max=99;printf(lcd_putc,"\ftemp_max:\n%2.2f C",temp_max);}}while (input(BP_VALID)==1);while (input(BP_VALID)==0);//update_time();delay_ms(1000);pos=1;//break;case 1:printf(lcd_putc,"\ftemp_min:\n%2.2f C",temp_min);do{if (input(BP_SUI)==0){temp_min=temp_min+0.5;delay_ms(200);if (temp_min==100) temp_min=1;printf(lcd_putc,"\ftemp_max:\n%2.2f C",temp_min);}if (input(BP_PREC)==0){temp_min=temp_min-0.5;delay_ms(200);if (temp_min==0) temp_min=99;eak;e 4:tf(lcd_putc,"\fHEURE :\n :%02u",minute);nput(BP_SUI)==0)ute++;y_ms(200);inute==60) minute=0;tf(lcd_putc,"\fHEURE :\n :%02u",minute);nput(BP_PREC)==0)ute--;y_ms(200);inute==-1) minute=59;tf(lcd_putc,"\fHEURE :\n :%02u",minute); le (input(BP_VALID)==1);le (input(BP_VALID)==0);date_time();y_ms(1000);=5;eak;e 5:putc("\fVos reglages:");ntf(lcd_putc,"\n%02u/%02u/%02u %02u:%02u",, mois, year,r, minute);y_ms(3000);putc("\fHorloge correct?\n C=NON V=OUI ");le (true)nput(BP_RET)==0) { delay_ms(1500); pos=0; break;}nput(BP_VALID)==0)..year=10 ;t_datetime(&date_struct);\fbonjour");000);illator parameter not selected from Intr Oscillotar Config tabe)0)ER CODE!!nnel( 0 );0);ead_adc();nnel( 1 );0);
 
PIN_A1);1000;i++)ead_adc();(valeur2 / 1023) * 5;n2;PIN_A1);(PIN_A1);/1000;(valeur1 / 1023) * 5;e=tension1;UTC,"\n\r%2.2fH%2.2f C",tension2,temperature);( !input(BP_SUI) ){delay_ms(1000);reg_heure();}( !input(BP_VALID) ){delay_ms(1000);config();}elay_ms(100);sprintf(ch," %f C",temperature);
Page
1
 
Page
2
 
Page
3

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->