Answer the question
In order to leave comments, you need to log in
What does open collector mean?
I deal with input/output ports, the article
mcucpu.ru/index.php/stm32/82-stm32gpio
helped me,
I perfectly understand how to program a specific mode, but the question is what each mode is?
Answer the question
In order to leave comments, you need to log in
https://ru.m.wikipedia.org/wiki/%D0%A2%D1%80%D0%B0...
- open collector (stock)
https://ru.m.wikipedia.org/wiki/% D0%92%D1%8B%D1%81...
- high-impedance state
easyelectronics.ru/avr-uchebnyj-kurs-ustrojstvo-i-...
- read about the purpose of pull-up resistors and in general I highly recommend this site for learning the basics.
To connect a thermistor, you need to assemble a voltage divider on a thermistor and a resistor of known value and measure the voltage output by this divider using an input operating in analog mode. The data will go to the built-in ADC of the controller.
To use an LED, you can take an open-drain output and connect the LED through a current-limiting resistor. Anode to the positive pole of the power source, cathode - through a resistor to the output of the microcontroller. Set the output to 0 - the LED will light up, 1 - it will turn off.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question