EH#4: Understanding the LPDDR4 SDRAM memory for mobile, automotive and embedded system applications.
EH#4: Understanding the LPDDR4 SDRAM memory for mobile, automotive and embedded system applications.
- Get link
- X
- Other Apps
Introduction: In this post, first, the description about how to use the arduino as a USB to TTL converter and then we talk about how to use it to flash the STM32F1 Bluepill.
Why do we need a USB to TTL/ USB to UART/ USB to Serial converter?
Most of the processor including modern day ARM processors has inbuilt UART serial communication port that works on TTL logic level protocol for serial communication. The problem arises when we need to stablish communication between PC and processor, because most of the modern day PCs support only USB protocol for serial communication. Now, one has to fill the gap between these two protocols, and therefore, to solve this problem USB to TTL converters are utilized. This USB to TTL conversion can be done in two ways.
One, by directly using the USB to TTL converters with a normal connectors(they connect 5v, gnd, Rx and Tx of the the converter with corresponding levels at processor side).
Second, by using a max232 chip that converts the TTL signals to the RS232 signals along with a USB to RS232 serial cable.
Converting an Arduino into a USB to TTL converter:
There are two ways to make an arduino board works as USB to TTL converter.
one is to Connect the RESET pin to the GND.
second to program the arduino by the following line of code.
void setup(){
pinMode(0,INPUT);
pinMode(1,INPUT);
}
void loop(){
}
In order to verify this second way, short the Rx and Tx pin of arduino board. Now, open the serial monitor and send text, if it is being echoed then USB to TTL converter is ready.
i will be covering the first method, but you could try the second method too.
Bluepill board:
Figure below shows the component description of Bluepill board.
Comments
Post a Comment