Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 21st May 2007, 05:16 AM   #1
Arrow PIC Start Time Problem - PIC 16F628A

Hi all I have a doubt in 628A. I have put an earlier thread regarding a power supply reset problem that I solved.

This time my PIC when power up it takes time to start up.
I have connected two seven segments in to PORTB running in multiplex mode.

I have noticed after a 1 minutes time after power up, the two segments blinking & the rate is increasing step by step. After it’s reaching to its calculated multiplex delay rate (no flickering displaying) works fine.

Why it’s increasing the flickering rate.
My coding is right fuse settings I have changed about 100 times.
I changed the crystal.
I have a smooth power supply.

But no progress after power up segments won’t work immediately. After sometimes its display rate is increasing and working.

Why is this I think a problem with the PIC.
Suraj143 is offline  
Old 21st May 2007, 02:19 PM   #2
Default

Quote:
Originally Posted by Suraj143
Hi all I have a doubt in 628A. I have put an earlier thread regarding a power supply reset problem that I solved.

This time my PIC when power up it takes time to start up.
I have connected two seven segments in to PORTB running in multiplex mode.

I have noticed after a 1 minutes time after power up, the two segments blinking & the rate is increasing step by step. After it’s reaching to its calculated multiplex delay rate (no flickering displaying) works fine.

Why it’s increasing the flickering rate.
My coding is right fuse settings I have changed about 100 times.
I changed the crystal.
I have a smooth power supply.

But no progress after power up segments won’t work immediately. After sometimes its display rate is increasing and working.

Why is this I think a problem with the PIC.
I suspect a firmware problem with initialization. This problem resolves itself after going through a long process of getting certain variables to a stable condition.

What you have is a question, not a doubt. This linguistic mistake keeps showing up and I'm going to keep pointing it out every time I see it. You have a question when you don't know the answer. You have a doubt, when you know the answer, but there is some uncertainty in your conviction.

Last edited by Papabravo; 21st May 2007 at 02:22 PM.
Papabravo is offline  
Old 21st May 2007, 02:37 PM   #3
Default

Its a doubt.

He is thinking(or believe) that reason of the problem is the PIC, not his "My code is right" mentality.
__________________
L.Chung
eblc1388 is offline  
Old 21st May 2007, 03:24 PM   #4
Default

I'm with PB, I think it's software related. Try clearing all memory. If that doesn't work try writing 1 to all memory, then 255. Once you find the value that fixes the problem then work out why.

Mike.
Edit, To clear/write to memory you should use a loop with indirect addressing. If you can't do that then write a few of your variables at a time until you find the culprit.

Last edited by Pommie; 21st May 2007 at 03:28 PM.
Pommie is offline  
Old 21st May 2007, 04:24 PM   #5
Default

Quote:
Originally Posted by Pommie
I'm with PB, I think it's software related. Try clearing all memory. If that doesn't work try writing 1 to all memory, then 255. Once you find the value that fixes the problem then work out why.

Mike.
Edit, To clear/write to memory you should use a loop with indirect addressing. If you can't do that then write a few of your variables at a time until you find the culprit.
Bear in mind though, this idea isn't a 'cure all', it merely helps to cover up bad programming in the first place - you should always initialise all GPR's before you use them, or at least before you read them.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 21st May 2007, 04:29 PM   #6
Default

Quote:
Originally Posted by Nigel Goodwin
Bear in mind though, this idea isn't a 'cure all', it merely helps to cover up bad programming in the first place - you should always initialise all GPR's before you use them, or at least before you read them.
That's why I said "then work out why".

Mike.
Pommie is offline  
Old 22nd May 2007, 04:07 AM   #7
Default

Hi thanks for your suggestions.

I initialize all the GP resistors.But I cleared most of the registers.But I didn't clear the delay registers (registers used for delays - d1,d2,d3,d4). I must give try to clear all my registers.

Also my program is long for 1500 lines.

If no fix I'll try to post the code.

Thanks a a lot.
Suraj143 is offline  
Old 22nd May 2007, 01:04 PM   #8
Default

Quote:
Originally Posted by eblc1388
Its a doubt.

He is thinking(or believe) that reason of the problem is the PIC, not his "My code is right" mentality.
So is it correct to ask a doubt?
Papabravo is offline  
Old 22nd May 2007, 01:32 PM   #9
Default

Quote:
Originally Posted by Papabravo
So is it correct to ask a doubt?
Presumably his first language isn't English?, but he's not got his location filled in so we don't know.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 22nd May 2007, 01:39 PM   #10
Default

If I have a doubt about where I am, do I ask a passerby a question in order to lessen my doubt?

Mike.
Pommie is offline  
Old 22nd May 2007, 04:00 PM   #11
Default

Quote:
Originally Posted by Pommie
If I have a doubt about where I am, do I ask a passerby a question in order to lessen my doubt?

Mike.
A typical antipodal answer....er I guess that was a question about a doubt. Without a doubt.
Papabravo is offline  
Reply

Tags
pic, problem, start, time

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 10:49 PM
Help with problem programming 16F628A ukatv Micro Controllers 8 25th September 2007 09:23 PM
Real time freq correction problem Rosco101 Electronic Projects Design/Ideas/Reviews 2 8th April 2005 12:02 PM
pc keyboard interfacing problem econsyst Micro Controllers 0 8th November 2003 09:28 PM



All times are GMT. The time now is 07:39 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker