Author |
Message |
Topic: Complex, Large Project Coding |
tavioman
Replies: 6
Views: 7537
|
Forum: General CCS C Discussion Posted: Fri Nov 09, 2007 3:36 pm Subject: Complex, Large Project Coding |
Hi.
I have folowed this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=29216&highlight=nmake
For debug I use Proteus, I don't use hardware debug... For this purpose I'm using a lot of ... |
Topic: Complex, Large Project Coding |
tavioman
Replies: 6
Views: 7537
|
Forum: General CCS C Discussion Posted: Wed Nov 07, 2007 1:32 am Subject: Complex, Large Project Coding |
I alwayas use a third party IDE. In fact I use Micr***t Visual Studio as IDE.
You can organize code the best with this IDE. The only draw back is the compiler output format, that is not compatible wi ... |
Topic: debug/release versions |
tavioman
Replies: 4
Views: 5662
|
Forum: General CCS C Discussion Posted: Sat Nov 03, 2007 12:44 am Subject: debug/release versions |
I wish to be more generic like:
trace("This is debug value no. %u with address %u", value, address);
trace("Just a line");
trace("Three numbers: %u, ... |
Topic: debug/release versions |
tavioman
Replies: 4
Views: 5662
|
Forum: General CCS C Discussion Posted: Fri Nov 02, 2007 4:08 pm Subject: debug/release versions |
A macro.
trace("Something %d, else %Ld", x, y);
that in release just won't do anything... |
Topic: debug/release versions |
tavioman
Replies: 4
Views: 5662
|
Forum: General CCS C Discussion Posted: Fri Nov 02, 2007 1:33 pm Subject: debug/release versions |
Hi all.
Can anybody point me to way of doing printf in debug version with a macro?
The same macro in "release" version would do nothing?
It's possible do do this with CCS C?
Thank you. |
Topic: Map pins into a struct. |
tavioman
Replies: 2
Views: 4398
|
Forum: General CCS C Discussion Posted: Mon Sep 24, 2007 4:42 am Subject: Map pins into a struct. |
Thanks!
I will try your solution. |
Topic: Map pins into a struct. |
tavioman
Replies: 2
Views: 4398
|
Forum: General CCS C Discussion Posted: Mon Sep 24, 2007 2:22 am Subject: Map pins into a struct. |
Hi everyone.
I have a small question.
I need to make an array of structs.
MY_STRUCT_TYPE array_of_structs[2];
typedef struct
{
UNSIGNED_8 member_1;
UNSIGNED_16 member_2;
... |
Topic: RS232 with flow control. |
tavioman
Replies: 3
Views: 4786
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2007 12:52 pm Subject: RS232 with flow control. |
Hi all. I'll probably be a little off topic. My apologies for that.
I want to know in what state the pins RTS and CTS are active.
Let's assume my MCU is DTE.
DCE waits for RTS till data can be send ... |
Topic: RS232 Random garbage |
tavioman
Replies: 7
Views: 8009
|
Forum: General CCS C Discussion Posted: Wed Jul 25, 2007 12:40 am Subject: Problem solved -unexpected solution- |
Hi again.
I have solved the problem by replacing PIC18F4525 with a PIC18F452.
I don't know what was happening on 4535 but now all works fine. |
Topic: RS232 Random garbage |
tavioman
Replies: 7
Views: 8009
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 1:45 am Subject: RS232 Random garbage |
Clock source XTAL 20MHz.
Fuse set to HS.
#use rs232( baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8, stream=GSM )
#use rs232( baud=9800,parity=N,xmit=PIN_A0,rcv=PIN_A1,bits=8, stream ... |
Topic: RS232 Random garbage |
tavioman
Replies: 7
Views: 8009
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 1:07 am Subject: RS232 Random garbage |
Another interesting thing is that I'm trying to mask the received character with 0b01111111:
Code:
ReceiveBuffer
You are using a software UART to transmit chars to your PC.
If an interrupt occ ... |
Topic: GSM response issue. |
tavioman
Replies: 2
Views: 3898
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 11:55 pm Subject: GSM response issue. |
Hi.
I'm controlling the GSM with RTS. I keep RTS in disable state till I'm ready to receive the string.
I have found a nice solution tough.
I'm using RDA(I use interrupts as much as I can:)) to rec ... |
Topic: RS232 Random garbage |
tavioman
Replies: 7
Views: 8009
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 11:51 pm Subject: RS232 Random garbage |
Thanks.
I'm starting the timer after every received character since what I'm trying to do is t receive the full response from a GSM module.
I'll try out your solution.
Thanks again. |
Topic: RS232 Random garbage |
tavioman
Replies: 7
Views: 8009
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 8:48 am Subject: RS232 Random garbage |
Hi again.
I have this weird problem.
I'm communicating with a GSM module.
I receive a weird character. Almost all the time this bad character is 4th in a string.
Example:
String that should be re ... |
Topic: GSM response issue. |
tavioman
Replies: 2
Views: 3898
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 5:12 am Subject: GSM response issue. |
Hi all.
I' trying to read the response from one GSM module.
On my PC I'm getting the following answers:
Command: AT+CMEE=2 ( 41 54 2b 43 4d 45 45 3d 32 0d)
Answer: OK (0d 0a 4f 4b 0d 0a)
Comman ... |
|