Hi Ray,
maybe I don't understand.
I just tested the code on my side, I can see portd bit0 at memory 0x0005 got toggled with
PORTD_PD0=0x00; //set output pin as low
asm nop;
PORTD_PD0=0x01; //set output pin as high
see attached video.
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------