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 37 matches
CCS Forum Index
Author Message
  Topic: C library code
assaad

Replies: 2
Views: 5019

PostForum: General CCS C Discussion   Posted: Tue Mar 12, 2013 3:02 am   Subject: C library code
Hello all
Is it possible to create a C library code, so we can use the functions in it, but we cant let someone else see the source of the code.
Is that possible with ccs ?

Regards
  Topic: calculating one byte checksum
assaad

Replies: 1
Views: 3778

PostForum: General CCS C Discussion   Posted: Mon Jun 27, 2011 7:52 am   Subject: calculating one byte checksum
Hi all
I could not find how to calculate one byte checksum to communicate with laser sensor via usart.
The laser sensor accept 4 bytes and one byte check sum.
There is an example in the manual: ...
  Topic: floating numbers problem with saving and reloading
assaad

Replies: 4
Views: 6303

PostForum: General CCS C Discussion   Posted: Thu Jun 16, 2011 12:25 pm   Subject: floating numbers problem with saving and reloading
Any idea about this issue?
  Topic: floating numbers problem with saving and reloading
assaad

Replies: 4
Views: 6303

PostForum: General CCS C Discussion   Posted: Wed Jun 15, 2011 7:10 am   Subject: floating numbers problem with saving and reloading
Sorry for the late reply.

Here the routines that I use for saving and loading, I use pointers.

void Write_Float_ram_low(int16 address1, float data1)
{
int8 i;
for( ...
  Topic: floating numbers problem with saving and reloading
assaad

Replies: 4
Views: 6303

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 8:55 am   Subject: floating numbers problem with saving and reloading
Hi everyone ;

I have problem with saving and reloading floating points with CCS v4.106
I am saving data in external Static RAM as 4 bytes and when i read it back i get a problem of 0.01 changing ...
  Topic: AD7705 reading problems
assaad

Replies: 2
Views: 4505

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2011 1:16 am   Subject: AD7705 reading problems
Thank you Ttelmah
The problem is solved.

Before using this setup, I should choose the correct channel in the communication register.

setup_adc_device( ADC_SELF, ADC_GAIN_1, ADC_UNIPOLAR, ...
  Topic: AD7705 reading problems
assaad

Replies: 2
Views: 4505

PostForum: General CCS C Discussion   Posted: Mon Jun 06, 2011 9:35 am   Subject: AD7705 reading problems
Hello everyone

I have connected REF+ to 2.5V
REF- to gnd

AN2- to gnd

Then on AN2+ I put voltage from 0 to 2.5 that through a POT.

So when the voltage on AN2+ is 2.5v I should get a read ...
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Sat May 21, 2011 12:17 am   Subject: Stack over flow problem
Sorry for late reply, I was out of the city.

When I returned back, it works as expected. I don't know what was wrong ! Thats strange.
However thank you all for help.
Have a nice day.
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Mon May 16, 2011 5:13 am   Subject: Stack over flow problem
thank you




//////////////////////////////////
#byte ADCON1 = 0X09F
//********************************
#define digit0 PIN_A2
#define digit1 PIN_A1
#define triac PIN_A3


#define butto ...
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Sun May 15, 2011 4:43 am   Subject: Stack over flow problem
Thank you ;
down is a simple program for 16f819 ; I simulated in MPLAB; Proteus and is real circuit ; PORTA always zero ! And portb.6 and portb.7 always zero .
what did I miss ; any problem in my ...
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Sun May 15, 2011 12:04 am   Subject: Stack over flow problem
Stack used: 3 worst case (out of 7 total available)
What is the case for 16f819 ? I still could not use portb.6 and portb.7 as output .
I configured it as NOLVP; what could be the problem ?

Tha ...
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Sat May 14, 2011 2:33 pm   Subject: Stack over flow problem
Thank you for reply
I tested in proteus, MPLAB and real circuit: Proteus gives a stack over flow message.
I moved to 16F819 with the same circuit;
it seems I that can't figure out B6 and B7 as h ...
  Topic: Stack over flow problem
assaad

Replies: 10
Views: 11647

PostForum: General CCS C Discussion   Posted: Sat May 14, 2011 9:30 am   Subject: Stack over flow problem
Hi all
Here down my code. I could don't see why I am getting stack overflow.
When I close the line set_digits() in while in main there is no problem.
Could you guide me please ?

Regards

# ...
  Topic: bootloader 18f8722
assaad

Replies: 2
Views: 4193

PostForum: General CCS C Discussion   Posted: Tue Jan 25, 2011 10:40 am   Subject: bootloader 18f8722
any suggestion ?
  Topic: bootloader 18f8722
assaad

Replies: 2
Views: 4193

PostForum: General CCS C Discussion   Posted: Fri Jan 21, 2011 1:06 pm   Subject: bootloader 18f8722
Hi all
I have written a code for 18f8722, 70% of the total memory; I looking now for a free bootloader. I tried the bootloader down:

///////////////////////////////////////////////////////////// ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group