ATtiny416/816 Manually Trigger SPI interrupt

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi -

I've been searching the datasheet for an answer with no luck.  Hopefully someone will be able to help.

 

I am writing a SPI TX complete interrupt routine that will function as a state machine to perform a 4 byte transfer then disable the interrupt.  I desire to enable then manually trigger this interrupt (start the state machine) within a timer routine.

In the past, I've seen where there were methods for manually triggering the interrupt such as writing to the interrupt flag register in some cases, etc.  I cannot find in the datasheet how to manually trigger the interrupt.  Is it possible to simply call the interrupt routine like you would call a function?  I suppose I could enable the interrupt then write dummy data to start interrupt process but that doesn't appeal to me.

 

Suggestions?

Thanks for any assistance you may offer.

Jim

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

>I've been searching the datasheet for an answer with no luck

 

DREIE

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


curtvm wrote:
DREIE

 

Hmmm - So enabling this interrupt should immediately force the interrupt to fire.  Yes, this should work... I don't yet have working hardware so I will try testing this using the studio simulator.

Thanks for your input.

Jim