cancel
Showing results for 
Search instead for 
Did you mean: 

New Project Download - Virtual Com with Cmd Shell and ADC Reading

jlchoobs
Associate II
Posted on April 20, 2012 at 07:39

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.

🙂

14 REPLIES 14
naceur2311
Associate II
Posted on April 22, 2013 at 09:40

I emailed the poster but there is no response. Can any one having these projects upload them . Thank you.  

frankmeyer9
Associate II
Posted on April 22, 2013 at 11:29

[[this link/image has been flagged as malicious by our security scan software and has been deleted]]

Posted on April 22, 2013 at 16:05

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 here

http://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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ali2003a
Associate II
Posted on April 29, 2014 at 15:16

Hello,

Can you please put a link for the project code? It looks the link in the web page does not work. 

Thanks

Posted on April 29, 2014 at 15:38

FFS - THIS IS A TWO YEAR OLD THREAD - THE CODE/PROJECT IS NOT AVAILABLE HERE

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..