LED Blinking Project with PIC 18F45K22 Microcontroller in Micro C Programming

 https://github.com/anokhramesh/LedBlink-with-PIC18F45K22

download link for MikroC

https://drive.google.com/file/d/13pVa8EOkEv4mVRU1Ks4Row7WxD4stF33/view?usp=sharing


code

//Blinking 2 LED

//anokhautomation

//anokhramesh@gmail.com


void main() {

 TRISB = 0;//set direction to OUTPUT

 TRISC5_bit = 0;

 ANSELB = 0;

 ANSELC = 0;

 do{

 LATB.B0 = 0;

 LATC.B5 = 0;

 Delay_ms(500);

 LATB.B0=1;

 LATC.B5=1;

 Delay_ms(500);

 

} while(1);

}

Comments

Popular posts from this blog

Proteus simulation 4x4 Matrix Keypad with Arduino and LCD screen

Digital Clock with Arduino and RTC Module and P10 LEDmatrix

Interfacing KY038 sound sensor with Raspberry pi Pico