|
|
View previous topic :: View next topic |
Author |
Message |
valemike Guest
|
tris bits and ECCP... |
Posted: Wed Jul 06, 2005 11:30 am |
|
|
For those of you using the ECCP in full bridge mode, you are instructed to make the RD7:RD4 pins as all inputs while you set up the ECCP, then turn them into outputs after your first PWM cycle.
I'm wondering what would happen if:
- I configure the ECCP in full bridge mode, whether it be forward or reverse mode, and only configure the two active bridge pins as outputs, while keeping the other two inactive pins as inputs.
Doesn't the ECCP run internally regardless of the TRIS settings; if so, then i can change my TRIS pins on the fly. Hopefully this gets rid of all ECCP glitch woes. (Yeah i've read a bunch of errata notes on the PIC18F458 and other PIC families).
I think i am experiencing a problem where updating the ECCPR1L to a non-zero number is initially accompanied by a glitch in the duty cycle. It happens so fast and i'm not that good at triggering a scope to only capture one transition, so i'm just playing it by ear. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jul 06, 2005 11:50 am |
|
|
Buy or rent a logic analyzer. Then you can see the pulses, and
maybe solve the problem. |
|
|
valemike Guest
|
|
Posted: Wed Jul 06, 2005 12:04 pm |
|
|
Yeah, it's probably cheaper in the long run than to spend R&D hours scratching my head. |
|
|
|
|
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
|