ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
19 апреля
935446 Топик полностью
Toчкa oпopы (22.07.2019 15:05, просмотров: 341) ответил RedFroggy на Коллеги, прошу помощи. MSP430F5419A, в режиме I2C мастер. Периодически возникает состояние на шине, когда бит занятости UCBBUSY = 1 держится постоянно и помогает только сброс через установку бита USCSWRST. Ошибка плавающая, закономерность понять
Попробовать "Bus clear", если на линии SDA что-то не так? 
3.1.16 Bus clear: In the unlikely event where the clock (SCL) is stuck LOW, the preferential procedure is to reset the bus using the HW reset signal if your I2C devices have HW reset inputs. If the I2C devices do not have HW reset inputs, cycle power to the devices to activate the mandatory internal Power-On Reset (POR) circuit. If the data line (SDA) is stuck LOW, the master should send nine clock pulses. The device that held the bus LOW should release it sometime within those nine clocks. If not, then use the HW reset or cycle power to clear the bus.
Хотя - это может быть и не реализовано у ведомого.
Заказать импортные ЭК - https://shop.fulcrum.ru/buy