cancel
Showing results for 
Search instead for 
Did you mean: 

How do I generate D and Z interrupts?

wayne
Associate II
Posted on October 31, 2006 at 13:10

How do I generate D and Z interrupts?

1 REPLY 1
wayne
Associate II
Posted on October 31, 2006 at 13:10

Someone please help!

I am working with the ST72141 (ST72E141K2) through an emulator and I'm trying to generate a D interrupt (MISR = 0x04) and Z interrupt (MISR = 0x02) and am having no luck. Can anyone tell me what is the simpliest way to generate these 2 interrupts with the hardware? I have no trouble generating a Commutation interrupt (MISR = 0x01) and I believe the D and Z events follow in that order.

How I am Generating the Commutation (CI):

Here are the steps taken with the Visual Developer:

set MIMR = 1

set MCRA = 0

set MTIM = 1

set MCOMP = 3

set MCRA = 0x80

step through the program until MTIM = MCOMP (2 steps in this case)

once MTIM = MCOMP --> MTIM is reset = 0, MISR = 0x01 (CI!)

from there, what is the best method to generate a D event and then from there to generate a Z event? And if I'm on the wrong track, please just tell me where to start.

I thank you very much in advance for your help!

Wayne