2012-04-19 10:39 PM
This Project might be interesting, is the CDC Usb Virtual Port Example
- that I modified to return ADC Reading values, and provide a simple Commands Shell Example, - which allow Reading and Writing of individual Port Pins. Page - see Virtual Com Project for Descriptrion and Download :[[this link/image has been flagged as malicious by our security scan software and has been deleted]]
Note: This Project is designed for implementing on the Stm32f4Discovery Board, and needs no additional parts. It uses the onboard Leds and User Button. But, the User is free to add a Potentiometer for ADC Testing.
The Project allows connection via USB to the PC as a Virtual Com Port. So, the User then simply opens up a Com Term program like HyperTerm on the PC - to directly talk to and Control the Board. It will immediately start sending ADC readings (x1/sec) from the PC0 port pin to the Com Term.
A simple Command Shell example is included that allows the User to: Disable/En the ADC readings, Read Port Pins, and Write Port Pins; - directly from the Command Terminal.
Commands below :
? - for Help Instructions ;
z/y - Disable / Enable auto ADC Readings ;
a-h 0-9/a-f - in LOWER Case - READS from the Port a-h of Pin 0-9/a-f (hex) ;
A-H 0-9/a-f 0/1 - in UPPER Case - WRITES to the Port A-H of Pin 0-9/a-f (hex) a Value of 0/1 ;
For example, enter 'a0' (without the appostrophies'') to Read PortA.Pin0 - which is the USER Button. And, it will return 0 or 1 depending if the Button is pressed or not.
Another example, enter 'DF1' to Write a 1 to PortD.Pin15 - which is the BLUE Led - which should Light. And, 'DF0' to turn off the Led.
The Project Instructions (in the root dir) even explain how to partially light the Leds.
:)
2013-04-22 12:40 AM
I emailed the poster but there is no response. Can any one having these projects upload them . Thank you.
2013-04-22 02:29 AM
[[this link/image has been flagged as malicious by our security scan software and has been deleted]]
2013-04-22 07:05 AM
Then assume you'll need to look at other ways to do what you want. As I recall the JLC code was just a slight modification of some other available code. The USB FW library (2.1) also included VCP examples for the EVAL boards, which have been ported to the STM32F4-Discovery.
Roope's, via Mard, original example is herehttp://dl.dropboxusercontent.com/u/56124886/stm32f4-discovery/stm32f4-discovery-usb-cdc-example.zip
https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32F4DISCOVERY/DispForm.aspx?ID=351
2014-04-29 06:16 AM
2014-04-29 06:38 AM
FFS - THIS IS A TWO YEAR OLD THREAD - THE CODE/PROJECT IS NOT AVAILABLE HERE