Embedded C program for PC to PC serial communication using UART in PIC18F using MPLAB IDE

For UART PC to PC Serial Communication: Go on Project -> Right Click -> Properties-> Simulation-> Option Categories->Uart1 IO...
Read More

Embedded C program for sorting the numbers in ascending or descending orders. Consider any 2-sorting algorithms for menu driven program in PIC18 using MPLAB IDE

 Program: #include <xc.h> void main(void) { int i, j, key, temp, flag = 0, choice; int arr[] = { 4, 1, 3, 5, ...
Read More

Program to Divide two 8bit Numbers using PIC18F MCU in MPLAB IDE using Embedded C

Program: #include <xc.h> void main(void) { PORTA = 0x50; // 80 PORTB = 0x02; // 02 TRISA = 0; TRISB = 0; ...
Read More

Program to Multiply two 8bit numbers using PIC18F MCU in MPLAB IDE using Embedded C

Program: #include <xc.h> void main(void) { TMR0H = 0x1B; // 1B = 27 TMR0L = 0x0A; // 0A = 10 int a = TMR0H *...
Read More