Display hexadecimal de 7 segmentos usando microntrolador PIC 16F877A
Código feito em CCS C Compiler
#include <16f877a.h>
#use delay(crystal = 20MHz)
void main(){
while(true){
output_b(0b00111111);//0
delay_ms(500);//espera 0.5 s
output_b( 0b00000110);//1
delay_ms(500);
output_b(0b01011011);
delay_ms(500);
output_b(0b01001111);
delay_ms(500);
output_b(0b1100110);
delay_ms(500);
output_b(0b01101101);
delay_ms(500);
output_b(0b00000111);//6
delay_ms(500);
output_b(0b01111111);
delay_ms(500);
output_b(0b1100111);//9
delay_ms(500);
output_b(0b1110111);//A
delay_ms(500);
output_b(0b1111100);//B
delay_ms(500);
output_b(0b0111001);//c
delay_ms(500);
output_b(0b1011110);//D
delay_ms(500);
output_b(0b1111001);//E
delay_ms(500);
output_b(0b1110001);//f
delay_ms(500);
}
}
Palavras chave:
תצוגה הקסדצימאלית בת 7 קטעים באמצעות בקר מיקרו PIC16F877A
ຈໍສະແດງຜົນ hexadecimal 7 ສ່ວນໂດຍໃຊ້ PIC16F877A microcontroller
7-segmentni šestnajstiški prikaz z uporabo mikrokrmilnika PIC16F877A
Hiển thị thập lục phân 7 đoạn bằng vi điều khiển PIC16F877A
7-segment hexadecimal kuratidza uchishandisa PIC16F877A microcontroller
7-сегментний шестидесятковий дисплей за допомогою мікроконтролера PIC16F877A
PIC16F877A മൈക്രോകൺട്രോളർ ഉപയോഗിച്ച് 7-സെഗ്മെന്റ് ഹെക്സാഡെസിമൽ ഡിസ്പ്ലേ
Nenhum comentário:
Postar um comentário