Skip to main content
Visitor II
October 31, 2006
Question

How do I generate D and Z interrupts?

  • October 31, 2006
  • 1 reply
  • 640 views
Posted on October 31, 2006 at 13:10

How do I generate D and Z interrupts?

    This topic has been closed for replies.

    1 reply

    wayneAuthor
    Visitor II
    October 31, 2006
    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