Home > other >  A beginner single chip assembler
A beginner single chip assembler

Time:10-24

Please, help me see, the interrupt program to add 1 R2 is why? Why is AJMP $? When were interrupt response? This a don't understand, please help, thank you!

CodePudding user response:

1, the program could not see, can't analysis
2, interrupts can understand so: first, the CPU can only execute one line of code at a time, so don't think if when using time delay timer code that is used when the CPU in the air, etc., such as delay one hour, then this one hour CPU what function also cannot achieve, is not enough, so the CPU utilization is too low, the timer is a single-chip computer peripherals, after you initialize the interrupt will change after the time of arrival in you define SCM one pin (temporarily so understand), then you could test the pin in the main program, if change the time, that you can according to your definition of time to achieve function,
If still don't understand can add VX: 395233700

CodePudding user response:

R2 plus one should be to determine whether a counter overflow, $is the address of our program ajmp is to jump to the field of circulation, the bank counter overflow triggered when the interrupt the R2 + 1
  • Related