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: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Tue Apr 22, 2014 12:55 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,
Adjustment of “send_message” function has helped with echo mode - program works fine now. But haven't fix timeout problem.

Do you think it could be caused by the old version of CCS ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Fri Apr 18, 2014 2:31 am   Subject: PIC18F26J50 USB CDC issue
Ttelmah
I have probably the older version of CCS compiler. There isn't function usb_cdc_putempty. In my case the usb_cdc_putready should returns TRUE if there is room left in the transmit buffer for ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Fri Apr 18, 2014 1:41 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,
The problem is same.

Hmm, I think there isn't anything in my area what would interfere with communication.

I found out other issue about usb_cdc communication. I have tried to add e ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Tue Apr 15, 2014 5:07 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,
Yes, you are right. Hope this version is correct.

#include <18F26J50.h>

#FUSES NOWDT
#FUSES DEBUG
#FUSES NOXINST
#FUSES NOPROTECT
#FUSES NOFCMEN
#FUSES NOIESO
#FUSES NOC ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Tue Apr 15, 2014 2:44 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,

Yes, the index limit has been added. My actual code is below. My current code is below.


#include <18F26J50.h>

#FUSES NOWDT
#FUSES DEBUG
#FUSES NOXINST
#FUSES NOPROTECT ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Mon Apr 14, 2014 2:52 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,
Yes, there is more IC on the board. Max current which board can take is about 211 mA. I have added this definition into my code: “#define USB_CONFIG_BUS_POWER 300 //300mA (range is ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Thu Apr 10, 2014 3:07 am   Subject: PIC18F26J50 USB CDC issue
Hi Ttelmah,
Thanks for your comment.

I removed the NOSTVREN from "FUSES" section.

Limit for index has been added.

Finally I removed the 1.5K resistor (yes, it was connected to Vusb ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Wed Apr 09, 2014 3:12 am   Subject: PIC18F26J50 USB CDC issue
Hi Alan,

Thank for quick reply, you are right. But I don't think it is the major issue. By my C# application are sending just commands "CMD\r" and "CLR\r". Problem with overwrit ...
  Topic: PIC18F26J50 USB CDC issue
Donald_X

Replies: 35
Views: 37049

PostForum: General CCS C Discussion   Posted: Wed Apr 09, 2014 1:49 am   Subject: PIC18F26J50 USB CDC issue
Hi All,
I work on a device (PIC18F26J50) which is controlled by commands sent via USB CDC. The device is powered from USB, there is 1k5 resistor on D+ and it uses external crystal 12MHz. Please see t ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group