Shop OBEX P1 Docs P2 Docs Learn Events
Interupt Sources Monitoring Operation Questions — Parallax Forums

Interupt Sources Monitoring Operation Questions

0 , default on cog start for INT1/INT2/INT3 event sources
1 CT-passed-CT1, established by ADDCT1
2 CT-passed-CT2, established by ADDCT2
3 CT-passed-CT3, established by ADDCT3
4 SE1 event occurred, established by SETSE1
5 SE2 event occurred, established by SETSE2
6 SE3 event occurred, established by SETSE3
7 SE4 event occurred, established by SETSE4
8 Pin pattern match or mismatch occurred, established by SETPAT
9 Hub RAM FIFO interface wrapped and reloaded, established by RDFAST/WRFAST/FBLOCK
10 Streamer is ready for another command, established by XINIT/XZERO/ZCONT
11 Streamer ran out of commands, established by XINIT/XZERO/ZCONT
12 Streamer NCO rolled over, established by XINIT/XZERO/XCONT
13 Streamer read location $1FF of lookup RAM
14 Attention requested by other cog(s)[1][2]
15 GETQX/GETQY executed without any CORDIC results available or in progress

1) The sources listed above are they a register in the cog cpu?
2) How do the flags in register get addressed in respect to an instruction cycle?
a) Automatic interuption with Interupt
b) Selectable Event
c) pin pattern match
d) not going worry about Hub RAM FIFO/Streamer/Cog Attention/Cordic

Regards
Bob (WRD)

Comments

  • evanhevanh Posts: 15,423
    edited 2021-10-08 18:56

    Yep, each case will be an independent flag. Each one has specific, and separate, set and reset conditions. The docs talk individually about how each one is set, and how each one is reset. They can be seen as a register like group only via GETBRK debug instruction. They could be considered as one register in that context I guess.

    Interrupts are in addition to the events. Each IRQ has its own event source config.

    EDIT: Event flags require software interaction to reset. IRQ flags are automatically reset in hardware by the detection of the specific return register number used in the returning CALLD.

Sign In or Register to comment.