CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PWM not reliable any suggestions

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

PWM not reliable any suggestions
PostPosted: Fri Dec 30, 2005 1:34 pm     Reply with quote

PWM not reliable on PIC18F6720

Microchip tells me there are no un-published errata about PWM issues.

Some chips simply do not output anything. I'm using CCP1 and CCP5

Failure rate is approaching 5% Units that work are reliable, units that fail can be spoted in the first few minutes of testing.

Chip replacement is a cure. I've tried about every software variation.

So far I have not put a "bad chip" I as a replacement.
TQFP are no fun to change, and it does stress the PCB making the circuit board vunerable for any future (hope never) chip changes.

I'd move to a different chip but that would limit my future firmware plans.

Any suggestions or similar experiences ?

Perhaps I should rig up a socketes board and pretest the chip before use.
Anyone know where I can get a TQFP 64 pin ZIF socket ?

Happy New Year....
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 30, 2005 4:00 pm     Reply with quote

It might be useful to search for PWM problems in the Erratas for
other 18F chips.

Microchip took away their Advanced Search engine, so that leaves
Google. So go to Google Advance Search page:
http://www.google.com/advanced_search?hl=en
Then set it up like this to find erratas relating to PWM:

Find all the words: Errata PWM
Without the words: microsolutions
Return results in file format: PDF
Return results from domain: microchip.com

Here is one that looks interesting:
PIC18F6390/6490/8390/8490 Rev. B3 Silicon Errata (80207b.pdf)
Quote:
7. CCP
The CCP1 and CCP2 configured for PWM mode
with 1:1 Timer2 Prescaler and duty cycle set to
the period minus 1, may result in the PWM outputs
remaining at a logic low level.

(it goes on with more after this, and gives
a work-around).


This is sort of the type of problem that you're having.
i.e.: PWM shuts down for weird reason.

You could look at that errata and the rest of the 18F (or even 16F)
erratas that Google pops up, and see if they might be the cause
of your problem. My logic here is that a bug recognized in one
PIC might well exist in other PICs, but it just hasn't been verified
or officially acknowledged yet. You might be the first one to find
it in your PIC.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Dec 30, 2005 5:27 pm     Reply with quote

Quote:
Anyone know where I can get a TQFP 64 pin ZIF socket ?
You can try the following link: http://www.enplas-ets.com/products.php?page=3
They manufacture several TQFP ZIF models.
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

Thanks good tip
PostPosted: Sat Dec 31, 2005 6:51 am     Reply with quote

Thanks for the tip, I keep forgetting google...

This project started out with PIC18F6722 and after nightmares with the EUSART and contacting Microchip they recommended I use the older PIC18F6720 with "normal" UART. Of course I lost any ability to do auto Baud rate, but the first few batches never displayed a problem with PWM.

It is also interesting how one person at Microchip tells me about Silicon Rev. A5, and another denies it !

Microchip now recommends I move to the PIC18F6722 ! Ha Ha... that errata sheet reads like Al Capon's crime sheet, and the EUSART still has not been fixed ! In fact I think it's still the same errata sheet from 2004.

As the PWM issue is easy to detect, testing seems to be the next route. I am plannig to sell the chips preprogrammed so that gives me another reason for going down that road...

Thanks again...
Hans W
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

Great... just what I needed. Thanks....
PostPosted: Sat Dec 31, 2005 6:52 am     Reply with quote

ckielstra wrote:
Quote:
Anyone know where I can get a TQFP 64 pin ZIF socket ?
You can try the following link: http://www.enplas-ets.com/products.php?page=3
They manufacture several TQFP ZIF models.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group