Author |
Message |
Topic: CRC16, very efficient |
Greg_R
Replies: 18
Views: 238331
|
Forum: Code Library Posted: Tue May 27, 2008 11:04 am Subject: The last operation doesn't make sense to me |
I've been looking at the C version. crc &= 0xffff. I don't understand the purpose of this line. Bitwise ANDing a 16bit word with 0xffff returns the word...
Greg |
Topic: What is the cleanest way to hard code configuration bits? |
Greg_R
Replies: 3
Views: 5316
|
Forum: General CCS C Discussion Posted: Tue Jan 08, 2008 9:55 am Subject: I've had problems with CCS and the "Valid" fuse li |
Ttelmah,
I've had problems with the Fuse lists being incomplete before. I don't tend to trust them anymore. Right now I have an external clock oscillator connected to a dsPIC33FJ64MC506. It's runs sl ... |
Topic: What is the cleanest way to hard code configuration bits? |
Greg_R
Replies: 3
Views: 5316
|
Forum: General CCS C Discussion Posted: Mon Jan 07, 2008 10:18 pm Subject: What is the cleanest way to hard code configuration bits? |
I just tried my first project with PCD and am not impressed. It sucks to be a beta tester and not at least get a shirt...
Ranting aside I need to be able to setup the configuration bits and not hav ... |
Topic: How can I get the editor to display typedefs in blue. |
Greg_R
Replies: 0
Views: 2763
|
Forum: General CCS C Discussion Posted: Wed Sep 26, 2007 11:23 am Subject: How can I get the editor to display typedefs in blue. |
Our coding standard calls for us to use uint8 and sint8 etc... I would like to have the editor display the "sint8" in blue just like it does "signed int8". Is there a list of keywo ... |
Topic: EEPROM losing data |
Greg_R
Replies: 6
Views: 7567
|
Forum: General CCS C Discussion Posted: Wed Dec 20, 2006 8:01 pm Subject: Hitting the PostReply seems to high light stupid mistakes... |
The #rom should be:
#rom int8 0xF00000 = { 1, 2, 3, 4 }
not:
#rom int8 0xF0000 = { 1, 2, 3, 4 }
Couldn't see it for two hours but post it...
It works. Back to the hole. |
Topic: EEPROM losing data |
Greg_R
Replies: 6
Views: 7567
|
Forum: General CCS C Discussion Posted: Wed Dec 20, 2006 7:38 pm Subject: The saga continues |
I attempted to use the #rom as suggested and it fails to program on the three systems I tried it on. The following compiles fine but fails the verification step of programming with an ICD-U40.
#i ... |
Topic: EEPROM losing data |
Greg_R
Replies: 6
Views: 7567
|
Forum: General CCS C Discussion Posted: Tue Dec 19, 2006 6:42 pm Subject: More details |
PIC18F8722 with 40MHz TTL Oscillator.
Linear Power Supply that has a clean, monotonic ramp. ~5.5ms to 5V.
MCLR is tied to VCC through a 47k resistor per CCS.
Compiler: 3.249
I was told the PIC was ... |
Topic: EEPROM losing data |
Greg_R
Replies: 6
Views: 7567
|
Forum: General CCS C Discussion Posted: Tue Dec 19, 2006 4:54 pm Subject: EEPROM losing data |
I have one of three systems that loses the data stored in it's eeprom when the power is cycled. Ttelmah talked about an over voltage condition on MCLR can cause this. I'm looking for more information. ... |
Topic: Variable Frequency Pulse Needed |
Greg_R
Replies: 4
Views: 6007
|
Forum: General CCS C Discussion Posted: Tue Dec 19, 2006 4:35 pm Subject: dsPIC solved the problem |
Turns out the compare modules on the dsPIC33s will do exactly what I need. Good thing the system also has one of them...
Greg |
Topic: Variable Frequency Pulse Needed |
Greg_R
Replies: 4
Views: 6007
|
Forum: General CCS C Discussion Posted: Tue Nov 28, 2006 10:06 pm Subject: Just need a pulse without using an interrupt... |
SherpaDoug,
Thanks for the suggestion but unless I missed something it doesn't answer the question. I'm simply looking for ways to avoid using an interrupt. Everything else the circuit needs to do ... |
Topic: Variable Frequency Pulse Needed |
Greg_R
Replies: 4
Views: 6007
|
Forum: General CCS C Discussion Posted: Tue Nov 28, 2006 7:05 pm Subject: Additional Details |
10Mhz Crystal with 4xPLL
Design is not in layout yet so any pin can be made available.
Greg |
Topic: Variable Frequency Pulse Needed |
Greg_R
Replies: 4
Views: 6007
|
Forum: General CCS C Discussion Posted: Tue Nov 28, 2006 7:01 pm Subject: Variable Frequency Pulse Needed |
PIC18F65J15
50Hz to 1kHz with at least 7 bits
My circuit has a stepper motor controller/driver that requires a pulse for each step. The speed has to be ramped but is otherwise constant for long p ... |
Topic: Multiple compiler versions installed at the same time |
Greg_R
Replies: 4
Views: 7550
|
Forum: General CCS C Discussion Posted: Tue Sep 26, 2006 11:22 am Subject: Multiple compiler versions installed at the same time |
Excellent, I will give that a try! Are there any gotcha's with 4.x? |
Topic: Having two different versions on same computer |
Greg_R
Replies: 3
Views: 6077
|
Forum: General CCS C Discussion Posted: Mon Sep 25, 2006 4:11 pm Subject: Having two different versions on same computer |
Excellent! I will give that a try. Does it work with 4.x??? |
Topic: Multiple compiler versions installed at the same time |
Greg_R
Replies: 4
Views: 7550
|
Forum: General CCS C Discussion Posted: Mon Sep 25, 2006 2:21 pm Subject: Multiple compiler versions installed at the same time |
I use the IDE with PCWH. I only work with 18Fs.
I did a search that came up empty before I posted the question...
Greg |
|