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 46 matches
CCS Forum Index
Author Message
  Topic: measure period
pvol

Replies: 7
Views: 6689

PostForum: General CCS C Discussion   Posted: Mon Oct 26, 2009 1:27 pm   Subject: measure period
I receive square signal from my sensor.
Looks like the program never goes to WHILE{ }
I miss something???
  Topic: measure period
pvol

Replies: 7
Views: 6689

PostForum: General CCS C Discussion   Posted: Mon Oct 26, 2009 12:56 pm   Subject: measure period
I change it to ms but i don't see any changes.
The problem is that I think somewhere the program has big problem but
I don't know where. I check hardware connections and is ok.
PORTB never lights o ...
  Topic: measure period
pvol

Replies: 7
Views: 6689

PostForum: General CCS C Discussion   Posted: Mon Oct 26, 2009 11:38 am   Subject: measure period
I change it but without result...

void ccp1_isr(void)
{
int16 temp_ccp;
static int16 prev_ccp = 0;
temp_ccp = CCP_1;
ccpvalue = temp_ccp - prev_ccp;
prev_ccp = temp_ccp; ...
  Topic: measure period
pvol

Replies: 7
Views: 6689

PostForum: General CCS C Discussion   Posted: Mon Oct 26, 2009 10:39 am   Subject: measure period
hello,

I have a little problem about measure of period from an input signal (square).
The method that I use is CCP1. Below is the code that I use.
I have to notice that this code is copied and m ...
  Topic: split numbers to display
pvol

Replies: 1
Views: 3832

PostForum: General CCS C Discussion   Posted: Mon Aug 24, 2009 11:30 pm   Subject: split numbers to display
hello ...

I take a value from analog channel.
I want to display that value in separate 7 segment displays.
Is there a way to split value?
Number 345 split to 3 for the first display.
...
  Topic: ccs watching program
pvol

Replies: 1
Views: 2820

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 6:55 am   Subject: ccs watching program
is there a way to watch program on CCS?
for example ,when i used MPLAB (assembly)
i watched step by step how the program works.
so, can i do this on CCS?
i want to know if my program stack somewhe ...
  Topic: watchdog timer
pvol

Replies: 1
Views: 2926

PostForum: General CCS C Discussion   Posted: Mon Feb 23, 2009 5:30 am   Subject: watchdog timer
hello ...

i want to know about how watchdog working
on a program
can somebody show me a simple code how i use it?
  Topic: adc problem 18f4620
pvol

Replies: 0
Views: 3048

PostForum: General CCS C Discussion   Posted: Thu Jan 01, 2009 12:42 pm   Subject: adc problem 18f4620
happy new year everyone

I made a program to plot on labview
6 different channels

channel 0,1 POT 1K
channel 2,3,4,5 sensor

I begin from 2 channel then 3 ,4,5..
at the end i put and the ...
  Topic: strange problem on 18f4620
pvol

Replies: 10
Views: 13129

PostForum: General CCS C Discussion   Posted: Wed Dec 31, 2008 3:16 am   Subject: strange problem on 18f4620
well, after a few changes
i conclude that the program don't like RTCC very much

i write interrupt alone and the ADC at while (1)
and runs just fine!!!

#int_rtcc
void rtcc_isr(){
se ...
  Topic: strange problem on 18f4620
pvol

Replies: 10
Views: 13129

PostForum: General CCS C Discussion   Posted: Wed Dec 31, 2008 1:45 am   Subject: strange problem on 18f4620
i change my program and put output_high(PIN_B7)
after printf
so, i see that pulses wasn't steady
i mean ,on 877 shows like a "train" pulse!!
on 4620 i have one pulse even .... i don't ...
  Topic: strange problem on 18f4620
pvol

Replies: 10
Views: 13129

PostForum: General CCS C Discussion   Posted: Tue Dec 30, 2008 4:09 pm   Subject: strange problem on 18f4620
i very thank you!!

i change them as you say
but the problem continues
look..
i have the probe at PINB7
and the scale on osciloscope at 1ms and sometime 0.5ms
and the only thing i see is logic ...
  Topic: strange problem on 18f4620
pvol

Replies: 10
Views: 13129

PostForum: General CCS C Discussion   Posted: Tue Dec 30, 2008 3:46 pm   Subject: strange problem on 18f4620
thanks for reply !!!


can you be more clearly? (my english are not so good to understand uSad )
what must i look?
is there a problem on code?
.............................................. ...
  Topic: strange problem on 18f4620
pvol

Replies: 10
Views: 13129

PostForum: General CCS C Discussion   Posted: Tue Dec 30, 2008 3:23 pm   Subject: strange problem on 18f4620
this program runs ok on 877 but not on 18f4620

#include <18f4620.h>
#fuses HS,NOWDT,PUT,NOBROWNOUT,NOLVP
#device ADC=10
#use delay (clock=10000000)
#byte portb=6
#byte porta=5
# ...
  Topic: 16bit table
pvol

Replies: 6
Views: 5903

PostForum: General CCS C Discussion   Posted: Sun Dec 28, 2008 2:21 pm   Subject: 16bit table
thanks for interesting FvM
i'll check it!! Very Happy
  Topic: 16bit table
pvol

Replies: 6
Views: 5903

PostForum: General CCS C Discussion   Posted: Sun Dec 28, 2008 12:58 pm   Subject: 16bit table
thanks!
i change i>=25 and works!

but it is something more (i discover it right now)

well, i make two different programs
the first is to take at real time 25 samples (no store) every 0.8ms ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group