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 148 matches
CCS Forum Index
Author Message
  Topic: 12F1840 Baudrate not setup with BRG16=1 ?
nurquhar

Replies: 3
Views: 14179

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 4:47 am   Subject: 12F1840 Baudrate not setup with BRG16=1 ?
Yes thanks for the quick test to confirm the CCS bug is now fixed. Looks like I should throw some money in the direction of CCS.
  Topic: 12F1840 Baudrate not setup with BRG16=1 ?
nurquhar

Replies: 3
Views: 14179

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 4:31 am   Subject: 12F1840 Baudrate not setup with BRG16=1 ?
CCS version 5.025

I have been working on an application which uses the USART on the 12F1840 at 115,200 baud.

I used these values to setup the USART:

#use delay(INTERNAL=32MHz)

// ...
  Topic: Will interrupt be serviced if it fires whilst DI and then EI
nurquhar

Replies: 4
Views: 8958

PostForum: General CCS C Discussion   Posted: Sun Jul 14, 2013 2:08 pm   Subject: Will interrupt be serviced if it fires whilst DI and then EI
Thanks for the confirmation guys, thats save me having to scratch me head to think how to test this. Just goes to show how carefully you have to read datasheets before you can infer a meaning.
  Topic: Will interrupt be serviced if it fires whilst DI and then EI
nurquhar

Replies: 4
Views: 8958

PostForum: General CCS C Discussion   Posted: Sun Jul 14, 2013 8:08 am   Subject: Will interrupt be serviced if it fires whilst DI and then EI
I am using a timer interrupt to keep a microsecond time value updated. The code below seems to work fine.

However as I turn the timers IE off whilst I compute the time value to be sure I don't get ...
  Topic: Arrays of Booleans
nurquhar

Replies: 13
Views: 17209

PostForum: General CCS C Discussion   Posted: Mon Mar 25, 2013 3:07 am   Subject: Arrays of Booleans
Well its no different if I replace with this :

void SetPathOutputs(path *p)
{
int i ;

// Set the static bits
for(i = 0 ; i < OUTPUTS ; i++) {
if(i >= ...
  Topic: Arrays of Booleans
nurquhar

Replies: 13
Views: 17209

PostForum: General CCS C Discussion   Posted: Sun Mar 24, 2013 8:12 am   Subject: bit arrays in structs
Just add some further evidence. I was about the post the following code which seems to fail for the same reason. i.e. If a bit array is used in a struct there can be problems. In my case simply pu ...
  Topic: enum compile error "Expecting an Identifier"
nurquhar

Replies: 6
Views: 12828

PostForum: General CCS C Discussion   Posted: Sun Mar 10, 2013 2:08 pm   Subject: enum compile error "Expecting an Identifier"
It might be worth trying with different value names as well incase of conflicts. It could be OFF is a popular value defined somewhere else. eg.

enum colors {__OFF, __RED, __GREEN} color; ...
  Topic: #ORG controls CONST data but not ROM data ?
nurquhar

Replies: 6
Views: 13582

PostForum: General CCS C Discussion   Posted: Sun Mar 10, 2013 10:34 am   Subject: #ORG controls CONST data but not ROM data ?
Well it could be I mis-understood something. I just went back to trying 'const' again and I don't see any code before the program data for the structure access.

That is :
#define OUTPUTS 36

/ ...
  Topic: #ORG controls CONST data but not ROM data ?
nurquhar

Replies: 6
Views: 13582

PostForum: General CCS C Discussion   Posted: Sun Mar 10, 2013 9:42 am   Subject: #ORG controls CONST data but not ROM data ?
I don't see how putting the 'rom' data declartion inside a function realy helps any. As even if the function is #org'ed to a fixed memory address the compiler puts the function at the #org address ok ...
  Topic: #ORG controls CONST data but not ROM data ?
nurquhar

Replies: 6
Views: 13582

PostForum: General CCS C Discussion   Posted: Sun Mar 10, 2013 6:57 am   Subject: #ORG controls CONST data but not ROM data ?
Yes, I can se how these suggestions might work but all gets a bit messey.

Using a function wrapper around the data with a label means the scope of the label is only within the function. Thus label ...
  Topic: #ORG controls CONST data but not ROM data ?
nurquhar

Replies: 6
Views: 13582

PostForum: General CCS C Discussion   Posted: Sun Mar 10, 2013 5:19 am   Subject: #ORG controls CONST data but not ROM data ?
I was looking to place read only data structs into some program memory at a a fixed address.

If I use const in combination with #org I can place my data where I like. However since const puts some ...
  Topic: const bit array problem
nurquhar

Replies: 13
Views: 16371

PostForum: General CCS C Discussion   Posted: Sat Mar 09, 2013 10:53 am   Subject: const bit array problem
Dear Ttelmah

See list output below :
FYI, I also found to test for Non Zero in RAM bit arrays I need to use "if((int8)xyz.................... void test()
.................... { ...
  Topic: const bit array problem
nurquhar

Replies: 13
Views: 16371

PostForum: General CCS C Discussion   Posted: Sat Mar 09, 2013 9:05 am   Subject: const bit array problem
Dear Ttelmah

Thanks for testing this, atleast I know know its a compiler bug. However even paying for another maintenance update is not going to fully solve it for me. Makes sense to hold onto my ...
  Topic: Elapsed Time
nurquhar

Replies: 11
Views: 14527

PostForum: General CCS C Discussion   Posted: Sat Mar 09, 2013 7:20 am   Subject: Elapsed Time
When you get it working for ns post the code. It will be interesting see how to accuratly handle the interrupt latency.
  Topic: const bit array problem
nurquhar

Replies: 13
Views: 16371

PostForum: General CCS C Discussion   Posted: Sat Mar 09, 2013 7:16 am   Subject: const bit array problem
Dear Ttelmah

Thanks for the explicit code but, Nope ! Still don't work that way either, unless I am being dense. When you say it works, have you tested it ? If so which version gave the correct r ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group