dspic33ep64mc504 i "atomowe"operacje na portach pytanie

Loading thread data ...

W dniu 2016-05-02 o 10:35, michal pisze:

jeśli chcesz assembler, to zrób makro definiujące atomowy (jedną instrukcją) zapis do portu.

a.

Reply to
Artur Miller

Na pewno ta operacja r-m-w nie jest realizowana pojedynczą instrukcją w dspic33? Uważaj na XC w wersji darmowej, w tej wersji XC generuje dużo "dummy instructions" aby rozepchnąć i spowolnić kod. Być może analizując wygenerowany assembler dla LATGbits.LATG5 = 1; dałeś się wprowadzić w pole przez ekstra zbędne instrukcje.

Reply to
Marek

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.