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 9 matches
CCS Forum Index
Author Message
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Sun Feb 21, 2021 12:30 pm   Subject: 18f4520 working modbus don't work on 18f46k22
Very Happy

You can also see 'why' we often have to ask for people to give the compiler
version. You nicely did, so I 'went looking' to see if there might be a compiler
issue. Sadly there was... :sad ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Sun Feb 21, 2021 6:31 am   Subject: 18f4520 working modbus don't work on 18f46k22
Looking at it, something very odd is going on with his compiler version.
If you look, the code as posted has 0x1D 05 loaded into the bottom holding
register, but the reply being shown has 00 01 bein ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Sat Feb 20, 2021 12:51 pm   Subject: 18f4520 working modbus don't work on 18f46k22
Since the 4520 version works, post that code AND the 46k22 code. As the modbus.c is the same ,that must NOT be the cause of the problem.

Have to ask is the hardware the same ?
Proper bias on the ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Sat Feb 20, 2021 9:20 am   Subject: 18f4520 working modbus don't work on 18f46k22
Dear PCM programmer and temtronic I am really sure that I am making something wrong with 18f46k22 and need advice.



#fuses HSM,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD,NOPLLEN ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Thu Feb 18, 2021 2:04 pm   Subject: 18f4520 working modbus don't work on 18f46k22
Yes, when I originally read your post, I immediately thought 'lots of the K
chips have PPS', which is why I raised this. Then went and looked at the data
sheet for your specific chip and found PPS ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Tue Feb 16, 2021 1:10 pm   Subject: 18f4520 working modbus don't work on 18f46k22
Dear Ttelmah thank you so much for your reply. I tried several things for a week and thats why I missed "#define MODBUS_PROTOCOL MODBUS_PROTOCOL_SERIAL" sorry for confusion. I wrote my code ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Tue Feb 16, 2021 4:59 am   Subject: 18f4520 working modbus don't work on 18f46k22
Dear Ttelmah thank you very much for your reply.

Do you mean

#pin_select U1TX = PIN_C6
#pin_select U1RX = PIN_C7

instead of

#define MODBUS_SERIAL_RX_PIN PIN_C7
#define MODBUS_SERIAL_T ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Tue Feb 16, 2021 4:27 am   Subject: 18f4520 working modbus don't work on 18f46k22
Dear PCM programmer thank you very much for your reply. On the board 8Mhz connected. I am using EasyPICv7 development board.

#use delay(clock=8000000) //cristal de 20MHz
What crystal is on the bo ...
  Topic: 18f4520 working modbus don't work on 18f46k22
yvzd

Replies: 23
Views: 49245

PostForum: General CCS C Discussion   Posted: Tue Feb 16, 2021 2:59 am   Subject: 18f4520 working modbus don't work on 18f46k22
I am trying a little Modbus communication with pc via modbus poll. If I use 18f4520 communication is ok. But when I tried same things on 18f46k22 ıt doesn't work. Is there any special things for 18f4 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group