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 29 matches
CCS Forum Index
Author Message
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Sat Mar 10, 2018 5:58 am   Subject: [SOLVED] pic18f46k22 modbus master data error
thank for helping me friend
its fine to use 8 bit, data will display accurate Laughing
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Sat Mar 10, 2018 3:55 am   Subject: [SOLVED] pic18f46k22 modbus master data error
sorry for that hold_regs next time i will remember that
i try that code it showing this

https://drive.google.com/file/d/1XZd3F51ESkn6GRT04BLMJkzGE3_hXU-9/view?usp=sharing
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2018 11:19 pm   Subject: [SOLVED] pic18f46k22 modbus master data error
Thanks for reply Ttelmah

Both things you suggested to me it will show wrong values. I think there
is msb and lsb are not stored in correct place.

I try with 8 bit and change the sequence of ...
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Thu Mar 08, 2018 10:41 pm   Subject: [SOLVED] pic18f46k22 modbus master data error
Thanks for reply friends.
Sorry for that i did not mention that FR & TOTAL value showing correct till 255 when the value is greater than that showing wrong values in both
forget that things
...
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Thu Mar 08, 2018 4:29 am   Subject: [SOLVED] pic18f46k22 modbus master data error
Thanks for reply Ttelmah sorry for my silly mistakes.
I know that the holding registers are 16bit values,
but this read_all_holding function gives me that 8 bit value.
When i use unsigned int16 ho ...
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Thu Mar 08, 2018 12:34 am   Subject: [SOLVED] pic18f46k22 modbus master data error
hi friends
sprintf(yazi,"%2X%2X",hold_regs[1],hold_regs[2]);
glcd_text57(1,0,yazi,2,ON);
sprintf(yazi,"%2X%2X",hold_regs[3&# ...
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Wed Mar 07, 2018 12:23 am   Subject: [SOLVED] pic18f46k22 modbus master data error
thanks for reply friends
i want to send and receive unsigned int32

i try both things as suggested but not working

float value send and receive showing '0' in all the values and i put known v ...
  Topic: [SOLVED] pic18f46k22 modbus master data error
borseyogesh1436

Replies: 22
Views: 49165

PostForum: General CCS C Discussion   Posted: Tue Mar 06, 2018 4:39 am   Subject: [SOLVED] pic18f46k22 modbus master data error
hi friends,

I am using pic18f46k22 as master and slave for modbus using CCS & PCH 16 bit v 5.015.
Slave working fine tested with modbus poll but the master showing two
value correct that is ...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Thu Jan 04, 2018 4:46 am   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
Thanks for helping friends
the problem is solved,
i forget to use read = PORTD and write =LATD
with DSPIC30f6014A
code is working

#BYTE PORTDH=getenv("SFR:PORTD")+1
#B ...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Thu Jan 04, 2018 2:24 am   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
I don't think that's supply problem because its working with same voltage with other compiler that's working fine.
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2018 10:45 pm   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
I don't have pdf of HG12864B which i am using.
I search on net but not find rst pin current specification in any PDF.

Saying that code with DSPIC30f6014A
and it will display nothing when rst is ...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2018 3:29 am   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
thanks for replay Ttelmah

pullup with 100R is not working, direct 5v is working

i try that code with other device i have PIC30f6014Ai try that code with other device i have PIC30f6014A see if ...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2018 2:25 am   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
Thanks for reply.

Physical connection to the all pin is correct and working properly. I test other compiler "XC16" program for testing is working correctly and PIND7 is also toggle as
...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2018 12:24 am   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
thanks for reply

its working but after connect rst to 5v

its affecting RST PIN only that is connected to PIND.7 its showing 0v

why affecting only RST PIN ?

output_high(GLCD_RST); IS HIGH ...
  Topic: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
borseyogesh1436

Replies: 19
Views: 39016

PostForum: General CCS C Discussion   Posted: Tue Jan 02, 2018 10:46 pm   Subject: [SOLVED]How to use glcd data pin from pin8 to pin15 ?
Thanks for reply friends
output_d((int16)data<<8);
void glcd_writeByte(int1 side, int8 data)
{
set_tris_d(0x0000);
if(side) // Choose ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group