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 38 matches
CCS Forum Index
Author Message
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Sun Sep 29, 2024 9:41 am   Subject: Timeout modbus
It works! Both CCS support and Microchip support confirmed that the UART is remappable to any pin. So I asked again for support to CCS (microchip advised me to use XC8 compiler).

I used a modified ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Thu Sep 26, 2024 12:12 pm   Subject: Timeout modbus
Yes, but that is the default, unless your clock setup is one that enables
the clock out.
You don't show us your clock setup, so we cannot tell how things will actually
be done by the compiler.
I ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Thu Sep 19, 2024 9:35 am   Subject: Timeout modbus
I want to test it. I prefer to spend some time to test before redesign and manufacture PCB board again.

Preprocessor directory #fuses NOCLKOUT, sets bit #8 of CONFIG1 register?
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Thu Sep 19, 2024 8:11 am   Subject: Timeout modbus
Hi all,
this is answer of Microchip support

Hi Marco,

I am not very experienced with the CCS compiler but I have tested the configuration you mentioned and was able to remap the EUSART pins to ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Tue Sep 17, 2024 6:23 am   Subject: Timeout modbus
Have a look at the 'pin allocation table'. it's the chart that shows all the pins and their uses. When you look at the chart, you'll see that ALL of the PORTA pins have a '---' in the EUART column. Th ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Tue Sep 17, 2024 4:26 am   Subject: Timeout modbus
I have read data sheet, but It was really difficult understand that port_A can't map serial peripheral. Honestly I don't clearly understand yet. So I'll notice this lack information to Microchip.

B ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Mon Sep 16, 2024 7:31 am   Subject: Timeout modbus
Ok, I tried. Success: no more timeout error!!!!

I have to redesign PCB Evil or Very Mad Evil or Very Mad Evil or Very Mad

I'll send a claim to Microchip even if I'm certain that will be meaningless.

Thank you for your ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Mon Sep 16, 2024 5:31 am   Subject: Timeout modbus
This is 16F17146.h section for PIN_SELECT: it seems that PIN_A5 and PIN_A4 are allowed

////////////////////////////////////////////////////////////////// PIN_SELECT
// #pin_select function=pin
/ ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Mon Sep 16, 2024 3:14 am   Subject: Timeout modbus
Thank you for reply, Ttelmah!

You're quite right! I have had great teachers in this forum and I tried to learn lessons Smile so I mapped pins accordling to pic16f17146.h

Now problem is we don't hav ...
  Topic: Timeout modbus
Mvedovetto

Replies: 18
Views: 4666

PostForum: General CCS C Discussion   Posted: Sun Sep 15, 2024 5:38 pm   Subject: Timeout modbus
I have, with kind support of this forum, code running for 16F18424 as MASTER RTU using CCS modbus library and tested with ModRSsim2 and at least I have had no problem.

Now I'm porting to PIC 16F171 ...
  Topic: i2c communication: one master and several slaves
Mvedovetto

Replies: 24
Views: 44313

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2023 10:56 am   Subject: i2c communication: one master and several slaves
Jay was querying how the address reprogramming was done.
Ouch!...
Makes total sense though. Sad

I realised that the answer to Jay (Temtronic) was not clear on how to reprogramme the slave addre ...
  Topic: i2c communication: one master and several slaves
Mvedovetto

Replies: 24
Views: 44313

PostForum: General CCS C Discussion   Posted: Mon Feb 20, 2023 10:47 am   Subject: i2c communication: one master and several slaves
Thank you asmallri for suggestion,
you're right, although I have just to read the value sent by master and use it in the main code, it could be interesting optimizing handling.
  Topic: eeprom data corruption (?)
Mvedovetto

Replies: 10
Views: 27630

PostForum: General CCS C Discussion   Posted: Fri Feb 10, 2023 4:56 am   Subject: Re: eeprom data corruption (?)
A common issue is not having a BOR (Brown Out Rest) enabled. When the power is removed and the power rail decreases, without a BOR set, the PIC can crash as the supply rail falls. When this happens th ...
  Topic: i2c communication: one master and several slaves
Mvedovetto

Replies: 24
Views: 44313

PostForum: General CCS C Discussion   Posted: Thu Feb 09, 2023 10:45 am   Subject: i2c communication: one master and several slaves
Thank you very much, Ttelmah, for your reply,
I have been working on solving the problem. I will have a look at mplabx ide issue next time.

But I am happy to say that I solved it! And thanks to al ...
  Topic: i2c communication: one master and several slaves
Mvedovetto

Replies: 24
Views: 44313

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2023 3:54 am   Subject: i2c communication: one master and several slaves
Thank you for reply and patience

First, it is CCS that is compiling your project, not MPLAB. So what MPLAB
recognises does not matter at all. Second though, if the project is correctly
including ...
 
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