![]() ![]() #pragma config CP = OFF // Code Protection bit (Program Memory code protection is disabled) #pragma config BOREN = ON // Brown-out Detect Enable bit (BOD enabled) #pragma config MCLRE = ON // RA3/MCLR pin function select (RA3/MCLR pin function is MCLR) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT enabled) #pragma config FOSC = HS// Oscillator Selection bits (INTOSC oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN) please help.Ĭircuit consists of 5v supply in VCC and 1.2k to MCLRĪll inputs are pulled down using 390k for preventing noise. but not when burned into the microcontroller. I am a beginner in PIC coding.been trying to write a code for a water level monitor.Ĭode sems to be working fine in proteus simulator. Code seems work fine in proteus 8 simulator but not when burned into Controller.
0 Comments
Leave a Reply. |