Basic input-output For CSS Compiler




 
#include <16F877.h>
#device adc=8
#FUSES NOWDT ,XT                                        
#use delay(clock=4000000)
void main()
{
set_tris_a(0xff);   
set_tris_b(0x00);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
output_b(0x00);
while(true){
if(!input(pin_a0)){ 
output_b(0xff);
delay_ms(100);}
if(!input(pin_a1)){ 
output_b(0x00);
delay_ms(100);}
}
}




Current Project / Post can also be found using:

  • microcontroller tutorial
READ  Seven segment _2digit_anode For CSS Compiler

Leave a Comment

*
= 4 + 1

Read previous post:
Nokia 3315 3310 LCD interfacing with Microcontroller Schematic
Nokia 3315 / 3310 LCD interfacing with Microcontroller

Displaying content on a normal alphanumeric display is very limited ,we have to be limited with the font size and we can't...

Close
Scroll to top