nilses
Member level 2
- Joined
- Aug 22, 2013
- Messages
- 45
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,288
- Activity points
- 1,715
It may be the connection problem. Or else check your code...
It may be the connection problem. Or else check your code...
Probably power source is bad or cheap SMPS adapter. Try with standard 7805 regulator or any other linear/linear LDO for 5V with appropriate usage of capacitors, use 100uF before regulator, 10uF and 100nF after regulator.
Best is to post all project files. Zip all project files and upload.
Best regards,
Peter
Hello,
The board is powered by a Pickit2, tried 2 different. Pic16f688 and pic16f527 work fine for many days.
Will post the project files tomorrow evening. At nightshift until 10:UTC in the morning.
regards,
Nils
Try standard power source with earlier suggested regulators. Avoid to supply external boards from PicKit2 power except for programming purposes.
Best regards,
Peter
Thank you very much for many good tips and hints. I will try them out tomorrow.
I also have to admit that I have not read all the 308 pages in the datasheet, yet.
My oscilloscope will also been taken out from storage and some dust removed ...
regards,
Nils
For sure You declare war to this problem.
Best regards,
Peter
Hi nilses,
Mostly check your config register setting ..... I think this is mostly watch dog problem.....as you are ic get reset periodically...
Good luck
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 33 //Timer1 Fosc = 4 MHz //Prescaler 1:8; TMR1 Preload = 3035; Actual Interrupt Time : 500 ms //Place/Copy this part in declaration section void InitTimer1(){ T1CON = 0x31; TMR1IF_bit = 0; TMR1H = 0x0B; TMR1L = 0xDB; TMR1IE_bit = 1; INTCON = 0xC0; } void Interrupt(){ if (TMR1IF_bit){ TMR1IF_bit = 0; //Enter your code here PORTB = ~PORTB TMR1H = 0x0B; TMR1L = 0xDB; } } void main(){ TRISB = 0x00; PORTB = 0x00; ADCON1 = 0x7F; InitTimer1(); while(1); }
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 void main(){ TRISB = 0x00; PORTB = 0x00; ADCON1 = 0x7F; while(1){ PORTB = ~PORTB; Delay_ms(500); } }
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?