Author |
Message |
Topic: Using a pointer to a pointer |
Neutone
Replies: 6
Views: 9249
|
Forum: General CCS C Discussion Posted: Thu Jun 05, 2008 4:15 am Subject: Using a pointer to a pointer |
Has anyone successfully made an array of pointers and filled it via
I would think everything would work/compile better and be less likely to be buggy if you declared a structure array of a fixed s ... |
Topic: Faster code needed |
Neutone
Replies: 9
Views: 10291
|
Forum: General CCS C Discussion Posted: Fri Apr 25, 2008 2:29 pm Subject: Faster code needed |
Hi All,
Neutone: the Idea you had was not working because wreg was lost after the first SUBWF opcode ...
The next SUBWF opcode tests the wrong wreg and everything goes wrong ..
So is there anothe ... |
Topic: Faster code needed |
Neutone
Replies: 9
Views: 10291
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2008 4:56 pm Subject: Re: Faster code needed |
Hi All,
I have a speed problem, I need shorter time for this code.
Is there a faster way to do this code, even in asm ??
.................... if(Rx_Buffer
If you write this in assembly yo ... |
Topic: Speeding up loop |
Neutone
Replies: 11
Views: 10445
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2008 8:02 pm Subject: Re: Speeding up loop |
I have a simple loop to transmit data to a device which I need to speed up. The code I have is as follows:
for (i=0; i<n; i++)
{
output_d(Data
This s ... |
Topic: Strange loop |
Neutone
Replies: 12
Views: 9485
|
Forum: General CCS C Discussion Posted: Tue Apr 22, 2008 5:24 pm Subject: Re: loop |
When single stepping in the .LST window, the cursor does not increment.
Look for #nolist because you cant increment through unlisted code.
http://www.ccsinfo.com/forum/viewtopic.php?t=34103& ... |
Topic: Webserver - file upload speed |
Neutone
Replies: 6
Views: 6145
|
Forum: General CCS C Discussion Posted: Thu Apr 17, 2008 11:43 am Subject: Webserver - file upload speed |
Write speed is slow for program memory. An SD card would provide much faster write storage speed and somewhat slower read speed. |
Topic: TIMER1 1sec int external 32.768 Real-Time Clock |
Neutone
Replies: 10
Views: 103592
|
Forum: Code Library Posted: Wed Apr 16, 2008 5:41 pm Subject: TIMER1 1sec int external 32.768 Real-Time Clock |
Use this as the interrupt. This uses 3 instructions that do the following.
1) Enable access to the individual bytes of the timer register
2) Add 32768 to timer1 by setting high bit or timer register ... |
Topic: addressmod |
Neutone
Replies: 5
Views: 8301
|
Forum: General CCS C Discussion Posted: Sun Apr 06, 2008 9:28 pm Subject: addressmod |
If you can identify the problem in the assembled code you should get a faster response if you have found a bug. I would be surprised if the compiler supports using external RAM in the same way you use ... |
Topic: Dynamic Length Array Examples? |
Neutone
Replies: 2
Views: 5710
|
Forum: General CCS C Discussion Posted: Fri Apr 04, 2008 11:35 am Subject: Re: Dynamic Length Array Examples? |
PIC16F690-ICD / PCM 4.60 / ICD2
iptr=malloc(520); // iptr will point to a block of memory of 520 bytes.
The physical memory is fragmented. You cant just increment a pointer through i ... |
Topic: 18F4550 Sleep Current Drifting Upward as Temperate Decreases |
Neutone
Replies: 31
Views: 28836
|
Forum: General CCS C Discussion Posted: Mon Mar 24, 2008 3:13 pm Subject: 18F4550 Sleep Current Drifting Upward as Temperate Decreases |
Then i direct cold spray to the PIC ONLY for a fraction of a second and the current skyrockets to over 3 ma.
I would guess that PIC is going way below it's rated operating range but that alone seems ... |
Topic: 18F4550 Sleep Current Drifting Upward as Temperate Decreases |
Neutone
Replies: 31
Views: 28836
|
Forum: General CCS C Discussion Posted: Sat Mar 22, 2008 10:23 pm Subject: 18F4550 Sleep Current Drifting Upward as Temperate Decreases |
If your really pushing battery life you might be interested in this.
MCP1703
The power used by the internal oscillator is going to be more than an external crystal uses. You can also try using a low ... |
Topic: My first timer routine. |
Neutone
Replies: 5
Views: 6939
|
Forum: General CCS C Discussion Posted: Thu Mar 20, 2008 3:46 pm Subject: My first timer routine. |
What I try to is bacically at a given point in my code, to start measuring time, and then stop measuring a bit further on. After that I'd like to send the time measured through my serial link. (to hyp ... |
Topic: Delay in hours |
Neutone
Replies: 4
Views: 8045
|
Forum: General CCS C Discussion Posted: Thu Mar 20, 2008 3:41 pm Subject: Re: plese, tell me your opinion for my idea |
10x for the ideas
my core of my idea is that :
int count;
int second () {
Delay_ms(1000) ; // delay one second
return 1 ;
}
void main(void){
co ... |
Topic: ideas for code optimization? |
Neutone
Replies: 6
Views: 9002
|
Forum: General CCS C Discussion Posted: Tue Mar 18, 2008 11:23 am Subject: Re: ideas for code optimization? |
Hi,
I have a question according to an optimization of a code.
I use a PIC 18F2480, AD7790 as an A/D converter and a L293D as a motor driver.
The problem is that it happens very often that the pro ... |
Topic: Using two different structs for the same data |
Neutone
Replies: 3
Views: 5752
|
Forum: General CCS C Discussion Posted: Tue Mar 18, 2008 11:04 am Subject: Re: Using two different stucts for the same data |
I'm not sure how to go about this, but I have a struct problem and without assigning pointers to constants I'm not sure what the best way to do this is.
I have two potential data streams coming in. ... |
|