Author |
Message |
Topic: Using UART for SDI-12 interface |
Foppie
Replies: 6
Views: 30283
|
Forum: General CCS C Discussion Posted: Thu Jun 11, 2009 12:58 am Subject: Using UART for SDI-12 interface |
Thank you very much Ttelmah!
I overlooked the fact that an UART pin normally goes high. (My hardware already changed the polarity for me and I measured only at the SDI-12 side.
I made the choice ... |
Topic: Using UART for SDI-12 interface |
Foppie
Replies: 6
Views: 30283
|
Forum: General CCS C Discussion Posted: Wed Jun 10, 2009 7:50 am Subject: Using UART for SDI-12 interface |
Hello,
I'm trying to connect a PIC18F8722 to a #use rs232(baud=1200, BRGH1OK, parity=e, bits=7, stop=1, xmit=PIN_G1, rcv=PIN_G2, ERRORS, stream=SDI12)
Now sending works as expected (chec ... |
Topic: Bootloader and common code space for application code |
Foppie
Replies: 4
Views: 5138
|
Forum: General CCS C Discussion Posted: Wed Jan 07, 2009 7:16 am Subject: Bootloader and common code space for application code |
Hello,
I am trying exactly the same as described above. Now I cannot recreate an easy version.
What I try to do is make common functions in one file and include this file with the bootloader. Th ... |
Topic: problem with at commands |
Foppie
Replies: 6
Views: 5750
|
Forum: General CCS C Discussion Posted: Wed Jan 07, 2009 4:30 am Subject: problem with at commands |
For more reactions you might want to explain your problem a bit further. I can understand what is going on, but I do not entirely know what you want to happen.
I suspect you want to get rid of the ... |
Topic: Reading values greater than resolution from analog channel |
Foppie
Replies: 1
Views: 2607
|
Forum: General CCS C Discussion Posted: Wed Jan 07, 2009 4:20 am Subject: Reading values greater than resolution from analog channel |
I would say: look at your voltage divider.
What sort of hardware do you use to get these high voltages to the low voltages the PIC accepts?
If this PIC however supports high voltages (I'm unaware, ... |
Topic: version 4.084 and icd-s |
Foppie
Replies: 1
Views: 20062
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Tue Jan 06, 2009 3:30 am Subject: version 4.084 and icd-s |
Hello,
I have updated today to version 4.084 but this gave me trouble. I cannot connect to my icd since this update. It only gives the message: try power cycling the icd.
When I go back to my pr ... |
Topic: Conversion of Hex data into char format |
Foppie
Replies: 4
Views: 6231
|
Forum: General CCS C Discussion Posted: Fri Aug 15, 2008 3:05 am Subject: Conversion of Hex data into char format |
CKielstra is right, give some more information and the replie you get are more to your liking.
What I think you search for is the following:
int32 data = 23832442;
printf("DATA: %l ... |
Topic: I got a difficult problem. I need help. |
Foppie
Replies: 2
Views: 4100
|
Forum: General CCS C Discussion Posted: Wed Aug 06, 2008 3:12 am Subject: I got a difficult problem. I need help. |
I've never seen a PIC not just start after a clean power-up unless it was broken. Yours is running after some RS232 communication so I suspect the problem is in your software.
If you post your code ... |
Topic: RAM over usage!! |
Foppie
Replies: 5
Views: 5696
|
Forum: General CCS C Discussion Posted: Tue Aug 05, 2008 5:08 am Subject: RAM over usage!! |
2 things come up in my mind:
first: How are ClientID and ID defined?
second: Buffer is bigger than AIS_String, how do you handle this possible overflow?
AS answer on your question about handlin ... |
Topic: Trouble with simple I/O on pic16f88 |
Foppie
Replies: 3
Views: 4659
|
Forum: General CCS C Discussion Posted: Fri Mar 14, 2008 3:34 am Subject: Trouble with simple I/O on pic16f88 |
first: can you post your simple test program? The guys here can give you more useful hints and tips when they see your code.
second: the compiler v4.016 is known to be buggy, in fact all compiler b ... |
Topic: Serial communication for AT commands... |
Foppie
Replies: 20
Views: 19067
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2008 8:06 am Subject: Serial communication for AT commands... |
most modems I know turn at command echo off with the ate0 command...
But I can advise you to make a more advanced respons filter. Maybe you should try a receiving buffer or something like that? Sea ... |
Topic: Need sample ModBus code for PIC16F877A |
Foppie
Replies: 3
Views: 5149
|
Forum: General CCS C Discussion Posted: Wed Feb 06, 2008 6:39 am Subject: Need sample ModBus code for PIC16F877A |
there is a modbus example included with the compiler.
Look in your examples file |
Topic: SPI for PIC18f4520 |
Foppie
Replies: 1
Views: 3437
|
Forum: General CCS C Discussion Posted: Wed Feb 06, 2008 1:33 am Subject: SPI for PIC18f4520 |
I think you should connect the Slave Select Pin to a output pin of the master. Then, when the master starts communication, the master should first take this pin low, and after that send the spi data a ... |
Topic: Exit an interrupt ? |
Foppie
Replies: 3
Views: 4085
|
Forum: General CCS C Discussion Posted: Wed Feb 06, 2008 1:24 am Subject: Exit an interrupt ? |
Why not just delete the line Intcount = 0; ?
This way the Intcount will overflow to 0. (as long as it is an int)
It is not the most dynamic approach, but it works in this case. |
Topic: Out of ROM |
Foppie
Replies: 4
Views: 5491
|
Forum: General CCS C Discussion Posted: Tue Feb 05, 2008 2:28 am Subject: Out of ROM |
you could try adding the #separate directive in from of your calc_windows() function.
like this:
#separate
void calc_windows()
{
...
}
If this works, your ROM is not to s ... |
|