よくある質問
- M051 ベースシリーズ(95)
- M0518シリーズ(97)
- M0519シリーズ(43)
- M0564 シリーズ(1)
- ミニ 51 ベースシリーズ(90)
- ナノ 100/102 ベースシリーズ(101)
- Nano103 ベースシリーズ(10)
- ナノ 110/112 LCD シリーズ(100)
- ナノ 120 USB シリーズ(111)
- ナノ 130 アドバンストシリーズ(110)
- NUC029 シリーズ(94)
- NUC100/200 アドバンストシリーズ(102)
- NUC120/122/123/220 USB シリーズ(116)
- NUC121/125シリーズ(1)
- NUC126 USB シリーズ(2)
- NUC130/230 CAN シリーズ(103)
- NUC131/NUC1311 CAN シリーズ(98)
- NUC140/240 コネクティビティシリーズ(114)
Häufig gestellte Fragen
When to use GPIO interrupt and external interrupt? Datum:2018-01-16
It takes different time for the GPIO interrupt and external interrupt to find trigger sources. Therefore, external interrupts are used in special urgent events, and a set of GPIO interrupt is shared in common events.
In the M051, for example, the 16 pins of P0 [7: 0] and P1 [7: 0] share the GP01_INT interrupt handler. Polling is needed to find the trigger source when an interrupt occurs, which takes more time. EINT0 is only triggered by P3.2 and thus does not require polling, which relatively saves time.
Table 1 M051Interrupt Mapping Table
|
Interrupt Name |
Interrupt Description |
|
EINT0 |
External signal interrupt from P3.2 pin |
|
GP01_INT |
External signal interrupt from P0[7:0] / P1[7:0] |
| Produkte: | Mikrocontroller ,8-bit-8051-MCUs ,Arm Cortex-M0-MCUs ,Arm Cortex-M4-MCUs |
|---|---|
| Applikationen: | |
| Funktion: | Peripherals,ARM,Interrupt,I/O,External Interrupt,GPIO |