Author |
Message |
Topic: universal RS232 communication protocol between controllers |
jds-pic
Replies: 20
Views: 26785
|
Forum: General CCS C Discussion Posted: Wed Jun 05, 2013 7:45 am Subject: universal RS232 communication protocol between controllers |
OP:
see my posts in this thread,
http://www.ccsinfo.com/forum/viewtopic.php?t=25980
including
http://losdos.dyndns.org/public/pic-uC/cbus-protocol-spec-draft-rev1.pdf
jds-pic |
Topic: Printf used in dsPIC33f |
jds-pic
Replies: 9
Views: 14265
|
Forum: General CCS C Discussion Posted: Thu Nov 18, 2010 11:44 am Subject: Printf used in dsPIC33f |
I found it was 1.07 seconds other than 1 second. So I try use chips internal clock then it works properly. So i think I need to change the crystal.
the clock variation that you document above (+7%) ... |
Topic: Float in eeprom using #rom getenv("EEPROM_ADDRESS" |
jds-pic
Replies: 9
Views: 13830
|
Forum: General CCS C Discussion Posted: Thu Nov 18, 2010 11:33 am Subject: Re: Float in eeprom using #rom getenv("EEPROM_ADDRESS&q |
In the code above, how to write into eeprom the 1.8 float value as 32-bit float instead of the "string"?
the EEPROM internal construction is 8 bits (1 byte); in these 8 bits you can store ... |
Topic: Printf used in dsPIC33f |
jds-pic
Replies: 9
Views: 14265
|
Forum: General CCS C Discussion Posted: Wed Nov 17, 2010 9:35 pm Subject: Printf used in dsPIC33f |
unsigned int8 i=0;
...
printf("%d",i);
Check your manual... is "%d" used for signed int or unsigned int?
It shows on Hyper terminal
Do not use Hyperterminal ... |
Topic: Printf used in dsPIC33f |
jds-pic
Replies: 9
Views: 14265
|
Forum: General CCS C Discussion Posted: Wed Nov 17, 2010 4:08 pm Subject: Re: Printf used in dsPIC33f |
70 70 0D 0A 70 71 0D 0A 70 72 0D 0A 70 73 0D 0A 70 74 0D 0A 81
I have highlighted the CR/LF above.
70 70 0D 0A 70 71 0D 0A 70 72 0D 0A 70 73 0D 0A 70 74 0D 0A 81
I have highlighted variable & ... |
Topic: Printf used in dsPIC33f |
jds-pic
Replies: 9
Views: 14265
|
Forum: General CCS C Discussion Posted: Wed Nov 17, 2010 4:03 pm Subject: Re: Printf used in dsPIC33f |
I used dsPIC33F want to print out:
0 CrLf
The program like this
for(i=0;i<5;i++)
what size is i? int8? int16?
printf("%2x",i);
what does your CCS manua ... |
Topic: Problem with serial on 12f629 |
jds-pic
Replies: 4
Views: 7755
|
Forum: General CCS C Discussion Posted: Wed Nov 17, 2010 3:54 pm Subject: Re: Problem with serial on 12f629 |
problem with serial output, the hyperterminal
please use another tool for debugging serial problems. Hyperterminal is not a good, reliable program for effective debugging. Using TeraTerm or simi ... |
Topic: How to enable the interrupt after disable it |
jds-pic
Replies: 5
Views: 8267
|
Forum: General CCS C Discussion Posted: Tue Nov 16, 2010 9:38 pm Subject: How to enable the interrupt after disable it |
read this:
http://www.ccsinfo.com/forum/viewtopic.php?t=29483
refer specifically to items 2, 3, and 6.
jds-pic |
Topic: Problems linking object files - .cof and .hex not created |
jds-pic
Replies: 2
Views: 6240
|
Forum: General CCS C Discussion Posted: Tue Nov 16, 2010 4:10 pm Subject: Re: Problems linking object files - .cof and .hex not create |
but I now believe I have the correct CCS compiler for the job
What version of compiler do you have?
jds-pic |
Topic: PIC to PIC communication through RS485 |
jds-pic
Replies: 11
Views: 54547
|
Forum: General CCS C Discussion Posted: Tue Nov 16, 2010 4:07 pm Subject: PIC to PIC communication through RS485 |
HI jds-pic,
Can you please show me some sample code for initialize the MCU protocol?? After reading through the pdf file that you given to me, I found that I understand the concept but I have a littl ... |
Topic: reset_cpu() way doesn't work properly with my code |
jds-pic
Replies: 1
Views: 4725
|
Forum: General CCS C Discussion Posted: Mon Nov 15, 2010 1:25 pm Subject: Re: reset_cpu() way doesn't work properly with my code |
but it seems that the chip will just hang after invoked reset_cpu()
it works on some computers, but will hang on others
any idea?
Read my post 1/3rd of the way down this thread:
http://www.ccsin ... |
Topic: PIC to PIC communication through RS485 |
jds-pic
Replies: 11
Views: 54547
|
Forum: General CCS C Discussion Posted: Mon Nov 15, 2010 1:17 pm Subject: Re: PIC to PIC communication through RS485 |
Hi, guys. Im having a project which is about communication between 1 master to multiple slave.
Here is an example of a single master/multiple slave protocol. Read it.
http://losdos.dyndns.org/publ ... |
Topic: How to Establish RS-485 communication |
jds-pic
Replies: 6
Views: 11959
|
Forum: General CCS C Discussion Posted: Thu Nov 11, 2010 3:09 pm Subject: How to Establish RS-485 communication |
thanks for your reply,
Well i have a distance that is more than 15 feet and needs to connect my PC to multiple devices. the device is an analog receiver and i need to transmit them to PC via 485, Rs- ... |
Topic: Calculate 8 bit DOW CRC |
jds-pic
Replies: 1
Views: 33561
|
Forum: Code Library Posted: Mon Dec 14, 2009 9:12 am Subject: Calculate 8 bit DOW CRC |
see also
http://www.ccsinfo.com/forum/viewtopic.php?t=26264
and
http://www.ccsinfo.com/forum/viewtopic.php?t=19520
jds-pic |
Topic: what is rs-485 |
jds-pic
Replies: 6
Views: 7498
|
Forum: General CCS C Discussion Posted: Mon Sep 15, 2008 10:08 am Subject: what is rs-485 |
for some ideas, see
http://www.ccsinfo.com/forum/viewtopic.php?t=25980
and refer specifically to the PDF file i linked to near the bottom of the first page...
http://losdos.dyndns.org:8080/public ... |
|