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 4 matches
CCS Forum Index
Author Message
  Topic: Capture 32 bit roll over
aumc

Replies: 6
Views: 14735

PostForum: General CCS C Discussion   Posted: Fri Nov 22, 2019 7:28 am   Subject: Capture 32 bit roll over
Hmmm... Seems to be working now.

The next code of the first post:setup_capture(1, CAPTURE_RE | INTERRUPT_EVERY_CAPTURE | CAPTURE_SYSTEM_CLOCK | CAPTURE_TRIG_SYNC_IC2 | COMPARE_32_BIT); // ...
  Topic: Capture 32 bit roll over
aumc

Replies: 6
Views: 14735

PostForum: General CCS C Discussion   Posted: Fri Nov 22, 2019 6:47 am   Subject: Capture 32 bit roll over
COMPARE_TRIG_SYNC_SELF has the value 0x001F0000. This corresponds to the bits <4:0> and seems to be an option for the register OCxCON2. OCxCON2 is a part of the output compare.

I assume you h ...
  Topic: Capture 32 bit roll over
aumc

Replies: 6
Views: 14735

PostForum: General CCS C Discussion   Posted: Thu Nov 21, 2019 1:52 am   Subject: Capture 32 bit roll over
I haven't used timer2. Added the timer configuration in the first post. Timer 1 is used for something else. What I understand from the documentation is that the capture unit have their own timer. See ...
  Topic: Capture 32 bit roll over
aumc

Replies: 6
Views: 14735

PostForum: General CCS C Discussion   Posted: Wed Nov 20, 2019 7:53 am   Subject: Capture 32 bit roll over
The roll over of a 32 bit timer doesn't occur.

This is my configuration:
PIC24FJ64GB004
PCWHD Compiler 5.053
Capture 1 (16 bit) and 2 (16 bit) in cascade (32 bit)
External pulse signal to captu ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group