поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PSOC датащи(PDF) 47 Page - Cypress Semiconductor

номер детали PSOC
подробное описание детали  8-Bit Programmable System-on-Chip (PSoC?? Microcontrollers
PDF  148 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  CYPRESS [Cypress Semiconductor]
домашняя страница  http://www.cypress.com
Logo CYPRESS - Cypress Semiconductor

PSOC датащи(HTML) 47 Page - Cypress Semiconductor

Back Button PSOC Datasheet HTML 43Page - Cypress Semiconductor PSOC Datasheet HTML 44Page - Cypress Semiconductor PSOC Datasheet HTML 45Page - Cypress Semiconductor PSOC Datasheet HTML 46Page - Cypress Semiconductor PSOC Datasheet HTML 47Page - Cypress Semiconductor PSOC Datasheet HTML 48Page - Cypress Semiconductor PSOC Datasheet HTML 49Page - Cypress Semiconductor PSOC Datasheet HTML 50Page - Cypress Semiconductor PSOC Datasheet HTML 51Page - Cypress Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 47 / 148 page
background image
Interrupts
September 5, 2002
Document #: 38-12010 CY Rev. ** CMS Rev. 3.20
47
8.6
GPIO Interrupt
GPIO Interrupts are polarity configurable and pin-wise
maskable (within each Port’s pin configuration registers).
They all share the same interrupt priority and vector.
Any general purpose I/O can be used as an interrupt
source. The GPIO bit in the General Interrupt Mask Reg-
ister (INT_MSK0) must be set to enable pin interrupts, as
well as the enable bits for each pin, which are located in
the Port x Interrupt Enable Registers (PRTxIE). There
are user selectable options to generate an interrupt on 1)
any change from the last read state, 2) rising edge, and
3) falling edge.
When Interrupt on Change is selected, the state of the
GPIO pin is stored when the port is read. Changes from
this state will then assert the interrupt, if enabled.
For a GPIO interrupt to occur, the following steps must
be taken:
1.
The pin Drive Mode must be set so the pin can be
an input.
2.
The pin must be enabled to generate an interrupt by
setting the appropriate bit in the Port interrupt
Enable Register (PRTxIE).
3.
The edge type for the interrupt must be set in the
Port Interrupt Control 0 and Control 1 Registers
(PRTxIC0 and PRTxIC1). Edge type must be set to
a value other than 00.
4.
The GPIO bit must be set in the General Interrupt
Mask Register (INT_MSK0).
5.
The Global Interrupt Enable bit must be set.
6.
Because the GPIO interrupts all share the same
interrupt vector, the source for the GPIO interrupt
must be cleared before any other GPIO interrupt will
occur (i.e., the OR gate in FigureTitle 11 “ors” all of
the INTOUTn signals together). If any of the
INTOUTn signals are high, the flip-flop in FigureTitle
11 will not see a rising edge and no IRQ will occur.
Figure 11: GPIO Interrupt Enable Diagram
R
D
IRQ
To Priority
Decode Logic
GPIO Int Enable
BIT S, INT_MSK0
Q
All GPIO INTOUTs
Int Logic
GPIO BIT IE
PORTX IE Register
(PRT0IE...PRT5IE)
INTOUTn
GPIO Cell
PIN
“1”
OR



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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