И зачем расписаны два метода? чем метод с прерываниями отличается от метода без прерывания? Ведь в поллинге можно быстрее выцепить момент появления флага? Для PIC год назад подключил модуль i2c без всяких напрягов. Прочитал даташит, написал код - работает. А тут...Acknowledge deactivation and the STOP condition generation are made just after EV6 (in EV6-1 just after ADDR is cleared).
p.s. Вот подтверждение о неопределённости:
PE: Peripheral enable
0: Peripheral disable
1: Peripheral enable: the corresponding I/Os are selected as alternate functions.
Note: If this bit is reset while a communication is on going, the peripheral is disabled at the end of the current communication, when back to IDLE state. All bit resets due to PE=0 occur at the end of the communication.
т.е. если там что-то без моего ведома на шине сделало - я не могу этого исправить. совсем.






