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 6 matches
CCS Forum Index
Author Message
  Topic: Analog Input reading problem
Omer

Replies: 6
Views: 11847

PostForum: General CCS C Discussion   Posted: Thu Nov 05, 2015 12:14 am   Subject: Analog Input Read problem solved
Hi Ttelmah,

Thank you for your kind words and great support. I fixed the problem with your suggestions now I can read both analog input channels. However I had to set ADC_CLOCK_DIV_16 to ADC_CLOCK_ ...
  Topic: Analog Input reading problem
Omer

Replies: 6
Views: 11847

PostForum: General CCS C Discussion   Posted: Wed Nov 04, 2015 3:20 am   Subject: Analog Input reading problem
I just noticed I made an error in the printf format I changed the %2Lu to %5Lu but the problem still persists. Instead of the value 95 now I read 65520 continuously even though the input is at 0V. Wei ...
  Topic: Analog Input reading problem
Omer

Replies: 6
Views: 11847

PostForum: General CCS C Discussion   Posted: Wed Nov 04, 2015 2:57 am   Subject: Analog Input reading problem
I have a problem reading 2 Analog inputs on a PIC18F87K22 MCU. I need to read the Analog In 19/Pin G1 and 18/Pin G2. I have connected a 0-5VDC variable voltage source to these inputs and have a precis ...
  Topic: ex_modbus_slave.c Modbus address question
Omer

Replies: 5
Views: 13181

PostForum: General CCS C Discussion   Posted: Fri May 15, 2015 12:08 pm   Subject: Changed code to >=
Yes you are right I changed my code to >= Thank you for pointing out that.
In my applications I do have to pay attention to the "10000" and "40000" address definitions because ...
  Topic: ex_modbus_slave.c Modbus address question
Omer

Replies: 5
Views: 13181

PostForum: General CCS C Discussion   Posted: Thu May 14, 2015 9:15 pm   Subject: Thanks!
Thank you very much for your replies. It helped a lot. Here is how I fixed the Holding Register address range limit checking problem:
In my program the Holding Register array is set to 512. So I chec ...
  Topic: ex_modbus_slave.c Modbus address question
Omer

Replies: 5
Views: 13181

PostForum: General CCS C Discussion   Posted: Wed May 13, 2015 6:18 pm   Subject: ex_modbus_slave.c Modbus address question
Hi, I'm using the Modbus example code ex_modbus_slave.c. My PCW ver is 5.045. In this code the Modbus Holding Registers address range is defined as max 255 which is equal to 40001 - 400255. I need to ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group