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

14 bit pwm on 18f452

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







14 bit pwm on 18f452
PostPosted: Wed Mar 02, 2005 11:33 am     Reply with quote

Hi there,

this is not a specific question concerning ccs , but I hope someone can answer it anyway.

The datasheet of the 18F452 says on page 123 in tabke 14-4 that when you choose an update rate of the pwm of 2.44 khz you can get 14 bit of resolution from the pwm.
But on the other hand according to the datasheet you cann only set up 10 bit of resolution in CCPR1L an CCPR1H<5:4>.

So can I get 14 bit of resolution or is it prohibited by the hardware and table 14-4 shows only a theoretical value ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 02, 2005 12:44 pm     Reply with quote

The data sheet is not correct. Look in the 18F Reference Manual
on PWM for the correct tables. It's on page 13 at the following link:
http://ww1.microchip.com/downloads/en/DeviceDoc/39517.pdf
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