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 20 matches
CCS Forum Index
Author Message
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Thu Mar 05, 2015 3:56 pm   Subject: Measuring pulse width using CCP
-The Pulse is a square wave (High = 2.643mS & Low = 7.033mS). duration = 9.676ms
-its a positive raising edge, I am getting a 5VD going in the CCp1 and CCP2, Instead of the pulse signal. The sign ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Thu Mar 05, 2015 12:52 pm   Subject: Measuring pulse width using CCP
I Apologise again for REVAMPING this post for the 3rd time. This has been a side project that I don't get to spend alot of time on. I have completed the hardware part and also completed the software. ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Mon Oct 27, 2014 9:18 am   Subject: Measuring pulse width using CCP
Thanks,
I changed the header file back to the original. I used setup_timer_3(T3_INTERNAL | T3_DIV_BY_8 | T3_CCP2 );
Timer 3 works good.
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Mon Oct 27, 2014 7:52 am   Subject: Measuring pulse width using CCP
Thanks PCM Programmer,
I took a look at the header file and I realised the answer was right infront of me. I got the Timer3 to finally work. Had to edit the header file to #define T3_INTERNAL ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Fri Oct 24, 2014 1:05 pm   Subject: Measuring pulse width using CCP
I had a look at the header file and I made a small change to the code. But it still doesn't work. in the header file they mention

//#define CCP_USE_TIMER3 0x100 OBSOLETE, SEE TIMER- ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Fri Oct 24, 2014 9:40 am   Subject: Measuring pulse width using CCP
thanks, I will check out the header file.
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Fri Oct 24, 2014 9:25 am   Subject: Measuring pulse width using CCP
Hi Guys,
So I got the 18F2620 chip and tried the code with timer1 and ccp1. The code works and the data coming to the serial port is correct. I then modified the code to use CCP2 and Timer3 to do the ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Fri Oct 17, 2014 7:07 am   Subject: Measuring pulse width using CCP
Thanks Ttelmah,
PIC16F886 is a 28pin ucontroller, and PIC18F4620 is a 40 pin ucontroller. When I was looking at the PIC18F4620 datasheet they have PIC18F2525 or PIC18F2620 with 28 pin option. So I wi ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Thu Oct 16, 2014 9:00 am   Subject: Measuring pulse width using CCP
I saw that last night that pinC5 is input only and so i moved the pin to RA0 but still no go. Also the comment from Ttelmah about the clock not running at 4 Mhz is one of the reasons for the program n ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Thu Oct 16, 2014 8:22 am   Subject: Measuring pulse width using CCP
I will also be checking the 18F family but simpler than the 18F2550.
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Thu Oct 16, 2014 8:13 am   Subject: Measuring pulse width using CCP
I saw PCM Programmer's comment last night and I reviewed the PIN description again. I then realised the "I/0 is TTL and Digital I/O" for most of the ports. Where as the 16F886 "I/O is C ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Wed Oct 15, 2014 1:50 pm   Subject: Measuring pulse width using CCP
I am sorry, I should have explained better. The test i did on some ports was a separate code just to check if the micro controller was working. Just a High and Low test on ports. The Code i have post ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Wed Oct 15, 2014 12:06 pm   Subject: Measuring pulse width using CCP

#include <18F2550.h>
#fuses XT, NOWDT, NOPROTECT, PUT, BROWNOUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)

int8 capture_ri ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Wed Oct 15, 2014 8:48 am   Subject: Measuring pulse width using CCP
Hello,

The PIC i found is PIC18F2550. The code is working for 16F886 but when i use the same code for 18F2550 it doesnt work. For now I only want the Timer1 to work first so its the same code as 16 ...
  Topic: Measuring pulse width using CCP
Aragon

Replies: 41
Views: 76366

PostForum: General CCS C Discussion   Posted: Wed Oct 08, 2014 4:20 pm   Subject: Measuring pulse width using CCP
Thanks for the reply. I have to start looking for a different chip now.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group