
. . . . .
I 2 C M A S T E R / S L A V E I N T E R F A C E
Interrupt Codes
www.digiembedded.com
455
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I n t e r r u p t C o d e s
Interrupts are signaled in the
irq_code
field in the
STATUS_REG
, by providing the
appropriate interrupt code (see “Master/slave interrupt codes” on page 455). The
ARM CPU waits for an interrupt by polling the
STATUS_REG
or checking the
irq
signal.
An interrupt is cleared by reading the
STATUS_REG
, which also forces the
irq
signal
down (minimum one cycle if another interrupt is stored).
Note:
RX_DATA_REG
contains only a received byte if it is accessed after a
RX_DATA
master or slave interrupt is signaled. At all other times, the internal master or slave shift
register is accessed with
RX_DATA_REG
(see “Status Receive Data register” on page 451).
Master/slave
interrupt codes
D12:09
R/W
SFW
0xF
Spike filter width
A default value of 1 is recommended. Available
values are 0–15.
D08:00
R/W
CLREF
0x0
clk_ref[9:1]
The I2C clock on port iic_scl_out is generated
by the system clock divided by the 10-bit value
of clk_ref.
The LSB of clk_ref cannot be programmed, and
is set to 0 internally. The programmed value of
clk_ref[9:1] must be greater than 3.
Bits
Access
Mnemonic
Reset
Description
Code
Name
Master/slave
Description
0x0
NO_IRQ
N/A
No interrupt active
0x1
M_ARBIT_LOST
Master
Arbitration lost; the transfer has to be repeated
0x2
M_NO_ACK
Master
No acknowledge by slave
0x3
M_TX_DATA
Master
TX data required in register
TX_DATA
0x4
M_RX_DATA
Master RX
data available in register
RX_DATA
0x5
M_CMD_ACK
Master
Command acknowledge interrupt
0x6
N/A
N/A
Reserved
0x7
N/A
N/A
Reserved
0x8
S_RX_ABORT
Slave
The transaction is aborted by the master before
the slave performs a
NO_ACK
.
0x9
S_CMD_REQ
Slave
Command request
0xA
x
S_NO_ACK
Slave
No acknowledge by master (
TX_DATA_REG
is
reset)
Содержание NS9215
Страница 1: ...NS9215 Hardware Reference 90000847_C Release date 10 April 2008...
Страница 3: ......
Страница 4: ......
Страница 26: ...26 Hardware Reference NS9215...
Страница 44: ...P I N O U T 26 5 System clock 44 Hardware Reference NS9215 System clock drawing...
Страница 52: ...P I N O U T 26 5 Power and ground 52 Hardware Reference NS9215...
Страница 80: ...I O C O N T ROL M O D U L E Memory Bus Configuration register 80 Hardware Reference NS9215...
Страница 136: ...WOR KI N G W I TH T H E C P U Noncachable instruction fetches 136 Hardware Reference NS9215...
Страница 202: ...S Y S T E M C O N T RO L M OD U L E RTC Module Control register 202 Hardware Reference NS9215...
Страница 260: ...M E MO R Y C O N T ROL L E R StaticMemory Turn Round Delay 0 3 registers 260 Hardware Reference NS9215...
Страница 354: ...E X T E R N A L D M A DMA Peripheral Chip Select register 354 Hardware Reference NS9215...
Страница 362: ...A E S D AT A E N C R Y P T I O N D E C R Y P T I O N M O D U L E CCM mode 362 Hardware Reference NS9215...
Страница 384: ...I O HU B M OD UL E Module Direct Mode TX Data Last FIFO 384 Hardware Reference NS9215 31 March 2008...
Страница 414: ...S E R I A L C ON T RO L M O D U L E U ART UART Modem Status register 414 Hardware Reference NS9215...
Страница 446: ...S E R I A L C ON T RO L M O D U L E S PI SPI timing characteristics 446 Hardware Reference NS9215...
Страница 472: ...R E A L TI M E C L O C K M O D U L E General Status register 472 Hardware Reference NS9215...
Страница 512: ...TI M I NG Clock timing 512 Hardware Reference NS9215...
Страница 514: ...PA CKA GING Processor Dimensions 514 Hardware Reference NS9215 P r o c e s s o r D i m e n s i o n s...
Страница 515: ...PA CKA GING Processor Dimensions www digiembedded com 515...
Страница 516: ...PA CKA GING Processor Dimensions 516 Hardware Reference NS9215...