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: How to calculate pulse width when using external interrupt
Quang

Replies: 6
Views: 13948

PostForum: General CCS C Discussion   Posted: Wed Apr 05, 2023 11:00 pm   Subject: How to calculate pulse width when using external interrupt
You can't like that.
The interrupt will only occur on one edge. So frequency, not pulse width,
You would have to use the interrupt on change rather than INT_EXT.
This would then allow the pin to me ...
  Topic: How to calculate pulse width when using external interrupt
Quang

Replies: 6
Views: 13948

PostForum: General CCS C Discussion   Posted: Wed Apr 05, 2023 10:59 pm   Subject: How to calculate pulse width when using external interrupt
a lot of options
IF you tell us the PIC you're using....
... and what frequencies you need...
i use pic16f887 and pulse generator is connected to RB0 and range of freq is 0-200hz
  Topic: How to calculate pulse width when using external interrupt
Quang

Replies: 6
Views: 13948

PostForum: General CCS C Discussion   Posted: Wed Apr 05, 2023 9:31 am   Subject: How to calculate pulse width when using external interrupt
I try to calculate frequency and pulse width of square waveform. I can find frequency but don't know how to do when calculate pulse width. Here is my code:

#include <TH71.h>
#define LCD_ENAB ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group