Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The timer and port interrupt vector registers seem to be resetting to zero when I run my program. What causes that?

0
Posted

The timer and port interrupt vector registers seem to be resetting to zero when I run my program. What causes that?

0

SOLUTION: I don’t have a clue. If you find out, let your instructor know so he can put the answer here. PROBLEM: I am using the H1 bit to generate a port interrupt, but I can’t seem to clear the port interrupt request from the PI/T. SOLUTION: The interrupt may be cleared by clearing the H1S bit in the Port Status Register. You need to write a “1” to this bit to clear it to 0. See Section 2.3 of your PI/T manual. Note that to avoid resetting other bits, you must create a mask where only the H1S bit position is set, and all other bit positions are cleared. PROBLEM: I think I’m clearing the PI/T interrupt, but it seems like the PI/T interrupt pin is still staying low. SOLUTION: Check the PIRQ and TIRQ pins of the PI/T to be sure you have external pull-up resistors attached.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123