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 41 matches
CCS Forum Index
Author Message
  Topic: Problem with int32
Audi80

Replies: 4
Views: 5955

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 12:37 pm   Subject: Problem with int32
I already had the same problem. Change your variable to unsigned long!

Hope this help Laughing
  Topic: Three interrupt only blocks INT_RDA
Audi80

Replies: 6
Views: 8549

PostForum: General CCS C Discussion   Posted: Wed Sep 22, 2010 11:24 am   Subject: Three interrupt only blocks INT_RDA
It seems I found the problem. My receiveMsg(buffer) at some point was writing stuff to the eeprom. And when I removed it the problem seemed to stop. It could be that...

If the problems persists I w ...
  Topic: Three interrupt only blocks INT_RDA
Audi80

Replies: 6
Views: 8549

PostForum: General CCS C Discussion   Posted: Wed Sep 22, 2010 5:16 am   Subject: Three interrupt only blocks INT_RDA
Hi there i´ve developed a project using three interrupts:

1 - INT_RDA
2 - INT_EXT1 HIGH
3 - INT_EXT2 HIGH

My problem now is the following:

This project is an IO controller that is polled b ...
  Topic: Watchdog interrupt
Audi80

Replies: 4
Views: 6886

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2010 10:24 am   Subject: Watchdog interrupt
Hi there Ttelmah first let me thank you for your reply.

I have developed a project that controls IO's a temperature sensor and also a RTCC and it communicates by RS485 and I have a server pooling e ...
  Topic: Watchdog interrupt
Audi80

Replies: 4
Views: 6886

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2010 5:52 am   Subject: Watchdog interrupt
Hi there FvM, i don't know what #zero_ram is but if i restart my application all variables like an int go to zero? For example:



int a = 0;

int main(){

printf( ...
  Topic: Watchdog interrupt
Audi80

Replies: 4
Views: 6886

PostForum: General CCS C Discussion   Posted: Mon Aug 23, 2010 3:08 pm   Subject: Watchdog interrupt
Hi there, im using a PIC18F4620 with a watchdog at 4s, my problem is that i need to know when the wdt reset occurs to save some variables in the eeprom. Is there any interrupt or any other way that al ...
  Topic: adding values to a text string
Audi80

Replies: 6
Views: 8258

PostForum: General CCS C Discussion   Posted: Thu Aug 12, 2010 6:46 am   Subject: adding values to a text string
Hi there, the simplest thing to do is use strcat

Ex:


char completeString[100];

void addValue(char * newAdcValue){
strcat(completeString,newAdcValue);
...
  Topic: String format with leading zeros (0)...
Audi80

Replies: 4
Views: 5582

PostForum: General CCS C Discussion   Posted: Thu Aug 05, 2010 11:10 am   Subject: String format with leading zeros (0)...
Hi there, I cant use strcat because it concatenates two strings and the result would be:

000000000000000000000Hi There...

I made it the following way which is not the most elegant way to do it: ...
  Topic: String format with leading zeros (0)...
Audi80

Replies: 4
Views: 5582

PostForum: General CCS C Discussion   Posted: Thu Aug 05, 2010 9:25 am   Subject: String format with leading zeros (0)...
Hi there, does anyone know how I can format a string with leading zeros:

Ex:

char a[200] = "Hi there";
char b[200] = "";

sprintf(b,"%021s",b ...
  Topic: RS232 interruptions
Audi80

Replies: 2
Views: 5490

PostForum: General CCS C Discussion   Posted: Wed Jun 16, 2010 9:48 am   Subject: RS232 interruptions
You can make two serial interrupt routines like:


#use rs232(baud=9600, xmit=TX,rcv=RX,BRGH1OK,ENABLE=WR,UART1,STREAM=COMM,BRGH1OK)
#use rs232(baud=9600, xmit=TX2,rcv=RX2,BRGH1OK,ENAB ...
  Topic: [rs-232] string to long int conversion
Audi80

Replies: 3
Views: 12125

PostForum: General CCS C Discussion   Posted: Fri Oct 09, 2009 8:16 am   Subject: [rs-232] string to long int conversion
You could do something like this:


int32 convert(char * ptr){
int32 aux = 0;
char value[5] = "";
memset(value,0,sizeof(value));
value ...
  Topic: Reading block 0 from sd card
Audi80

Replies: 1
Views: 4491

PostForum: General CCS C Discussion   Posted: Fri Oct 09, 2009 4:26 am   Subject: Reading block 0 from sd card
Hi there, i´ve a project that´s already working and what it does is playing MP3 files using a VS1011 and a SD card. The problem is that i´ve made a few project and delivered them using 1Gb card fro ...
  Topic: Nokia 6100 display with 18F8722
Audi80

Replies: 2
Views: 5598

PostForum: General CCS C Discussion   Posted: Mon May 11, 2009 9:03 am   Subject: Nokia 6100 display with 18F8722
Hi there ckielstra, thank you for your response.

What is your compiler version number?

My compiler version is 4.013

What voltage is your PIC running at?

And my pic is running at 3.7V

...
  Topic: Nokia 6100 display with 18F8722
Audi80

Replies: 2
Views: 5598

PostForum: General CCS C Discussion   Posted: Thu May 07, 2009 6:45 am   Subject: Nokia 6100 display with 18F8722
Hi there, i´ve bought two nokia displays to work in the new project i´m developing. And i´ve searched in the net for a good ccs example and found this one:


#include <18F8722.h>

#FUSE ...
  Topic: Error reading from different sd card
Audi80

Replies: 1
Views: 2917

PostForum: General CCS C Discussion   Posted: Tue Jan 27, 2009 11:19 am   Subject: Error reading from different sd card
Hi there, i´ve got a working MP3 player project with a 18F4620 that took a long to get it working, but now that its done i´ve several clones Very Happy and brought new sd cards, my problem is that i ...
 
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