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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: PIC24 - Sampling/clock timer
sd_tom

Replies: 8
Views: 19757

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2018 12:47 pm   Subject: PIC24 - Sampling/clock timer
Thanks the period works perfectly. I guess what I don't get is what's the difference (I know one is more accurate, but order of magnitudes seems off)


#define FOSC 128000000
#define CLOCKS_PER_ ...
  Topic: PIC24 - Sampling/clock timer
sd_tom

Replies: 8
Views: 19757

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2018 11:30 am   Subject: PIC24 - Sampling/clock timer
will try the constants

Got an oscope attached this morning to double check where I'm at:

clock_TimerValue = 65536 - (128000000/2/8/clock_tickHz); // Fosc/2 / DIV / frequency
set ...
  Topic: PIC24 - Sampling/clock timer
sd_tom

Replies: 8
Views: 19757

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2018 10:38 am   Subject: PIC24 - Sampling/clock timer
I've looked through several of the equations on converting timer to wall time, and have composed the equations serveral ways, getting preloads that make sense.. so there's obviously something I'm mis ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group