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 16 matches
CCS Forum Index
Author Message
  Topic: SD Card Data Logging
Pyrofer

Replies: 3
Views: 5481

PostForum: General CCS C Discussion   Posted: Fri Sep 22, 2006 4:22 am   Subject: SD Card Data Logging
DOSonAChip can be bought pre-mounted with SD socket on a module from
www.sparkfun.com
Im not affiliated with them in any way, but they do some cool stuff.
  Topic: Benchmarking
Pyrofer

Replies: 3
Views: 7223

PostForum: General CCS C Discussion   Posted: Mon Sep 18, 2006 4:46 am   Subject: Benchmarking
I like the output pin/pulsewidth idea best. Thats a great trick I didnt think of at all! Thanks.

Ill run the routine multiple times to get a larger sample however for accuracy, but thats such a sim ...
  Topic: Benchmarking
Pyrofer

Replies: 3
Views: 7223

PostForum: General CCS C Discussion   Posted: Mon Sep 18, 2006 3:01 am   Subject: Benchmarking
What is the easiest way to benchmark a routine in CCS?

Ive been doing lots of optimisations and would like to know how much ive increased the speed, its also usefull to know the absolute time for t ...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Sun Sep 17, 2006 12:10 pm   Subject: unlooped draw
If you take a look at my site
www.pyrofersprojects.com/3dcube.php

you will see why i need to optimise speed so much. Ive pushed the limits here of what I can do with the pic. The slowest part is t ...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Sat Sep 16, 2006 4:37 pm   Subject: unlooped draw
Ok, here is the routine that sends the data to the lcd


SSPEN=0;
output_low(LCDCLOCK);
output_high(LCDDATA);//send data
output_high(LCDCLOCK);
...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Fri Sep 15, 2006 2:43 am   Subject: unlooped draw
Thanks for that!

I was always taught when programming in C to avoid globals like the plague. I dont know why, my tutor came up with some excuses but I never really beleived them. I guess I just tri ...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Thu Sep 14, 2006 11:59 am   Subject: unlooped draw
mysend has now been optimised, its basically a 9bit spi routine, there is only so much that can be done.

Would having the data byte as a global so it doesnt need to get passed to mysend be any quic ...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 5:31 pm   Subject: unlooped draw
ive done the suggested improvments, changed the format of the for loop and put the mysend inline. Its faster, but not dramatically so.

I will still try the inline asm I think. I will have to benchm ...
  Topic: 9Bit SPI and inline asm
Pyrofer

Replies: 14
Views: 18797

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 5:28 pm   Subject: 9Bit SPI and inline asm
Thank you. Dance done, all working. Hardware SPI now takes care of 8bits out of the 9.
  Topic: 9Bit SPI and inline asm
Pyrofer

Replies: 14
Views: 18797

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 9:51 am   Subject: 9Bit SPI and inline asm
THANK YOU!!

Oh god that will save me so much trouble if it works. Ill compile it tonight and hopefully be jumping for joy as previously suggested.

The SPI mode is low to high, so the hardware SP ...
  Topic: 9Bit SPI and inline asm
Pyrofer

Replies: 14
Views: 18797

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 9:09 am   Subject: 9Bit SPI and inline asm
I cant get the SPI port to work as I need 9 bits.

If you can tell me how to make the hardware SPI port output 9bit I will leap up and down screaming eureka!
I have the port spare, and am in fact u ...
  Topic: 9Bit SPI and inline asm
Pyrofer

Replies: 14
Views: 18797

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 8:00 am   Subject: 9Bit SPI and inline asm
Nokia 6100 LCD.

No, i cant change the input mode to anything else.
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 8:00 am   Subject: unlooped draw
Thanks for your help.
Ill put the existing mysend routine inline, but I still need to optimise that into asm as im sure it could be done better than how ive got it in C.
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 7:49 am   Subject: unlooped draw
Are you sure?

The guy who suggested this was pretty clear that the for loop would slow things down.

I doubt that the compiler puts 128 calls to mysend in a line and jumps into that list, as its ...
  Topic: unlooped draw
Pyrofer

Replies: 19
Views: 20118

PostForum: General CCS C Discussion   Posted: Wed Sep 13, 2006 7:28 am   Subject: unlooped draw
I need to improve the speed of a loop, and its been suggested that I take it from a C loop, to an unlooped goto in asm.


for (x=0; x<width; x++) mysend(data);


This can be d ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group