#include <16F877.h>
#device adc=8
#fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG
#use delay(clock=4000000)
#include <Lcd_4bit.c>
int16 value,value1;
void main(){
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
set_tris_d(0x00);
lcd_init();
lcd_row_col(1,0);
lcd_putc("Electrical Power");
delay_ms(20);
lcd_row_col(2,0);
lcd_putc("Loei Technical ");
delay_ms(5000);
lcd_Cls();
while(true){
value = 2568;
value1 = 1278;
//==================================
lcd_row_col(1,0);
Lcd_putc("setpoint=");
hex_bcd(value);lcd_row_col(1,9);sent_Lcd();
//delay_ms(100);
//==================================
lcd_row_col(2,0);
Lcd_putc("Value=");
hex_bcd(value1);lcd_row_col(2,6);sent_Lcd();
delay_ms(100);
}
}
Related projects
PICDEM FS USB Mass Storage Device using PIC18F4550 with Proteus Simulation
Introduction This microcontroller project demonstrates how to simulate a USB Mass Storage Device (MSD) using the PIC18F4550 in a Proteus simulation environment....
Peripheral TutorialsHands-On Digital I/O Lab with PIC18F46K22 Microcontroller
PIC18F46K22 Microcontroller Digital I/O specifically explores the design of simple combinational circuits using the digital I/O capabilities of the PIC18F46K22 microcontroller. Moving...
Peripheral TutorialsDesign for manufacturing and assembly: DFA&DFM
Product developers understand the challenges involved in creating a market-ready product. Even experienced designers often go through multiple prototype iterations before reaching...
Peripheral Tutorials · PIC16F877AKeypad 4×5 for microcontrollers v. 1.1 using PIC16F877
What's this? The circuit here described is a simple 4x5 keypad that can be used in particular with the PIC 16F877 microcontroller,...
Peripheral TutorialsMatrix scankey 3×4 for Lcd 2 line For CSS Compiler
Peripheral Tutorials · PIC16F877APIC16F877 timer1 code and Proteus simulation
This PIC16F877 microcontroller tutorial answers the question, " How to use timer1 of PIC16F877 and how to handle its interrupts? " Using...