Learn   /   Peripheral Tutorials

Output Blink port For CSS Compiler

Output Blink port For CSS Compiler: circuit, code and details for this PIC microcontroller project.

Published

At a glance

CategoryPeripheral Tutorials
IncludesCode
Reading time~1 min
C source
 
#include <16F877.h>
#device adc=8
#FUSES NOWDT ,XT                                        
#use delay(clock=4000000)
void main()
{
   set_tris_b(0x00); 
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   output_b(0x00);

while(true){
    output_b(0xff);
    delay_ms(500);
    output_b(0x00);
    delay_ms(500);    
  }
}
Ibrar Ayyub

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough...