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 21 matches
CCS Forum Index
Author Message
  Topic: PIC24FJ256GB106 receives TCP data wrong
salihonur

Replies: 0
Views: 10955

PostForum: General CCS C Discussion   Posted: Tue Dec 07, 2021 5:23 pm   Subject: PIC24FJ256GB106 receives TCP data wrong
Hi guys,

I'm having a problem receiving TCP data on PIC24FJ256. However, Modbus TCP works fine. TCP data comes with strange data in 16 bits.

Transmitting data size is 19 bytes, allocated buffer ...
  Topic: STACK_USE_MPFS + MPFS_USE_EEPROM
salihonur

Replies: 4
Views: 17081

PostForum: General CCS C Discussion   Posted: Thu Apr 22, 2021 1:50 pm   Subject: Re: STACK_USE_MPFS + MPFS_USE_EEPROM
Hi guys,

I want to use a dedicated external eeprom for the web pages. Because above 7KB web storage, I'm getting TRAP_CONFLICT. I need to store min 14KB.

Ther are 3 pcs 24LC512 chips on I2C bus ...
  Topic: STACK_USE_MPFS + MPFS_USE_EEPROM
salihonur

Replies: 4
Views: 17081

PostForum: General CCS C Discussion   Posted: Sat Apr 17, 2021 9:45 am   Subject: STACK_USE_MPFS + MPFS_USE_EEPROM
Hi guys,

I want to use a dedicated external eeprom for the web pages. Because above 7KB web storage, I'm getting TRAP_CONFLICT. I need to store min 14KB.

Ther are 3 pcs 24LC512 chips on I2C bus ...
  Topic: PIC24FJ256GB106 =>Info#300 More info: ** Division by z
salihonur

Replies: 5
Views: 20328

PostForum: General CCS C Discussion   Posted: Sun Dec 06, 2020 9:22 am   Subject: PIC24FJ256GB106 =>Info#300 More info: ** Division by z
What happens if you change it to this ?
const unsigned int8 DEFAULT_DHCP_ENABLED = 1;
or this ?
unsigned int8 DEFAULT_DHCP_ENABLED = 1;

The first error is disappeared. Thanks.

I created an ...
  Topic: PIC24FJ256GB106 =>Info#300 More info: ** Division by z
salihonur

Replies: 5
Views: 20328

PostForum: General CCS C Discussion   Posted: Sat Dec 05, 2020 5:11 pm   Subject: PIC24FJ256GB106 =>Info#300 More info: ** Division by z
I have a strange problem with const type definition while compiling for PIC24FJ256GB106. Same software can be compiled without any error and works fine with PIC18F46K80.

The compiler version is 5.0 ...
  Topic: set_analog_pins() in a loop
salihonur

Replies: 3
Views: 15456

PostForum: General CCS C Discussion   Posted: Wed Dec 02, 2020 11:20 am   Subject: set_analog_pins() in a loop
Thanks very much for your warning. Analog input doesn't go to the MCU directly. I designed the power board as modular. So each IO type has own module. And also analog input module has a opamp circuit ...
  Topic: set_analog_pins() in a loop
salihonur

Replies: 3
Views: 15456

PostForum: General CCS C Discussion   Posted: Tue Dec 01, 2020 6:23 pm   Subject: set_analog_pins() in a loop
Hi

How can I set analog pins in a for loop with if statements using set_analog_pins() function? Each IOs which are defined in a array (for example look at below) will be set according to IO type.
...
  Topic: Modbus Master/Slave Switch by parameter
salihonur

Replies: 7
Views: 23699

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2020 2:44 pm   Subject: Modbus Master/Slave Switch by parameter
Eureka!!!!

I found the problem. I had disabled the timer setting in the Modbus library to use my timer setting and interrupt function. My timeout setting is lower than library's setting. I multipli ...
  Topic: Modbus Master/Slave Switch by parameter
salihonur

Replies: 7
Views: 23699

PostForum: General CCS C Discussion   Posted: Sat Nov 28, 2020 2:18 pm   Subject: Modbus Master/Slave Switch by parameter
I guess I couldn't explain the problem very well. Normally I don't need to debug what is going on there. I put some debug prints to track where the problem is. INT_RDA works very well. I can see incom ...
  Topic: Modbus Master/Slave Switch by parameter
salihonur

Replies: 7
Views: 23699

PostForum: General CCS C Discussion   Posted: Fri Nov 27, 2020 3:44 pm   Subject: Modbus Master/Slave Switch by parameter
One problem I have is the fact you've got the WDT enabled. Typically for 'debug' purposes' WDT would NOT be enabled, and only enabled once the product was properly tested and ready for sale.

While ...
  Topic: Modbus Master/Slave Switch by parameter
salihonur

Replies: 7
Views: 23699

PostForum: General CCS C Discussion   Posted: Fri Nov 27, 2020 11:19 am   Subject: Modbus Master/Slave Switch by parameter
Hi,

Here is the debug file.

config file of the project

#define DEBUG TRUE
#define PIN_DBG_TX PIN_B7
#define PIN_DBG_RX PI ...
  Topic: Modbus Master/Slave Switch by parameter
salihonur

Replies: 7
Views: 23699

PostForum: General CCS C Discussion   Posted: Thu Nov 26, 2020 4:06 pm   Subject: Modbus Master/Slave Switch by parameter
Hi guys,

As you know the standard modbus library allows to switch master or slave via macro. But I need to switch it by a flag which will be controlled remotely and save into the eeprom. So I remov ...
  Topic: Why neither style codes nor CSS file doesn't work? [Solved]
salihonur

Replies: 8
Views: 23893

PostForum: General CCS C Discussion   Posted: Sun Jun 14, 2020 6:54 am   Subject: Why neither style codes nor CSS file doesn't work? [Solved]
You do realise that the standard escape for % in C, is %%.
This is a 'read the manual' one:

A %% will output a single %.


This is it. It works properly now. Thanks very much Ttelmah Smile
  Topic: Why neither style codes nor CSS file doesn't work? [Solved]
salihonur

Replies: 8
Views: 23893

PostForum: General CCS C Discussion   Posted: Sat Jun 13, 2020 2:07 pm   Subject: Why neither style codes nor CSS file doesn't work? [Solved]
I have found the problem but I don't know the solution.

The problem is caused by % character in files under /pages folder. makempfsimg.bat replaces % with something. I see that it is IP address.
...
  Topic: Why neither style codes nor CSS file doesn't work? [Solved]
salihonur

Replies: 8
Views: 23893

PostForum: General CCS C Discussion   Posted: Sat Jun 13, 2020 6:12 am   Subject: Why neither style codes nor CSS file doesn't work? [Solved]
asp and php files are processed on server side, then html output is sent to the browser. The browser processes html, javascript and css codes.

I'm trying to run a designed html file on PIC based em ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group