| ??? 06/15/03 13:10 Read: times |
#48412 - RE: What's SP? Responding to: ???'s previous message |
Stanley:
Try the following log for the interrupt. When any one sensor triggers the interrupt via the OR gate have the interrupt capture the current state of the 7 sensors and store those results into a RAM location. Then have the interrupt procedure set a bit flag in one of the RAM bytes from 20h->2Fh. After this the interrupt finishes and you execute RETI instruction. Have the main control loop for your program look to see whenever the bit flag in the internal RAM variable gets set. When it sees it set it will then clear the bit flag and then branch to code to decide how to handle the sensor input. It will use the stored sensor status byte as the source of the sensor data. It will also be a good idea if you were to clear the bit flag variable at startup initialization time. Michael Karas |
| Topic | Author | Date |
| What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What\'s SP? | 01/01/70 00:00 | |
| RE: What\'s SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
| RE: What's SP? | 01/01/70 00:00 | |
RE: What's SP? | 01/01/70 00:00 |



