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 43 matches
CCS Forum Index
Author Message
  Topic: Clock on PIC18F46K80
javick82

Replies: 2
Views: 6115

PostForum: General CCS C Discussion   Posted: Tue Nov 08, 2011 9:16 am   Subject: Clock on PIC18F46K80
So with the added confidence of getting it to work with the internal oscillator, I played around with the code a bit more to get it to work with my external (I think???) oscillator.

I think this wa ...
  Topic: Clock on PIC18F46K80
javick82

Replies: 2
Views: 6115

PostForum: General CCS C Discussion   Posted: Mon Nov 07, 2011 8:12 pm   Subject: Clock on PIC18F46K80
I don't know why setting up the clock on the PIC gives me such a headache, but I just can't get a simple "Hello World" going on my RS232 port.

so far:

#INCLUDE <18F46K80.h>
#NOD ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Wed Jun 15, 2011 2:48 pm   Subject: Sustaining USB Connection - CDC Implementation
So if the device is USB powered, I have no issue sustaining a connection forever.

It is only when I use an external power supply that the issue crops up. My EE is going to look into some condition ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Mon Jun 13, 2011 6:45 am   Subject: Sustaining USB Connection - CDC Implementation
I had the same line of thinking, Ttelmah...

Brought the sucker home over the weekend. I ran the same example 12 program for 16 hours straight with no issues. I used a different (brand new) USB ca ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Sat Jun 11, 2011 2:57 pm   Subject: Sustaining USB Connection - CDC Implementation
Oddly enough, this same thing occurs when I use the CCS USB demo board as well.

I used the same fuses and clock setup as laid out in the USB exercise book.
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 4:43 pm   Subject: Sustaining USB Connection - CDC Implementation
Same issue, even with a 1 µF capacitor in place for VUSB.
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 3:00 pm   Subject: Sustaining USB Connection - CDC Implementation
0.47 µF ceramic cap.

I'll see if I can track down a 1 µF cap see if the issue comes up again.
  Topic: ASCII to LCD (ADC conversion)
javick82

Replies: 3
Views: 7324

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 2:52 pm   Subject: ASCII to LCD (ADC conversion)
The "putc" functions use the byte value of the input.

The following all output the character A
putc('A')
putc(65)
putc(0x41)

I would recommend looking into the printf() function in ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 1:14 pm   Subject: Sustaining USB Connection - CDC Implementation
Another thought (moving away from PIC programming and into PC HW architecture and settings), but could there be something with the port powering down when the PC locks or idles or something?
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 12:34 pm   Subject: Sustaining USB Connection - CDC Implementation
I ran example 12 from the USB exercise book. On two different machines.
First - Windows 7 - 64 bit, Intel ICH10 USB controller
Second - Windows XP - 32 bit, Intel IC7 USB Controller

Sadly, I got ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 7:47 am   Subject: Sustaining USB Connection - CDC Implementation
Unfortunately, I am using Windows 7, but 64-bit.
My chipset is the Intel ICH10.
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 5:37 pm   Subject: Sustaining USB Connection - CDC Implementation
Maybe some other info that would help...

My client program is written in C#. I am using the System.IO.Ports namespace to handle the data transfer on the PC side. All that happens when I get this ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 3:12 pm   Subject: Sustaining USB Connection - CDC Implementation
20 minutes later (actually 18), communication ceased.

I am going to try a couple more things to see if there is something in the usb_cdc driver that will help diagnose the issue at hand.
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 2:38 pm   Subject: Sustaining USB Connection - CDC Implementation
OK, so I poked around in the examples a little more and found this comment:

usb_task() must be called periodically in your main loop. If it is not called faster than once per millisecond, USB may ...
  Topic: Sustaining USB Connection - CDC Implementation
javick82

Replies: 22
Views: 24298

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 1:38 pm   Subject: Sustaining USB Connection - CDC Implementation
I am on a PIC18F2550.

I adapted my USB handling from the CDC example provided with the USB demo board. Everything works fine for about an hour, then just goes kaput.
 
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