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
This is exactly the information I needed. Good, just remember that the things that Mike spoke of will definitely affect timing. If you need to get down to that level of detail, you will have to take those things into account.
I wish I had the time to get to know the chip better but unfortunately I don't. Good luck, you will need it. Erik