leshasoft
-
Постов
81 -
Зарегистрирован
-
Посещение
Тип контента
Профили
Форумы
Блоги
Сообщения, опубликованные leshasoft
-
-
-
Ошибка "Системе не удается найти указанный путь."
Возможно не может найти m16def.inc
0 -
Можно построить Mesh систему на роутерах keenetic
0 -
-
В восьмом посте форума, ссылку на который вы дали в прикреплённом архиве есть схема подключения и где расположен контакт GND.
0 -
В паре мест:
counter ==2; как написал Yurkin2015 заменить на counter=2;
И в одном месте counter==3 заменить на counter=3;
И ещё в этом месте лучше вот так написать
sum /= 10.0; //рассчитываем среднее значение
val = sum / 68.0;
1 -
Надо смотреть обозначение дисплея и читать в даташите на него последовательность инициализации.
1 -
За сколько отдадите?
0 -
1 час назад, BARS_ сказал:
char 2a; //- переменная нигде не используется
Тут ещё и имя переменной не должно начинаться с цифры.
0 -
-
Вот здесь есть кое что полезное про согласование линий и уменьшение помех.
Рекомендации по применению ТТЛ микросхем.pdf0 -
Ну этому проекту avr zx spectrum уже 10 лет, и все кому надо было наверняка собрали его.
0 -
-
Скачайте себе эту документацию:
STM32F10xx8 STM32F10xxB Errata sheet
https://www.st.com/resource/en/errata_sheet/cd00190234-stm32f101x8-b-stm32f102x8-b-and-stm32f103x8-b-medium-density-device-limitations-stmicroelectronics.pdf
Errata sheet - STM32F40x and STM32F41x - STM32F405
https://www.st.com/resource/en/errata_sheet/dm00037591-stm32f405-407xx-and-stm32f415-417xx-device-limitations-stmicroelectronics.pdf
Скрытый текст2.14.7 I2C analog filter may provide wrong value, locking BUSY flag and
preventing master mode entryDescription
The I2C analog filters embedded in the I2C I/Os may be tied to low level, whereas SCL and
SDA lines are kept at high level. This can occur after an MCU power-on reset, or during
ESD stress. Consequently, the I2C BUSY flag is set, and the I2C cannot enter master mode
(START condition cannot be sent). The I2C BUSY flag cannot be cleared by the SWRST
control bit, nor by a peripheral or a system reset. BUSY bit is cleared under reset, but it is
set high again as soon as the reset is released, because the analog filter output is still at low
level. This issue occurs randomly.
Note: Under the same conditions, the I2C analog filters may also provide a high level, whereas
SCL and SDA lines are kept to low level. This should not create issues as the filters output is
correct after next SCL and SDA transition.
WorkaroundThe SCL and SDA analog filter output is updated after a transition occurs on the SCL and
SDA line respectively. The SCL and SDA transition can be forced by software configuring
the I2C I/Os in output mode. Then, once the analog filters are unlocked and output the SCL
and SDA lines level, the BUSY flag can be reset with a software reset, and the I2C can enter
master mode. Therefore, the following sequence must be applied:
1. Disable the I2C peripheral by clearing the PE bit in I2Cx_CR1 register.
2. Configure the SCL and SDA I/Os as General Purpose Output Open-Drain, High level
(Write 1 to GPIOx_ODR).
3. Check SCL and SDA High level in GPIOx_IDR.
4. Configure the SDA I/O as General Purpose Output Open-Drain, Low level (Write 0 to
GPIOx_ODR).
5. Check SDA Low level in GPIOx_IDR.
6. Configure the SCL I/O as General Purpose Output Open-Drain, Low level (Write 0 to
GPIOx_ODR).
7. Check SCL Low level in GPIOx_IDR.
8. Configure the SCL I/O as General Purpose Output Open-Drain, High level (Write 1 to
GPIOx_ODR).
9. Check SCL High level in GPIOx_IDR.
10. Configure the SDA I/O as General Purpose Output Open-Drain , High level (Write 1 to GPIOx_ODR).
11. Check SDA High level in GPIOx_IDR.
12. Configure the SCL and SDA I/Os as Alternate function Open-Drain.
13. Set SWRST bit in I2Cx_CR1 register.
14. Clear SWRST bit in I2Cx_CR1 register.
15. Enable the I2C peripheral by setting the PE bit in I2Cx_CR1 register.0 -
Да похоже, что одна и та же. В errata stm32 f1 более подробно написано на странице 26.
2.14.7 I2C analog filter may provide wrong value, locking BUSY flag and preventing master mode entry
0 -
Да, параграф 2.4 страница 19
0 -
F4 я не программировал, вот сдесь посмотри: STM32F40x and STM32F41x Errata sheet
0 -
STM32F10xx8 STM32F10xxB Errata sheet
0 -
Электронно-дырочная проводимость только в полупроводниках возникает.
0 -
Кто же его знает, что там внутри буржуйского датчика. Вот например Российский патент: http://www.freepatent.ru/images/patents/54/2463586/patent-2463586.pdf
2 -
По принципу работы можно вот здесь почитать:
http://sarfti.ru/wp-content/uploads/2014/05/pavlov-v.a.-klaviatura-i-manipulyatory.pdfначиная со страницы 39
0 -
2 часа назад, BARS_ сказал:
Честно говоря, я даже не знаю, что это за зверь такой, ирга =)
У нас её Коринкой часто называют.
https://roman-trusov.ru/blog/korinka-irga-svojstva-i-recepti.html0 -
-
Не на всех mini pci-e модулях выведены сигнальные линии usb (контакты 36,38).
0
STM32 аппаратный i2c
в МК для начинающих
Опубликовано
Используйте функции HAL_I2C_Mem_Write и HAL_I2C_Mem_Read которые предназначены для работы с памятью,
С общими функциями работы с шиной I2C HAL_I2C_Master_Transmit и HAL_I2C_ Master_Receive есть некоторые проблемы при работе с памятью.