Author |
Message |
Topic: Help with rs232 buffer |
aruna1
Replies: 4
Views: 12173
|
Forum: General CCS C Discussion Posted: Mon Aug 01, 2016 10:01 pm Subject: Help with rs232 buffer |
It depends on the nature of your code, and your data.
On TX, the supplied routines are fine, provided you ensure there is space before sending.
On RX, the supplied routines could result in the los ... |
Topic: Help with rs232 buffer |
aruna1
Replies: 4
Views: 12173
|
Forum: General CCS C Discussion Posted: Tue Jul 26, 2016 8:59 pm Subject: Help with rs232 buffer |
Thanks Ttelmah. I will go through the examples.
So are you suggesting I should implement my own buffer system instead of CCS provided one? Due to the issues it has? |
Topic: Help with rs232 buffer |
aruna1
Replies: 4
Views: 12173
|
Forum: General CCS C Discussion Posted: Mon Jul 25, 2016 9:06 pm Subject: Help with rs232 buffer |
Hi friends,
I just started doing a project with dspic 30F4013 and need to use its hardware UART.
In the wizard I can see these buffer options (RECEIVE_BUFFER,TRANSMIT_BUFFER) and it can be conf ... |
Topic: Help with string construction |
aruna1
Replies: 4
Views: 7792
|
Forum: General CCS C Discussion Posted: Thu Jul 30, 2015 10:21 am Subject: Help with string construction |
Yes.
You can do the state machine in the interrupt, since though the code is large, it only ever handles one state.
However generally you don't do this in the interrupt, but in the main code. Tha ... |
Topic: Help with string construction |
aruna1
Replies: 4
Views: 7792
|
Forum: General CCS C Discussion Posted: Tue Jul 28, 2015 2:47 am Subject: Help with string construction |
It's not going to be any more 'efficient' in terms of memory usage. Enough space is going to have to exist for the worst case somewhere, and dynamic allocation will mean more code, and more time.
Obv ... |
Topic: Help with string construction |
aruna1
Replies: 4
Views: 7792
|
Forum: General CCS C Discussion Posted: Mon Jul 27, 2015 8:58 pm Subject: Help with string construction |
Hi Guys,
I'm trying to read some data from uart.
the exact length of received data is not fixed and end of data is identified by a delimiter.
I'm just wondering is there any memory efficient way ... |
Topic: LCD : change DDRAM to the second character set |
aruna1
Replies: 7
Views: 15321
|
Forum: General CCS C Discussion Posted: Wed Oct 02, 2013 1:55 am Subject: LCD : change DDRAM to the second character set |
Display the characters....
Best Wishes
that is what i thought. I was looking for more lazy way
thanks Ttelmah |
Topic: LCD : change DDRAM to the second character set |
aruna1
Replies: 7
Views: 15321
|
Forum: General CCS C Discussion Posted: Wed Oct 02, 2013 1:32 am Subject: LCD : change DDRAM to the second character set |
Hi
sorry for reviving this old post. but my question is related to this.
@PCM programmer,
How can we know which chip is used in the lcd module we have?
I have some 16x2 lcd modules but their c ... |
Topic: extern and union |
aruna1
Replies: 5
Views: 10756
|
Forum: General CCS C Discussion Posted: Wed Feb 27, 2013 10:39 am Subject: extern and union |
Comments inline:
union rcv{
char chr_array[8];
unsigned int16 int16_array[4];
unsigned int32 int32_array[2];
};
//This is the union 'definition'. It ... |
Topic: extern and union |
aruna1
Replies: 5
Views: 10756
|
Forum: General CCS C Discussion Posted: Wed Feb 27, 2013 6:37 am Subject: extern and union |
Problem is that you haven't got a variable called rcv, just a union declaration for it. Extern applies to a variable declaration. You need a variable name in the extern declaration. I'd suggest typede ... |
Topic: extern and union |
aruna1
Replies: 5
Views: 10756
|
Forum: General CCS C Discussion Posted: Wed Feb 27, 2013 6:15 am Subject: extern and union |
hi guys;
I'm trying to define a union in main.c file and use it on another c file in Same project using extern key word,
but compiler fail to compile.
main.c
union rcv{
char chr_array& ... |
Topic: Strange issue with if statement |
aruna1
Replies: 5
Views: 7630
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2011 10:10 am Subject: Strange issue with if statement |
Ttelmah
it worked
many thanks |
Topic: Strange issue with if statement |
aruna1
Replies: 5
Views: 7630
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2011 9:31 am Subject: Strange issue with if statement |
aha
That means I should declare all variables by signed or unsigned ? Right?
Thanks. |
Topic: Strange issue with if statement |
aruna1
Replies: 5
Views: 7630
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2011 8:19 am Subject: Strange issue with if statement |
Hi
I'm working on a battery charger circuit based on 12F683. I have encountered a strange issue. My compiler version is 4.084.
Problem is in the function charge_end().
Program is written such t ... |
Topic: PWM formula question |
aruna1
Replies: 15
Views: 28973
|
Forum: General CCS C Discussion Posted: Thu Dec 22, 2011 4:35 am Subject: PWM formula question |
If you select a lower count value for timer1, the frequency goes up, and the available resolution goes down. So with 127 selected, you get 511 as the maximum value (0 to 511 = 512 values - 9bit reso ... |
|