xchangelkp.blogg.se

Proteus for programming
Proteus for programming









proteus for programming

To be honest, I think your logic is very complicated where the effects of one if statement have a knock on effect on the next one (spaghetti programming).

proteus for programming

When posting code, put the code inside code tags: You haven’t defined what “working” means, or how you tested it. Use project enums instead of #define for ON and OFF. #pragma config statements should precede project file includes. #pragma config CPD = OFF // Data Code Protection bit (Data memory code protection is disabled) #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.











Proteus for programming