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 74 matches
CCS Forum Index
Author Message
  Topic: Simple thing but problem
Requan

Replies: 4
Views: 6735

PostForum: General CCS C Discussion   Posted: Sat Jan 17, 2015 4:37 am   Subject: Simple thing but problem
sorry, i put piece of code i have problem and forgot to paste declaration, here it is:
int16 valuemodbus[10];
int32 adc_val;

i tried also as int32 but no help.

Now, i am wondering if c ...
  Topic: Simple thing but problem
Requan

Replies: 4
Views: 6735

PostForum: General CCS C Discussion   Posted: Fri Jan 16, 2015 11:36 am   Subject: Simple thing but problem
Dear CCS Member,
I wrote program to read temperature from PT1000 via external ADC.
const float ResistanceTable[]=
{
803.06,
842.71,
882.22,
921.6,
960.86,
1000, ...
  Topic: Problem with run ex_st_webserver2.c
Requan

Replies: 1
Views: 5470

PostForum: General CCS C Discussion   Posted: Wed Dec 10, 2014 2:36 am   Subject: Problem with run ex_st_webserver2.c
Problem solved - I used CCS bat file to transfer bin by TFTP and start working.
  Topic: Problem with run ex_st_webserver2.c
Requan

Replies: 1
Views: 5470

PostForum: General CCS C Discussion   Posted: Thu Dec 04, 2014 8:08 am   Subject: Problem with run ex_st_webserver2.c
Hi,
I tried to run ex_st_webserver2.c.
I have the newest library (2014-09-15_tcpip) and the newest CCS (5.032).
I work on CCS 18f67j60 Ethernet board, so i set up:

#define STACK_USE_CCS_PICEEC ...
  Topic: 24FJ256GB206 + 1ms timer?
Requan

Replies: 5
Views: 7542

PostForum: General CCS C Discussion   Posted: Wed Jul 16, 2014 11:48 am   Subject: 24FJ256GB206 + 1ms timer?
Arrow jeremiah:
Could You help me in one more issue:
i set up PWM:


#pin_select OC1 = PIN_B9
void main()
{
setup_timer2(TMR_INTERNAL | TMR_DIV_BY_1, 1000);
setu ...
  Topic: 24FJ256GB206 + 1ms timer?
Requan

Replies: 5
Views: 7542

PostForum: General CCS C Discussion   Posted: Wed Jul 16, 2014 6:39 am   Subject: 24FJ256GB206 + 1ms timer?
Arrow jeremiah:
Could You help me in one more issue:
i set up PWM:


#pin_select OC1 = PIN_B9
void main()
{
setup_timer2(TMR_INTERNAL | TMR_DIV_BY_1, 1000);
setu ...
  Topic: 24FJ256GB206 + 1ms timer?
Requan

Replies: 5
Views: 7542

PostForum: General CCS C Discussion   Posted: Wed Jul 16, 2014 4:02 am   Subject: 24FJ256GB206 + 1ms timer?
Your interrupt fires every 4.1 ms, so your 8.2ms makes sense. You need to use the optional parameter in setup_timer1() to set the period of the register to 16000 instead. Doing set_timer1(16000) doe ...
  Topic: 24FJ256GB206 + 1ms timer?
Requan

Replies: 5
Views: 7542

PostForum: General CCS C Discussion   Posted: Tue Jul 15, 2014 11:32 am   Subject: 24FJ256GB206 + 1ms timer?
Dear CCS forum Memeber,
I need to have timer interrupt each 1ms on 24FJ256GB206.
I use CCS 24F USB PCB and CCS v5.026.
I use CCSUSB.h so i have set:
#use delay(crystal=20M, clock=32M, USB_FUL ...
  Topic: USB virtual port
Requan

Replies: 9
Views: 13504

PostForum: General CCS C Discussion   Posted: Wed Apr 09, 2014 4:39 am   Subject: USB virtual port
Arrow Ttelmah:
Thanks for answer and Your time.
Now the only reason to need a delay, is that something is preventing the USB interrupt from being properly serviced. Remember that when using USB, i ...
  Topic: USB virtual port
Requan

Replies: 9
Views: 13504

PostForum: General CCS C Discussion   Posted: Tue Apr 08, 2014 5:22 am   Subject: USB virtual port
Dear Ttelmah:
Let me ask another question:
Based on Your example i prepared simple program to send USB echo:


if(USB_CABLE_IS_ATTACHED())
{
if (usb ...
  Topic: CCS 5.xxx Sticky
Requan

Replies: 39
Views: 117913

PostForum: General CCS C Discussion   Posted: Mon Mar 31, 2014 5:58 am   Subject: CCS 5.xxx Sticky
Hi,
I found bug with view data in debug view, so what i did to show it:

I loaded example data to array:
char Table

CCS solved problem in v5.023 Very Happy
  Topic: USB virtual port
Requan

Replies: 9
Views: 13504

PostForum: General CCS C Discussion   Posted: Fri Mar 28, 2014 6:48 am   Subject: USB virtual port
You are still not checking for dte.

There are other ways of doing this, but the 'point' is this allows the code to know if the connection is 'open'. Problem otherwise is if the connection goes 'ope ...
  Topic: USB virtual port
Requan

Replies: 9
Views: 13504

PostForum: General CCS C Discussion   Posted: Thu Mar 27, 2014 7:56 am   Subject: USB virtual port
Arrow Ttelmah

I add checking USB voltage:

WHILE (TRUE)
{
int16 adc_value;
adc_value = read_adc();
volts = (float)(adc_value * 3.3&# ...
  Topic: USB virtual port
Requan

Replies: 9
Views: 13504

PostForum: General CCS C Discussion   Posted: Mon Mar 24, 2014 7:24 am   Subject: USB virtual port
Thanks Ttelmah for big help as always, I will add 5v checking, and use DTE, but first i have repair my evaluation board after some burning Mad .

Let me ask one more question: where i find functi ...
  Topic: CCS 5.xxx Sticky
Requan

Replies: 39
Views: 117913

PostForum: General CCS C Discussion   Posted: Mon Mar 24, 2014 2:09 am   Subject: CCS 5.xxx Sticky
Hi,
I found bug with view data in debug view, so what i did to show it:

I loaded example data to array:
char Table[11];
memset(Table, '\0', sizeof(Table));
sprintf(Table,"1;2.3:4,5"); ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group