m3_catalin
Newbie level 4

Hi,
This is my problem :
I made a simple program to flash some leds on PORTB and after programming I only have a constant value (~1.6V or 1,8v)on any pin of the PORTS A,B,C,D,E.
I use PICKIT2 and MPLAB.All goes well, the PIC is detected, programmed with no errors.
This is the code:
these are my bits configured:

this is my schematic:

and this is my board:

Where I am doing wrong ?
Thanks
This is my problem :
I made a simple program to flash some leds on PORTB and after programming I only have a constant value (~1.6V or 1,8v)on any pin of the PORTS A,B,C,D,E.
I use PICKIT2 and MPLAB.All goes well, the PIC is detected, programmed with no errors.
This is the code:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 #include <htc.h> #include <stdio.h> #include <time.h> void delay() //functia delay { unsigned int i; for(i=0;i<10000000;i++); } void main() { TRISA = 0; // Port A pins are configured as outputs TRISB = 0; // Port B pins are configured as outputs while(1) { PORTA = 0X00; PORTB = 0X00; delay(); PORTA = 0XFF; PORTB = 0XFF; delay(); } }
these are my bits configured:

this is my schematic:

and this is my board:

Where I am doing wrong ?
Thanks
Last edited: