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.
Can I change a pin definition in an assembler module when program is running? I would add a parameter at my assembler routine but if I do my program will not work because the time of esecution is very critical! (I'm working with a Dallas memory)
Can I change a pin definition in an assembler module when program is running? Doing so would indicate some kind of self-modifying code OR indirect access of an SFR. SFRs are NOT indirectly accessable. This is a FEATURE/SHORTCOMING of the architecture and not of the tools. Self-modifying code is dangerous, but do-able. You'll just have to map your CODE and XDATA space together and then write the function to the memory before you try to execute it. But, this is probably more trouble than it's worth. It's probably easier to write a separate function for each pin change and then use function pointers or a switch statement. Keil Support