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 34 matches
CCS Forum Index
Author Message
  Topic: Reading the Device ID (DEVID)
sjb

Replies: 7
Views: 21579

PostForum: General CCS C Discussion   Posted: Sun Aug 15, 2010 11:49 am   Subject: Reading the Device ID (DEVID)
In my case I wanted to be able to identify the processor at run time. My code can run on the PIC24HJ265GP610 and the PIC24HJ265GP610A. One build with work for both, but at run time I might need to ma ...
  Topic: int_RDA buffer problem
sjb

Replies: 5
Views: 7932

PostForum: General CCS C Discussion   Posted: Sun Aug 15, 2010 4:38 am   Subject: int_RDA buffer problem
That's quite a bit of data you're trying to place on the stack so perhaps it a threshold when the compiler tries to do something else with it, which then make the process non-rentrant.

Other possib ...
  Topic: Reading the Device ID (DEVID)
sjb

Replies: 7
Views: 21579

PostForum: General CCS C Discussion   Posted: Tue Aug 10, 2010 6:23 am   Subject: Reading the Device ID (DEVID)
Thanks collink.

I took the plunge with the asm and on PIC 24 the following seems to be working...


/* Read DEVID and REV from a PIC24 */
#byte TBLPAG = getenv("SFR:TBLPAG" ...
  Topic: Reading the Device ID (DEVID)
sjb

Replies: 7
Views: 21579

PostForum: General CCS C Discussion   Posted: Tue Aug 10, 2010 4:26 am   Subject: Reading the Device ID (DEVID)
Is there an easy way to read back the device ID?

I see there is a library function to read back the config fuses - read_configuration_memory( ) - but I can't find a similar function to read back th ...
  Topic: function with return value
sjb

Replies: 5
Views: 7381

PostForum: General CCS C Discussion   Posted: Thu Jul 01, 2010 9:27 am   Subject: function with return value
Well, when does you interrupt routine start firing. If if fires before or while the func_B() then that could easily cause the problem.

A complete example would help.
  Topic: function with return value
sjb

Replies: 5
Views: 7381

PostForum: General CCS C Discussion   Posted: Thu Jul 01, 2010 6:19 am   Subject: function with return value
How do you know the array value are wrong?

It does look odd from what you've said, but a simple typo could be the cause (eg. a ';' after the for(;;) statement). So it's often best to post a comple ...
  Topic: want ask for suitable motion sensor
sjb

Replies: 8
Views: 8351

PostForum: General CCS C Discussion   Posted: Thu Jul 01, 2010 6:11 am   Subject: want ask for suitable motion sensor
It gets a bit more complicated for multiple doors as people can come in one door and out another, but really not that difficult to code.and I expect more difficulties if people pass in the doorway, or ...
  Topic: Translating Microchip C18 C to CCS C
sjb

Replies: 3
Views: 5372

PostForum: General CCS C Discussion   Posted: Mon Jun 28, 2010 6:57 pm   Subject: Translating Microchip C18 C to CCS C
They are line continuation markers. They should be exactly the last character on the line.

In this case it allows the #define to be written over several lines rather than having to put the whole st ...
  Topic: Pointer Problem
sjb

Replies: 4
Views: 6018

PostForum: General CCS C Discussion   Posted: Wed Jun 09, 2010 1:58 am   Subject: Re: Pointer Problem
...Now *string_start = 0x36, and *string_start++ = 0x37. cc is still just the address of rx_buffer
NO! Just to avoid this little bit of dis-information confusing other people with pointer problems I ...
  Topic: Pointer to struct always null?
sjb

Replies: 12
Views: 15597

PostForum: General CCS C Discussion   Posted: Mon Jun 07, 2010 12:07 pm   Subject: Pointer to struct always null?
It can not be used to abstract complex tasks as it behaves very badly with ram and rom pointers.
That's my thoughts too. It seems to make inconsistent choices and I'm not happy enough with its behav ...
  Topic: Slow compares with int16's
sjb

Replies: 4
Views: 5139

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 2:48 am   Subject: Slow compares with int16's
Well, I get...
.................... if(first_variable>second_variable)
00078: MOVF 08,W
0007A: SUBWF 06,W
0007C: BNC 008E
0007E: BNZ 0086
00080: MO ...
  Topic: delay_ms() doesn't always work.
sjb

Replies: 14
Views: 15358

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 2:34 am   Subject: delay_ms() doesn't always work.
I think we should wait for louarnold. From what he said earlier it sound like he doesn't have access to his code (at the weekend?).

The really glaring errors in the first post code make it very lik ...
  Topic: delay_ms() doesn't always work.
sjb

Replies: 14
Views: 15358

PostForum: General CCS C Discussion   Posted: Fri May 21, 2010 12:56 pm   Subject: delay_ms() doesn't always work.
your line
wait_one_sec;
is not a call to the wait_one_sec() function.
  Topic: 4.107 - compiler generating wrong addresses?
sjb

Replies: 6
Views: 7384

PostForum: General CCS C Discussion   Posted: Fri May 21, 2010 8:22 am   Subject: 4.107 - compiler generating wrong addresses?
I assume this is a large program. Have you tried cutting it down to a simple example?

If you can post a small, but complete example I'd be happy to see if it does the same for me , which I assume ...
  Topic: Cellphone PIC interaction
sjb

Replies: 6
Views: 7497

PostForum: General CCS C Discussion   Posted: Fri May 21, 2010 12:39 am   Subject: Re: Cellphone PIC interaction
The code I'm using is:

printf("AT\n\r");

Are you sure about that line end sequence. That now even DOS(which would be \r\n.

According to wikipedia the HAYES command set n ...
 
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