Author |
Message |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Fri May 04, 2007 8:45 am Subject: Weird problem with values |
Also, please could you show me how you modified the printf statement to print into MPLAB so that I don't have to stick the code onto a chip everytime I change something?
Andy |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Fri May 04, 2007 2:59 am Subject: Weird problem with values |
The ones I got from the second set - a nice range of values in the +/- tens of thousands, rather than hovering around a couple of hundred like the first ones do  |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Thu May 03, 2007 5:37 pm Subject: Weird problem with values |
Unfortunately I don't think it is a compiler issue as you get the same values I do when it's compiled with 4.033, I just find it really strange that it all went wrong when I changed PICs. I guess if y ... |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Thu May 03, 2007 5:38 am Subject: Weird problem with values |
Thanks for taking the time to do that! Unfortunately it would seem it's not down to the compiler as those are exactly the same values that I get. Could you possibly try it again with these values (pro ... |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Wed May 02, 2007 5:18 pm Subject: Weird problem with values |
Thanks for your help
I've modified my code so it should hopefully compile first time for you (it does for me) but was unsure as to how to get the printf statements to print to UART1, so haven't ... |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Wed May 02, 2007 1:11 pm Subject: Weird problem with values |
Apologies, compiler version is 4.013 (I think, that's what PCM, PCB and PCH are listed as, IDE is 4.010). MPLAB version is 7.52 if that's relevant, thinking about it I did have to upgrade it from 7.50 ... |
Topic: Weird problem with values |
andyd
Replies: 12
Views: 11789
|
Forum: General CCS C Discussion Posted: Wed May 02, 2007 9:39 am Subject: Weird problem with values |
I've recently changed PICs from an F88 to an F886 as I needed hardware I2C and now code I had running fine on the 88 doesn't want to work on the 886.
Basically, I have a function which decodes com ... |
Topic: How fast is "fast" (I2C)? |
andyd
Replies: 8
Views: 10621
|
Forum: General CCS C Discussion Posted: Wed May 02, 2007 8:50 am Subject: How fast is "fast" (I2C)? |
That's great! Should really have thought to look there! I now have I2C running nicely at 396kHz which has really helped things  |
Topic: How fast is "fast" (I2C)? |
andyd
Replies: 8
Views: 10621
|
Forum: General CCS C Discussion Posted: Tue May 01, 2007 8:48 am Subject: How fast is "fast" (I2C)? |
I've now changed resistors to lower values and to an F886 which should have MI2C according to the Microchip site, but my SCL line has now got even slower (62 kHz)! Are there any special bits I need to ... |
Topic: 16f886 PWM Problems |
andyd
Replies: 2
Views: 6162
|
Forum: General CCS C Discussion Posted: Tue May 01, 2007 8:46 am Subject: 16f886 PWM Problems |
That was the problem, thanks! Must have typed a couple of 1's in the wrong place in my hex calculator! |
Topic: 16f886 PWM Problems |
andyd
Replies: 2
Views: 6162
|
Forum: General CCS C Discussion Posted: Mon Apr 30, 2007 12:10 pm Subject: 16f886 PWM Problems |
I'm trying to program the PWM on a 16F886, but am having some problems with it. Basically, the PWM output pulses between 0 & approx. 300mV, rather than 0 and 5V as it should. Also, it appears to c ... |
Topic: How fast is "fast" (I2C)? |
andyd
Replies: 8
Views: 10621
|
Forum: General CCS C Discussion Posted: Mon Apr 23, 2007 9:19 am Subject: How fast is "fast" (I2C)? |
I've changed my code to "fast = 400000" and stuck a scope on the SCL pin of my PIC and all I'm getting is 91kHz. Using a 16F88 running on its internal 8MHz oscillator with 10k pullups on the ... |
Topic: How fast is "fast" (I2C)? |
andyd
Replies: 8
Views: 10621
|
Forum: General CCS C Discussion Posted: Mon Apr 23, 2007 2:16 am Subject: How fast is "fast" (I2C)? |
Just wondering what clock speed the I2C bus runs at when "fast" is specified in #use i2c? I'm assuming it's PIC clock speed dependent, but the CCS manual doesn't go into a great amount of de ... |
Topic: Execution times & speeding up programs |
andyd
Replies: 9
Views: 14594
|
Forum: General CCS C Discussion Posted: Sun Apr 15, 2007 11:46 am Subject: Execution times & speeding up programs |
Could you explain what you mean by inline?  |
Topic: Execution times & speeding up programs |
andyd
Replies: 9
Views: 14594
|
Forum: General CCS C Discussion Posted: Sun Apr 15, 2007 10:02 am Subject: Execution times & speeding up programs |
Ah, ok. Well I've now implemented a sequential read and am now only outputting 8 bits to the PWM (removes a couple of extra bitshifts and AND functions), but it's still not quite fast enough. If I giv ... |
|