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

Problem with #int_rda and usb enumeration

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
albert-dm



Joined: 25 Jan 2013
Posts: 2

View user's profile Send private message

Problem with #int_rda and usb enumeration
PostPosted: Fri Jan 25, 2013 6:16 am     Reply with quote

I need to use the RDA interrupt in my firmware, but when I call it with #int_rda, I have problems when the device trys to enumerate with the SO using USB HID. I'm using Windows 7. What should I do?
temtronic



Joined: 01 Jul 2010
Posts: 9245
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 25, 2013 6:38 am     Reply with quote

for starters...give us more information !

Which PIC ? Compiler version ? etc.
USB ??? Internal to the PIC or an interface module ?(TTL or RS232)??

PC side problems...is it a dedicated PC ONLY interfacing to PIC project or does it also connect to the net,do spredsheets,games,etc.?
The PC program..is it just a terminal program or something you made(VB,VC,DELPHI,QB,??)??

Have you run the example programs (both CD and HID) that CCS supplies?
I know the CDC version runs great on XPP,others will comment for 7.

Use the [code] tag to show us a very small,compilable program that show the problem.

The more information and code you supply ,the more people will be able to help you, faster!

hth
jay
albert-dm



Joined: 25 Jan 2013
Posts: 2

View user's profile Send private message

More information
PostPosted: Fri Jan 25, 2013 6:45 am     Reply with quote

I'm using PIC18f4550
There isn't a software, the pic can't connect to the pc.
My CCS compiler is version 4.1
My device connects to the pc using USB HID. It was working, but now I need to use RDA interrupt and when I declare #int_rda I have problems when the firmware tries to enumerate with the SO. It works perfectly using Windows XP.
Ttelmah



Joined: 11 Mar 2010
Posts: 19548

View user's profile Send private message

Re: More information
PostPosted: Sun Jan 27, 2013 2:52 am     Reply with quote

albert-dm wrote:
I'm using PIC18f4550
There isn't a software, the pic can't connect to the pc.
My CCS compiler is version 4.1
My device connects to the pc using USB HID. It was working, but now I need to use RDA interrupt and when I declare #int_rda I have problems when the firmware tries to enumerate with the SO. It works perfectly using Windows XP.


Of course there is software. The PIC can't work without it...
CCS compiler version numbers are x.xxx, not x.x.
If INT_RDA, is:
1) not reading the serial stream, or
2) Trying to do more than just read one character
It will prevent USB from working. USB _requires_ that it's interrupts are serviced promptly. If you stop this happening, problems.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group