Author |
Message |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Tue Feb 25, 2025 6:43 am Subject: dsPic & USB |
Hi,
1.With last add 'PLLWAIT' and 'BROWNOUT' same problem.
2. With and without usb hub also same problem. After send 10-30 packet with ten bytes USB block and start after reset mcu. |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Wed Feb 19, 2025 3:52 pm Subject: dsPic & USB |
Hi,
Sorry for delayed resp.
Mr. 'Tt' I have made all yours hardware edit suggestion and nothing change. Problem still present.
Best Regards, |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Fri Feb 14, 2025 8:48 am Subject: dsPic & USB |
Hi,
Same 4 usb ports with same example on PIC18F26J50 works with no problem!
Best Regards, |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Fri Feb 14, 2025 3:36 am Subject: dsPic & USB |
Hi,
The "USB_CABLE_IS_ATTACHED()" add doesn't solved the problem. I have no experiance with MPLAB, XC, .. to try load some usbs cdc example to check if it work or not. When test with wid ... |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Thu Feb 13, 2025 4:26 am Subject: dsPic & USB |
Ok,
What I have to do when see " USB_CABLE_IS_ATTACHED()" or not?
How to use this in main loop? |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Wed Feb 12, 2025 6:22 am Subject: dsPic & USB |
The VBUS signal uses a charge pump to
generate this when the chip is being used for USB OTG. Now you
can use this to detect the power good as you show, but you must have
a pull down resistor on ... |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Wed Feb 12, 2025 2:46 am Subject: dsPic & USB |
Hi mr.'Tt',
I'm using USB A to USB Mini cable about 1meter. As you can see on schematics posted before, 22ohm res series on D+, D- line. Connector away from chip about 3-4cm. On datasheet saw " ... |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Mon Feb 10, 2025 8:53 am Subject: dsPic & USB |
Hi,
I forgot to tell that test with "usb_init()" instead "usb_init_cs()" and problem not solved, but work better.
Another strange things are when sending packet with about ... |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Mon Feb 10, 2025 1:23 am Subject: dsPic & USB |
Hi mr.Tt,
Yes, In this example forgot to enable global ISR, but now add it and still not working. |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Fri Feb 07, 2025 10:18 am Subject: dsPic & USB |
Another strange thing is wen sending just one byte no problem, when send packet with 10-20 bytes after few transmit usb stop to work! |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Fri Feb 07, 2025 8:13 am Subject: dsPic & USB |
Hi,
CCS v.5.115, here is attached sch file: https://easyupload.io/dztw9b |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2025 10:52 am Subject: dsPic & USB |
Hi,
Yes, I have also tried with "#build(stack=1024)" because "CCS Pcd Wizzard" generated example code, but still not solved problem.
Best Regards, |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Thu Feb 06, 2025 4:05 am Subject: dsPic & USB |
Hi mr.Tt.
It could be the problem, but with reducing debug mess. not solve the problem.
Also the same code running on 18F26J50 with no problems
Best Regards, |
Topic: dsPic & USB |
kmp84
Replies: 26
Views: 5633
|
Forum: General CCS C Discussion Posted: Wed Feb 05, 2025 11:03 am Subject: dsPic & USB |
Hello,
I have new trouble with dsPic33EP512MU810 and usb as cdc device.
This is sample test code:
#include <33EP512MU810.h>
#device ICSP=1
//#device PASS_STRINGS=IN_RAM
#use del ... |
Topic: txISR PCD |
kmp84
Replies: 12
Views: 2780
|
Forum: General CCS C Discussion Posted: Fri Jan 31, 2025 11:17 am Subject: txISR PCD |
Hi mr.'Tt',
Yes, now example working!
There is many identical problems like this and 'sd card' example also. They present from the beginning of the ccs compiler and still not corrected!
But t ... |
|