Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pb with VNC1L and Joystick

Status
Not open for further replies.

willycat

Newbie level 6
Joined
Aug 22, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,430
Hi,

I am working on a little project composed of a VNC1L chip connected to a 18f4550 Microchip pic via the spi interface.
The goal is to handle an USB joystick.

The communication with the two chips works fine: The joystick is recognized, the report descriptor is read for decoding data coming from the joystick.

After the initialization stage and to test, the pic enters an infinite loop in which the DRD command is send twice to the VNC1l (because the size of the report is 11 bytes).

once the data are received, the first button is searched and his state determine the state of a led (button pushed=led on, button released=led off).

And here comes the problem: it takes 2 seconds to the led to go on after the button is pushed !

I don't understand why.

Can someone help me ?

Thanks,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top