USB HID-Flowcode-Proteus_18F4550

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
sundgau
Posts: 78
Joined: Mon Sep 26, 2011 4:18 pm
Has thanked: 5 times
Been thanked: 10 times

USB HID-Flowcode-Proteus_18F4550

Post by sundgau »

Hello, I have a problem with proteus simulation in a file generated by Flowcode.
This project only initializes a USB HID comunication and then do the flashing LED at a frequency of 0.5Hz.
The frequency of 24MHz under Flowcode was chosen to be consistent with the frequency of the CPU after the PLL (96MHz / 4)
Can you explain to me why the driver installation fails on proteus with this project in Flowcode realized then it works in reality? In addition, the LED flashes at a frequency of 0.416Hz!

Scanner.hex file, as for him, works fine in Flowcode. It has been written using mickroC; detection driver is good!

The problem is he of Flowcode, Proteus or me!

cordially

Bruno
Attachments
fichiers.zip
(27.95 KiB) Downloaded 210 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB HID-Flowcode-Proteus_18F4550

Post by Benj »

Hello Bruno,

USB requires a clock speed of 48MHz (96MHz PLL / 2) which divided by 4 equates to 12 million instruction cycles per second which is the same rate as full speed USB.

There is an article on getting started with USB available from here which details config settings etc.
http://www.matrixmultimedia.com/article.php?a=363

Post Reply