Electronic Components Datasheet Search
  English  ▼

X  

SN8F2255B Datasheet(PDF) 69 Page - SONiX Technology Company

Part # SN8F2255B
Description  8-Bit Micro-Controller
PDF  133 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SONIX [SONiX Technology Company]
Direct Link  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8F2255B Datasheet(HTML) 69 Page - SONiX Technology Company

Back Button SN8F2255B Datasheet HTML 65Page - SONiX Technology Company SN8F2255B Datasheet HTML 66Page - SONiX Technology Company SN8F2255B Datasheet HTML 67Page - SONiX Technology Company SN8F2255B Datasheet HTML 68Page - SONiX Technology Company SN8F2255B Datasheet HTML 69Page - SONiX Technology Company SN8F2255B Datasheet HTML 70Page - SONiX Technology Company SN8F2255B Datasheet HTML 71Page - SONiX Technology Company SN8F2255B Datasheet HTML 72Page - SONiX Technology Company SN8F2255B Datasheet HTML 73Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 69 / 133 page
background image
SN8F2250B Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 69
Version 1.1
6.14 MULTI-INTERRUPT OPERATION
Under certain condition, the software designer uses more than one interrupt requests. Processing multi-interrupt
request requires setting the priority of the interrupt requests. The IRQ flags of interrupts are controlled by the interrupt
event. Nevertheless, the IRQ flag “1” doesn’t mean the system will execute the interrupt vector. In addition, which
means the IRQ flags can be set “1” by the events without enable the interrupt. Once the event occurs, the IRQ will be
logic “1”. The IRQ and its trigger event relationship is as the below table.
Interrupt Name
Trigger Event Description
P00IRQ
P0.0 trigger controlled by PEDGE
T0IRQ
T0C overflow
T1IRQ
T1C overflow
USBIRQ
USB process finished
WAEKIRQ
I/O port0 & port1 wakeup MCU
SIOIRQ
SIO process finished
For multi-interrupt conditions, two things need to be taking care of. One is to set the priority for these interrupt requests.
Two is using IEN and IRQ flags to decide which interrupt to be executed. Users have to check interrupt control bit and
interrupt request flag in interrupt routine.
Example: Check the interrupt request under multi-interrupt operation
ORG
8
; Interrupt vector
JMP
INT_SERVICE
INT_SERVICE:
…
; Push routine to save ACC and PFLAG to buffers.
INTP00CHK:
; Check INT0 interrupt request
B0BTS1
FP00IEN
; Check P00IEN
JMP
INTT0CHK
; Jump check to next interrupt
B0BTS0
FP00IRQ
; Check P00IRQ
JMP
INTP00
INTT0CHK:
; Check T0 interrupt request
B0BTS1
FT0IEN
; Check T0IEN
JMP
INTT1CHK
; Jump check to next interrupt
B0BTS0
FT0IRQ
; Check T0IRQ
JMP
INTT0
; Jump to T0 interrupt service routine
INTT1CHK:
; Check T1 interrupt request
B0BTS1
FT1IEN
; Check T1IEN
JMP
INTTC1CHK
; Jump check to next interrupt
B0BTS0
FT1IRQ
; Check T1IRQ
JMP
INTT1
; Jump to T1 interrupt service routine
INTUSBCHK:
; Check USB interrupt request
B0BTS1
FUSBIEN
; Check USBIEN
JMP
INTWAKECHK
; Jump check to next interrupt
B0BTS0
FUSBIRQ
; Check USBIRQ
JMP
INTUSB
; Jump to USB interrupt service routine
INTWAKECHK:
; Check USB interrupt request
B0BTS1
FWAKEIEN
; Check WAKEIEN
JMP
INTSIOCHK
; Jump check to next interrupt
B0BTS0
FWAKEIRQ
; Check WAKEIRQ
JMP
INTWAKEUP
; Jump to WAKEUP interrupt service routine
INTSIOCHK:
; Check SIO interrupt request
B0BTS1
FSIOIEN
; Check SIOIEN
JMP
INT_EXIT
; Jump check to next interrupt
B0BTS0
FSIOIRQ
; Check SIOIRQ
JMP
INTSIO
; Jump to SIO interrupt service routine
INT_EXIT:
…
; Pop routine to load ACC and PFLAG from buffers.
RETI
; Exit interrupt vector



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com