Hi forum! I need a delay in a programm but _nop_() seems not to work. Thus I wrote the following code in the main function where x is an IO pin: while(1) { x = 1; _nop_(); x = 0; _nop_(); } Only the second _nop_() causes a delay but not the first one. µVsioin2 is used. Can anybody help me? Thanks Fabian
"I wish I had the time to get to know the chip better but unfortunately I don't." Doesn't the very fact that you needed to start this thread (plus the fact that it took so long for the penny to drop) rather suggest that you really do need that understanding...?