2013-03-18 02:55 PM
Hi,
I am a beginner in programming with stm32 and i want to know how can i pass data from the accelerometer MEMS to PC via serial part using UART thanks for you help in advance #basic #foundation #prerequisite2013-03-19 12:08 PM
You can avoid RS232 by using something like this:
It gives a direct logic-level connection to the UART, and USB to the PC. Appears as a COM port to PC apps. Simples.2013-03-19 12:41 PM
2013-03-19 01:57 PM
From an STM32F4 perspective there really is no difference, you connect the USART Tx and Rx pins to this USB-to-CMOS Serial converter. As most computers these days don't have a built in serial port this can make a lot of sense. Serial communications is used a lot in some embedded applications due to it's simplicity, robustness and cost.
2013-03-19 03:40 PM
''neil.andrew can you explain more about virtual port com: how can i configure it''
Have you never used a serial-to-USB adaptor??You just plug it into your PC, and a COM port appears. Simples!
(the very first time, as for any USB device, you may need to go through the usual driver install process - the documentation for the particular product you choose will explain the process)2013-03-19 04:07 PM
The USB TTL Serial cables as shown in this video
http://www.youtube.com/watch?v=kP6iamT-ocI2013-03-19 11:46 PM
''I am a beginner in programming with stm32''
OK, so it's becoming clear that it's not just the STM32 that's new to you? Have you ever done any form of programming before? Have you ever done any microcontroller programming before?''Can i use a simple connector USB micro A or B instead of
The USB TTL Serial cables''
No. ''as shown in this videohttp://www.youtube.com/watch?v=kP6iamT-ocI
''That video is using the STM32 itself to implement the USB protocol. Implementing the USB protocol is (at least) an order of magnitude more complex than just using a UART - you really need to start with the basics!