Código feito em CCS C Compiler
#include <16f877A.h>
#fuses HS, NOWDT, NOPROTECT, NOLVP
#use delay(crystal = 20 MHz)
int v1[] = {0b0111111, 0b0000110, 0b1011011, 0b1001111, 0b1100110, 0b1101101, 0b1111101, 0b0000111, 0b1111111, 0b1100111};
int v2[] = {0b0111111, 0b0000110, 0b1011011, 0b1001111, 0b1100110, 0b1101101, 0b1111101, 0b0000111, 0b1111111, 0b1100111};
int size = sizeof(v1)/sizeof(int);
void main(){
while(true){
for(int i = 0; i < size; i++){
for(int j = 0; j <size; j++){
output_b(v1[i]);
output_c(v2[j]);
delay_ms(500);
}
}
}
}
Saída gerada no software Proteus versão 7.7 |
Palavras chave:
Számláljon 0-tól 99-ig a PIC 16F877A segítségével
Лічыльнік ад 0 да 99 з PIC 16F877A
Հաշվիչ 0-ից 99 PIC 16F877A-ով
מונה 0 עד 99 עם PIC 16F877A
Teller 0 tot 99 met PIC 16F877A
Laskuri 0 - 99 PIC 16F877A:lla
Counter 0 ho 99 e nang le PIC 16F877A
PIC 16F877A ile 0'dan 99'a kadar Sayaç
Лічильник від 0 до 99 з PIC 16F877A
Tæller 0 til 99 med PIC 16F877A
Nenhum comentário:
Postar um comentário