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 10 matches
CCS Forum Index
Author Message
  Topic: Issues with while loop, Pulse width measure 1 CCP [16F690]
buler

Replies: 9
Views: 13604

PostForum: General CCS C Discussion   Posted: Tue Jun 14, 2011 2:26 pm   Subject: Issues with while loop, Pulse width measure 1 CCP [16F690]
1. What is the pulse length value that you measure with your CCP
program, and what length did you expect to see ?

2. How do you know for sure that you are giving the PIC your expected
pulse l ...
  Topic: Issues with while loop, Pulse width measure 1 CCP [16F690]
buler

Replies: 9
Views: 13604

PostForum: General CCS C Discussion   Posted: Tue Jun 14, 2011 1:28 pm   Subject: Issues with while loop, Pulse width measure 1 CCP [16F690]
void main()
{
int16 pulse_width_ms,sum=0,local_ccp_delta, pwarray, pulse_width_array, i=0;
These arrays don't acutally exist. You didn't allocate any RAM for the
elements, because you didn't s ...
  Topic: Issues with while loop, Pulse width measure 1 CCP [16F690]
buler

Replies: 9
Views: 13604

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 12:52 pm   Subject: Issues with while loop, Pulse width measure 1 CCP [16F690]
I think, it's not guaranteed, that the interrupt will alway occur between these two instructions. You should add a short us delay.
output_high(pin_C0);
delay_us(2);
if( ...
  Topic: Issues with while loop, Pulse width measure 1 CCP [16F690]
buler

Replies: 9
Views: 13604

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 12:10 pm   Subject: Issues with while loop, Pulse width measure 1 CCP [16F690]
Do you really see "flicker". A program period will last at least 2 seconds, that's slow blinking in my understanding. Because the remaining code is hidden, we can't know if the output can be ...
  Topic: Issues with while loop, Pulse width measure 1 CCP [16F690]
buler

Replies: 9
Views: 13604

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 9:05 am   Subject: Issues with while loop, Pulse width measure 1 CCP [16F690]
I am trying to flicker an LED off and on at a constant rate through one of the pins and then measure the pulse width through the use of the capture. I got it working by using another example on this ...
  Topic: Using Combination of Two Ports to interface w/ LCD [SOLVED]
buler

Replies: 4
Views: 6053

PostForum: General CCS C Discussion   Posted: Thu May 05, 2011 7:17 am   Subject: Using Combination of Two Ports to interface w/ LCD [SOLVED]
I use Pickit 2 sometimes, and I use it with MPLAB. It works seamlessly.
I don't have to "import" the HEX file. I never have the problem that
you're seeing.

My guess is that maybe you' ...
  Topic: Using Combination of Two Ports to interface w/ LCD [SOLVED]
buler

Replies: 4
Views: 6053

PostForum: General CCS C Discussion   Posted: Wed May 04, 2011 8:09 am   Subject: Using Combination of Two Ports to interface w/ LCD [SOLVED]
I assume you're using the CCS driver, lcd420.c ? That driver is not set
up to use split ports in the structure. But Mark posted a method to do
that in the Code Library for lcd.c. You can use the ...
  Topic: Using Combination of Two Ports to interface w/ LCD [SOLVED]
buler

Replies: 4
Views: 6053

PostForum: General CCS C Discussion   Posted: Tue May 03, 2011 1:36 pm   Subject: Using Combination of Two Ports to interface w/ LCD [SOLVED]
I am trying to interface my PIC 16F690 with a 4x20 LCD. Right now I am using Pins A0, A1, A2 as Enable, R/W, & RS Respectively and then using Pins B4-B7 for the Data lines.

I tried editing the ...
  Topic: Interrupt Not Working - 16F690 - CCP1 [solved]
buler

Replies: 2
Views: 4338

PostForum: General CCS C Discussion   Posted: Wed Apr 27, 2011 1:45 pm   Subject: Interrupt Not Working - 16F690 - CCP1 [solved]
You don't have Global interrupts enabled. You need to add that line.

Thank you, I had that line in earlier but for some reason I had deleted it. It looks like my main reason (when that line of cod ...
  Topic: Interrupt Not Working - 16F690 - CCP1 [solved]
buler

Replies: 2
Views: 4338

PostForum: General CCS C Discussion   Posted: Wed Apr 27, 2011 12:47 pm   Subject: Interrupt Not Working - 16F690 - CCP1 [solved]
I have a pic eval board that has a couple leds on it and a pic 16F690. I have one led that is set to turn on and off in a continuous loop. I also have a wire going from that led to the capture pin o ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group