hi can anyone help me with the writing of a source code to flash a sequence of lights on and off, i'm using a motorola assembly any help that you can give is very much appreiciated
Of course no one can help you with this because simply it is hardware dependent.
Are these lights memory mapped? If yes to which address? If no, to which port?
The basic idea behind toggling something on and off is to XOR the bit (or the port) it is connected to with 1 because x XOR 1 = !x
So, first start with initial state by masking off the bit (AND it with zero)
Then decide how you are going to perform the delay time between On and Off
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.