ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
29 марта
415973 Топик полностью
Adept (08.06.2013 02:43, просмотров: 284) ответил Adept на физические порты адресуются как ячейки SRAM, соответственно команды in/out/cbi/sbi/sbis/sbic работают только с виртуальными портами (на которые делается ремап физических) Вот как-то так, точно не помню, проект с xmegoй не трогал уж больше года.
в даташите написано: 13.12 Virtual Ports Virtual port registers allow the port registers to be mapped virtually in the bit-accessibleI/O memory space. When this is done,writing to the virtual port register will be the same as writing to the real port register. This enables the use ofI/O memory-specific instructions, such as bit-manipulation instructions, on a port register that normally resides in the extended I/O memory space. There are four virtual ports, and so four ports can be mapped at the same time.
...делать нужно так, как нужно. А как ненужно - делать не нужно (С) Винни-Пух :)