CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 42 matches
CCS Forum Index
Author Message
  Topic: 12-Bit ADC value with RS232
arelone

Replies: 12
Views: 22646

PostForum: General CCS C Discussion   Posted: Wed Dec 04, 2019 9:48 am   Subject: 12-Bit ADC value with RS232
Hi,

Thanks for the info. I really overlooked the baud rate. I changed the program to test the baud rate and verified with the hyper terminal. Something I don't understand is when I'm testing with b ...
  Topic: 12-Bit ADC value with RS232
arelone

Replies: 12
Views: 22646

PostForum: General CCS C Discussion   Posted: Thu Nov 14, 2019 9:49 am   Subject: 12-Bit ADC value with RS232
Hi Mr.New Guy,

Thanks for the reply. According to your advice I would be appreciate if you can give examples code for me to try. Seriously... I am not a good programmer.
I'm sending the 2 bytes t ...
  Topic: 12-Bit ADC value with RS232
arelone

Replies: 12
Views: 22646

PostForum: General CCS C Discussion   Posted: Thu Nov 14, 2019 9:39 am   Subject: 12-Bit ADC value with RS232
Hi,

Thanks for the advice. However I prefer not to use printf() function as it cause additional delay in the output. I am thinking of adding at least '#' in the MSB byte. Not sure if this can be d ...
  Topic: 12-Bit ADC value with RS232
arelone

Replies: 12
Views: 22646

PostForum: General CCS C Discussion   Posted: Thu Nov 14, 2019 9:01 am   Subject: 12-Bit ADC value with RS232
Hi,

I am trying to send set of 12-bit ADC values via rs232. In previous attempt I was using printf() function however it has some delay issues. Now I'm using make8() function to split the value int ...
  Topic: Pointers and Arrays
arelone

Replies: 12
Views: 23358

PostForum: General CCS C Discussion   Posted: Thu Nov 07, 2019 9:34 am   Subject: Pointers and Arrays
Hi,
I have another questions. I created a code to read from 16 ADC channels and i noticed the using "printf" function takes approx. 1.52 seconds for 16 adc values which is slow. I'd guess t ...
  Topic: Pointers and Arrays
arelone

Replies: 12
Views: 23358

PostForum: General CCS C Discussion   Posted: Thu Oct 24, 2019 1:10 am   Subject: Pointers and Arrays
Hi,

Thanks Ttelmah for the correction. What version of CCS C compiler are you using?

Arelone
  Topic: Pointers and Arrays
arelone

Replies: 12
Views: 23358

PostForum: General CCS C Discussion   Posted: Wed Oct 23, 2019 8:26 pm   Subject: Pointers and Arrays
Hi,

The result still same. I noticed that led (D7) also not functioning.



while(TRUE);
{
for(i=0; i<3; i++)
{
(*func_array
  Topic: Pointers and Arrays
arelone

Replies: 12
Views: 23358

PostForum: General CCS C Discussion   Posted: Wed Oct 23, 2019 7:32 pm   Subject: Pointers and Arrays
Hi,

Thanks for the example code. I compile the code and has no errors. In the given code what is *_fptr? I could not find it in the CCS help.
However all the leds are not turned ON even the D7 whi ...
  Topic: Pointers and Arrays
arelone

Replies: 12
Views: 23358

PostForum: General CCS C Discussion   Posted: Wed Oct 23, 2019 9:00 am   Subject: Pointers and Arrays
Hi,

I have code that requires to call set of functions (Task1, Task2, Task3 and Task4) which turns 4 leds sequentially. Actually the tasks are more than 16 and I simplify the code for discussion. ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Wed Oct 23, 2019 8:46 am   Subject: UART -dspic30F6014a
Hi,

Thanks for the knowledge Ttelmah. Now I can run the code smoothly. Here is the corrected hardware code.

#fuses NOWDT, NOPROTECT, PUT64, BORV27
#use delay (clock=58982400, xtal=7372800& ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Sat Oct 19, 2019 10:50 am   Subject: UART -dspic30F6014a
Hi,

Thank you for the explanation. But I still confusing on this matter and correct me if my understanding are wrong.
In my case if I want to use 40MHz obtained from (HS/2)*4 what is the minimum ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Fri Oct 18, 2019 6:41 pm   Subject: UART -dspic30F6014a
Hi,

I need some help here. I'm trying to use the PLL clock multiplier settings for the attached program. I'm using 20MHz oscillator. Before this I was using #fuses HS,...#use delay (clock=20000000) ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Wed Jun 26, 2019 1:15 am   Subject: UART -dspic30F6014a
Hi,

I compiled the code with CCS C ver. 5.010 with a new dspic30F6014a chip using UART1 or UART2 and it works accordingly.

Below I attached code for getting delay of 1us using internal clock (7. ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Fri May 24, 2019 3:04 am   Subject: UART -dspic30F6014a
Hi,

I am wondering when I try to read 4.788V from multichannel ADCs. Only channel AN0 seems working, for others it displays -16.000. Why is this happening? Does the dspic require delay to read fro ...
  Topic: UART -dspic30F6014a
arelone

Replies: 24
Views: 54650

PostForum: General CCS C Discussion   Posted: Wed May 22, 2019 12:14 am   Subject: dspic30f6014a: UART1 & UART 2 communication
Hi,

I have problem to communicate with UART1 in the dcpic30F6014a chip. I test attached code with UART 2 there is no issue. The issue is my circuit board is connected to the UART1 and if change it ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group