r2axz / bluepill-serial-monster

USB to 3 Port Serial (UART) adapter firmware for STM32 Blue Pill.
MIT License
323 stars 76 forks source link

Advanced option for Pull-Up resistor value changing #36

Closed MoyuStar closed 3 years ago

MoyuStar commented 3 years ago

Hi Currently Pull-Up resistor is 1KΩ(?) and unchangeable, which I found is too small for receiving signals from some weak open-drain output.

In my case, I used the bluepill with another board with max 50mA output current. When the baud rate is 920k the bluepill can't receive message correctly. The current for switching from 0 to 1 is too big to finish ​in 1/920k second.

Finally I solved this issue by disabling the PU and put a external 10K PU.

Hope there will be an advanced option for changing PU value

thanks

r2axz commented 3 years ago

Hi,

the PU/PD feature uses internal resistors of stm32f103c8t6. There is no way you can change their value programmatically. According to the datasheet, Rpu and Rpd are in the range of 30k to 50k, typically 40k, which is a weak PU/PD.

Unfortunately, this cannot be implemented.

MoyuStar commented 3 years ago

Got it, thanks!