View previous topic :: View next topic |
Author |
Message |
albert-dm
Joined: 25 Jan 2013 Posts: 2
|
Problem with #int_rda and usb enumeration |
Posted: Fri Jan 25, 2013 6:16 am |
|
|
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
|
|
Posted: Fri Jan 25, 2013 6:38 am |
|
|
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
|
More information |
Posted: Fri Jan 25, 2013 6:45 am |
|
|
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
|
Re: More information |
Posted: Sun Jan 27, 2013 2:52 am |
|
|
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. |
|
|
|