We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Given an interrupt that occurs at 500 microsecond intervals, write an interrupt handler that generates a square wave output by setting an interface bit high for a specific number of 500 microsecond periods and then sets the interface bit low for the same number of periods before repeating the process. The interface is at a location whose address is equated to the label GEN and the relevant bit is 0. How to approach this problem using assembly language ?
This question is far to general.
Do you have any experience writing assembly? Which core?
Check the compiler manual of the C compiler you are using. Most often they provide examples on how to write assembly routines.