Author |
Message |
Topic: help on programming |
mbge5amw
Replies: 5
Views: 5362
|
Forum: General CCS C Discussion Posted: Wed Mar 31, 2010 1:58 am Subject: help on programming |
I think the link below should explain how to use hyperterminal to talk to your PIC.
http://www.ccsinfo.com/forum/viewtopic.php?t=9253&start=1
Here we see the problem with 'search':
If you k ... |
Topic: Using two different sets of pins at runtime with one UART |
mbge5amw
Replies: 7
Views: 7667
|
Forum: General CCS C Discussion Posted: Wed Mar 31, 2010 1:42 am Subject: Using two different sets of pins at runtime with one UART |
Hi Bill,
If you want to be able to communicate with multiple ports you can use the 'stream' option within the #use rs232
You will only be able to use the built in hardware UART with the 2 pins ... |
Topic: help on programming |
mbge5amw
Replies: 5
Views: 5362
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 4:37 am Subject: help on programming |
I notice that you are manually altering PIN_C6 before and after you send data, this is incorrect. You should leave the UART to control this pin.
You may see a similar bit of code in programs that ... |
Topic: MOVFF opcode |
mbge5amw
Replies: 2
Views: 5260
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 4:15 am Subject: MOVFF opcode |
OK, ruling out the option that that was an invalid cross bank data transfer, it looks like I have now spotted the problem.
While the syntax of that command was fine, it looks like I have used all t ... |
Topic: Push-Button Interrupt |
mbge5amw
Replies: 2
Views: 5042
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2010 8:44 am Subject: Push-Button Interrupt |
SET_TRIS_B(0x00);
TRIS needs to be set high on a pin for it to be read as an input.
I am also not sure if the way you have the switch wired would work,it may eb worth checking the voltage on ... |
Topic: UART receive collecting 0x0A |
mbge5amw
Replies: 2
Views: 4586
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2010 8:19 am Subject: UART receive collecting 0x0A |
I agree, more info would be needed to accurately identify the problem, but I can offer you a theory for you to try out.
0x0A is the new line character, which certain protocols use to identify the end ... |
Topic: SERVO MOTOR |
mbge5amw
Replies: 6
Views: 10137
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2010 8:11 am Subject: SERVO MOTOR |
I don't know if you have any external pullup resistors on your device to make the pins go high.
You may need the line
port_b_pullups(TRUE);
before your while loop.
I would also suggest ... |
Topic: MOVFF opcode |
mbge5amw
Replies: 2
Views: 5260
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2010 8:05 am Subject: MOVFF opcode |
Hi,
I hope the question I have is very simple for someone, I've already spent days tracking down this peculiar bug and am at my wits end with this so please can someone help me please.
I found une ... |
Topic: variables being overwritten - 2.236 - PIC18F258 - can bus |
mbge5amw
Replies: 5
Views: 7359
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 2:56 am Subject: variables being overwritten - 2.236 - PIC18F258 - can bus |
OK, I'm not sure now if the latest change I made (while systematically reducing the code size) has rectified the fault or simply masked the symptoms but it certainly looks to be behaving itself at the ... |
Topic: MIDI data problem |
mbge5amw
Replies: 1
Views: 4068
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 2:37 am Subject: MIDI data problem |
one potential problem I could see would be if the unit starts running after the MIDI stream has begun, or if a byte is lost, in this case the unit may not read characters 0,1,2 of the MIDI stream, ins ... |
Topic: variables being overwritten - 2.236 - PIC18F258 - can bus |
mbge5amw
Replies: 5
Views: 7359
|
Forum: General CCS C Discussion Posted: Wed Feb 21, 2007 3:50 am Subject: variables being overwritten - 2.236 - PIC18F258 - can bus |
I could take a look at shrinking the code but this precise problem has only come to light in the latest stages of code development, I am concerned that shrinking the code would simply make it go away ... |
Topic: Ccsc.exe under Linux/wine. Line numbers offset. |
mbge5amw
Replies: 1
Views: 3073
|
Forum: General CCS C Discussion Posted: Wed Feb 21, 2007 3:18 am Subject: Ccsc.exe under Linux/wine. Line numbers offset. |
I can throw in a fairly uneducated guess:
As I recall Unix systems are more particular about files ending with a blank line than Windows systems.
Perhaps the line number offset is a result of wh ... |
Topic: variables being overwritten - 2.236 - PIC18F258 - can bus |
mbge5amw
Replies: 5
Views: 7359
|
Forum: General CCS C Discussion Posted: Wed Feb 21, 2007 2:37 am Subject: variables being overwritten - 2.236 - PIC18F258 - can bus |
I have made that modification exactly as described above and the fault remains affecting the same location,
ie motor_fast_step_size_lookup_old[] (at 0x002A)is getting overwritten
but motor_fast ... |
Topic: variables being overwritten - 2.236 - PIC18F258 - can bus |
mbge5amw
Replies: 5
Views: 7359
|
Forum: General CCS C Discussion Posted: Tue Feb 20, 2007 7:56 am Subject: variables being overwritten - 2.236 - PIC18F258 - can bus |
I have tried to recreate this in a smaller project but have been unable, I have therefore picked out what I think may be the relevant parts of this project to see if anyone can see what is going wrong ... |
Topic: changing format of __DATE__ |
mbge5amw
Replies: 1
Views: 4343
|
Forum: General CCS C Discussion Posted: Wed Jul 19, 2006 3:26 am Subject: changing format of __DATE__ |
Is there a better way of doing this:
I wish to have a string containing the compile date in dd/mm/yy format.
I have written a very Heath Robinson routine that takes __DATE__ in its format 17-Jul-0 ... |
|