# Synchronous Interrupts

**URL:** <https://forums.sifive.com/t/synchronous-interrupts/2360>\
**Category:** General\
**Created:** [May 22, 2019, 2:36pm UTC](https://forums.sifive.com/t/synchronous-interrupts/2360 "2019-05-22T14:36:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickolas](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nickolas](https://forums.sifive.com/u/nickolas)\
**Post date:** [May 22, 2019, 2:36pm UTC](https://forums.sifive.com/t/synchronous-interrupts/2360/1 "2019-05-22T14:36:35Z")

</div>

Please, could you help me with a question on interrupts?  
I’m exploring the E31 features by reading through the document SiFive E31 Core Complex Manual v2p0.  
There are two modes of operation.  
Direct Mode: All exceptions set pc to mtvec.BASE  
Vectored Mode: Asynchronous interrupts set pc to mtvec.BASE + 4 × exception code.  
So what happens to synchronous interrupts in Vectored Mode? Are they lost in space? =)  
Thank you!

---

<div class="post-metadata">

**Author:** ![Krste](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/krste/32/11_2.png) [@Krste](https://forums.sifive.com/u/Krste)\
**Post date:** [May 23, 2019, 12:52pm UTC](https://forums.sifive.com/t/synchronous-interrupts/2360/2 "2019-05-23T12:52:46Z")

</div>

From RISC-V Privileged Architecture Specification:  
“When MODE=Vectored, all synchronous exceptions into machine mode cause the pc to be set to the address in the BASE field, whereas interrupts cause the pc to be set to the address in the BASE field plus four times the interrupt cause number.”

---

<div class="post-metadata">

**Author:** ![nickolas](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nickolas](https://forums.sifive.com/u/nickolas)\
**Post date:** [May 23, 2019, 2:52pm UTC](https://forums.sifive.com/t/synchronous-interrupts/2360/3 "2019-05-23T14:52:47Z")

</div>

I’ve just tested it and it worked fine. Thank you very much!
