W
Weber
Guest
Je vous écris ce code dans CCS-C, mais il na pas de travail
Code:# Include <> 16f84a.h
# Fusibles Hs, NOWDT, NOPROTECT
retarder la consommation de # (horloge = 4000000)
# Byte PORTA = 5
# PORTB octet = 6
# Include <DS1302a.c>main (void)
(char x, y, z;
rtc_init ();
rtc_set_datetime (8,9,9,5,0,0);
PORTB = 0;
SET_TRIS_B (0);pour (;
;
(rtc_get_time (x, y, z);if (y = 00) output_high (PIN_B0);
d'autre
output_low (PIN_B0);
))
Code:# Include <> 16f84a.h
# Fusibles Hs, NOWDT, NOPROTECT
retarder la consommation de # (horloge = 4000000)
# Byte PORTA = 5
# PORTB octet = 6
# Include <DS1302a.c>main (void)
(char x, y, z;
rtc_init ();
rtc_set_datetime (8,9,9,5,0,0);
PORTB = 0;
SET_TRIS_B (0);pour (;
(rtc_get_time (x, y, z);if (y = 00) output_high (PIN_B0);
d'autre
output_low (PIN_B0);
))