ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
19 марта
794078 Топик полностью
1111111 (13.11.2017 18:12, просмотров: 380) ответил Bill на Лично я к индейцам никогда не обращался. Количество байт для записи в EEPROM переменное. Я писал и по одному байту, и по два, по четыре..
Про байт написано вот так: The programming duration can vary according to the initial content of the target address. If the word (4 bytes) containing the byte to be programmed is not empty, the whole word is automatically erased before the program operation. On the contrary if the word is empty, no erase operation is performed and the programming time is shorter. Note: To write a byte fast (no erase), the whole word (4 bytes) into which it is written must be erased beforehand. Consequently, It is not possible to do two fast writes to the same word (without an erase before the second write): The first write will be fast but the second write to the other byte will require an erase. Т.е. как я понимаю он сначала тупо затирает 4 байта, а потом в один нужный делает запись. Вживую не проверял, надобности не было, пишу по 4 и не морочу голову. В пиках помнится было похожее дело, но после стирания нетронутые байты сами собой прописывались обратно (в документации это доходчиво расписано). Такая себе эмуляция однобайтовой записи за счет растраты ресурса. Про запись двух байт в описании ничего нет, только 1 байт (странный), 4 байта (честные), цельный блок (процедура требует выполнения из рамы). Еще вот странность применительно к одному байту: In DATA area: – Program execution stops during the “End of high voltage” operation, that is when the HVOFF flag is set, and the byte program operation is performed using the read-while-write (RWW) capability in IAP mode. С какой радости выполнение останавливается если область RWW, и к тому же при записи 4х байт все по честному без тормоза: In DATA area: – Program execution does not stop, and the byte program operation is performed using the read-while-write (RWW) capability in IAP mode.