DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST20-GP1 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST20-GP1
ST-Microelectronics
STMicroelectronics 
ST20-GP1 Datasheet PDF : 116 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
ST20-GP1
The interrupt controller receives external interrupt requests and makes an interrupt request to the
CPU when it has a pending interrupt request of higher priority than the currently executing interrupt
handler.
Pending
Bit
Bit field
0
PendingInt0
1
PendingInt1
2
PendingInt2
3
PendingInt3
4
PendingInt4
Interrupt controller base address + #80
Function
Interrupt 0 pending bit.
Interrupt 1 pending bit.
Interrupt 2 pending bit.
Interrupt 3 pending bit.
Interrupt 4 pending bit.
Read/Write
Table 5.4 Pending register format
The Pending register is mapped onto two additional addresses so that bits can be set or cleared
individually.
Set_Pending (address ‘interrupt base address + #84’) allows bits to be set individually. Writing a
‘1’ in this register sets the corresponding bit in the Pending register, a ‘0’ leaves the bit unchanged.
Clear_Pending (address ‘interrupt base address + #88’) allows bits to be cleared individually.
Writing a ‘1’ in this register resets the corresponding bit in the Pending register, a ‘0’ leaves the bit
unchanged.
Note, if the CPU wants to write or clear some bits of the Pending register, the interrupts should be
masked (by writing or clearing the Mask register) before writing or clearing the Pending register.
The interrupts can then be unmasked.
Exec register
The Exec register keeps track of the currently executing and pre-empted interrupts. A bit is set
when the CPU starts running code for that interrupt. The highest priority interrupt bit is reset once
the interrupt handler executes a return from interrupt (iret).
Exec
Bit
0
1
2
3
4
Interrupt controller base address + #100
Bit field
Function
Interrupt0Exec
Set to 1 when the CPU starts running code for interrupt 0.
Interrupt1Exec
Set to 1 when the CPU starts running code for interrupt 1.
Interrupt2Exec
Set to 1 when the CPU starts running code for interrupt 2.
Interrupt3Exec
Set to 1 when the CPU starts running code for interrupt 3.
Interrupt4Exec
Set to 1 when the CPU starts running code for interrupt 4.
Read/Write
Table 5.5 Exec register format
The Exec register is mapped onto two additional addresses so that bits can be set or cleared
individually.
Set_Exec (address ‘interrupt base address + #104’) allows bits to be set individually. Writing a ‘1’
in this register sets the corresponding bit in the Exec register, a ‘0’ leaves the bit unchanged.
Clear_Exec (address ‘interrupt base address + #108’) allows bits to be cleared individually. Writing
a ‘1’ in this register resets the corresponding bit in the Exec register, a ‘0’ leaves the bit unchanged.
33/116
®

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]