Registers
CTRL
- Name: Control Register
- Description: This register is only to write.
- Base Address: 0xA000F200
- Offset: 0x0
- Reset Value: 0x00000000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31 |
IRQ_TEST_SET |
W |
0x0 |
Interrupt Test Set. This register sets test interrupt Value:
|
30 |
IRQ_TEST_CLR |
W |
0x0 |
Interrupt Test Clear. This register clears test interrupt (has higher priority than ‘IRQ_TEST_SET’) Value:
|
29:26 |
RSVD |
W |
Reserved bits |
|
25 |
IRQ_PRESENCE_CLR |
W |
0x0 |
Interrupt source presence clear. This register clears interrupt source ‘STAT.IRQ_PRESENCE’. Value:
|
24 |
IRQ_STAT_EC |
W |
0x0 |
Interrupt source state_err clear. This register clears interrupt source ‘STAT.IRQ_STAT_ERR’. Value:
|
23 |
IRQ_DMA_EC |
W |
0x0 |
Interrupt source dma_err clear. This register clears interrupt source ‘STAT.IRQ_DMA_ERR’. Value:
|
22 |
IRQ_RETYR_EC |
W |
0x0 |
Interrupt source retry_err clear. This register clears interrupt source ‘STAT.IRQ_RETYR_ERR’. Value:
|
21 |
IRQ_RX_EC |
W |
0x0 |
Interrupt source rx_err clear. This register clears interrupt source ‘STAT.IRQ_RX_ERR’. Value:
|
20 |
IRQ_DONE_CLR |
W |
0x0 |
Interrupt source done clear. This register clears interrupt source ‘STAT.IRQ_DONE’. Value:
|
19:13 |
RSVD |
W |
Reserved bits |
|
12 |
TX_RETYR_MC |
W |
0x0 |
Transmit Retries Maximum Clear. This register clears ‘STAT.TX_RETRY_MAX’. Value:
|
11:9 |
RSVD |
W |
Reserved bits |
|
8 |
RX_RETYR_MC |
W |
0x0 |
Receive Retries Maximum Clear. This register clears ‘STAT.RX_RETRY_MAX’. Value:
|
7:3 |
RSVD |
W |
Reserved bits |
|
2:0 |
ACTION |
W |
0x0 |
Value:
|
STAT
- Name: Status Register
- Description: This register record interrupt, IO and power status.
- Base Address: 0xA000F200
- Offset: 0x04
- Reset Value: 0x00020000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31 |
RSVD |
R |
Reserved bits |
|
30 |
IRQ_TEST |
R |
0x0 |
Interrupt Test. Test interrupt for connection check. Value:
|
29:26 |
RSVD |
R |
Reserved bits |
|
25 |
IRQ_PRESENCE |
R |
0x0 |
Interrupt Presence. SIM card presence changed. Inserted or removed. Value:
|
24 |
IRQ_STAT_ERR |
R |
0x0 |
Interrupt State Error. Action requested while busy or unsupported transition. Value:
|
23 |
IRQ_DMA_ERR |
R |
0x0 |
Interrupt DMA Error. DMA read/write operation could not be issued. Value:
|
22 |
IRQ_RETRY_ERR |
R |
0x0 |
Interrupt Retry Error. Maximum number of retries exceeded. Value:
|
21 |
IRQ_RX_ERR |
R |
0x0 |
Interrupt RX Error. No or incomplete or unexpected data. Value:
|
20 |
IRQ_DONE |
R |
0x0 |
Interrupt Done. Requested operation has been completed. Value:
|
19:18 |
RSVD |
R |
Reserved bits |
|
17 |
PRESENCE_STAT |
R |
0x1 |
Status of presence IO. Value:
|
16 |
BUSY |
R |
0x0 |
Status of SIM interface. Value:
|
15 |
RSVD |
R |
Reserved bits |
|
14:12 |
TX_RETRY_MAX |
R |
0x0 |
Transmit Retries Maximum. Maximum number of seen transmit retries after error signaling by SIM. |
11 |
RSVD |
R |
Reserved bits |
|
10:8 |
RX_RETRY_MAX |
R |
0x0 |
Receive Retries Maximum. Maximum number of seen receive retries after parity error. |
7 |
RSVD |
R |
Reserved bits |
|
6:4 |
IO_STAT |
R |
0x0 |
IO States. Value:
|
3:0 |
PWR_STAT |
R |
0x0 |
Power States. Value:
|
CLK_CFG
- Name: Clock Configuration Register
- Description: This register configure clock.
- Base Address: 0xA000F200
- Offset: 0x08
- Reset Value: 0x002F0173
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31 |
CLK_STOP_SEL |
RW |
0x0 |
Clock Stop Select. Value of the clock output during stopped clock. Value:
|
30:24 |
RSVD |
R |
Reserved bits |
|
23:16 |
CLK_DIV |
RW |
0x2F |
Clock Division. Divide system clock by this value + 1. |
15:10 |
RSVD |
R |
Reserved bits |
|
9:0 |
ETU_DIV |
RW |
0x173 |
Divide SIM clock by this value+1 to define ETU length. The reset value is the one, needed for the ATR. |
TIMES_CFG
- Name: Times Configuration Register
- Description: This register configures the timing
- Base Address: 0xA000F200
- Offset: 0x10
- Reset Value: 0x006B0000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:30 |
RSVD |
R |
Reserved bits |
|
29:12 |
WAIT_TIME |
RW |
0x6B |
Wait time in [ETU]. Maximum card response time (leading edge to leading edge). |
11:10 |
RSVD |
R |
Reserved bits |
|
9:0 |
GUARD_TIME |
RW |
0x0 |
Guard time in [ETU]. Time between the leading edges of two consecutive characters. |
DATA_CFG
- Name: Data Configuration Register
- Description: This register configures the communication
- Base Address: 0xA000F200
- Offset: 0x14
- Reset Value: 0x00000002
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:7 |
RSVD |
R |
Reserved bits |
|
6:4 |
RETRY_LIMIT |
RW |
0x0 |
Retries Limit. Maximum number of issued retries before giving up. |
3:2 |
RSVD |
R |
Reserved bits |
|
1 |
DETECT_CODING |
RW |
0x1 |
Detect Coding Convention. Automatically detect coding convention during ATR reception. Value:
|
0 |
CODING |
RW |
0x0 |
Coding Convention. Value:
|
ADDR
- Name: Address Register
- Description: This register records current address relative to base_addr.
- Base Address: 0xA000F200
- Offset: 0x18
- Reset Value: 0x00000000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:20 |
RSVD |
R |
Reserved bits |
|
19:2 |
ADDR |
R |
0x0 |
Address. Current address relative to base_addr. |
1:0 |
ADDR_FRAC |
R |
0x0 |
Address Fraction. Byte selection. |
START_ADDR
- Name: Start Address Register
- Description: This register configures read/write memory address. RX and TX buffer has to be aligned to 4 bytes, and buffer address [31:2] = START_ADDR[31:2]
- Base Address: 0xA000F200
- Offset: 0x1c
- Reset Value: 0x00000000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:20 |
BASE_ADDR |
RW |
0x0 |
Base Address. Base Address for RX and TX Buffer. |
19:2 |
START_ADDR |
RW |
0x0 |
Start Address. Start address of RX and TX buffer, relative to base_addr. |
1:0 |
RSVD |
R |
Reserved bits |
RX_END_ADDR
- Name: RX End Register
- Description: This register configures RX data end address
- Base Address: 0xA000F200
- Offset: 0x20
- Reset Value: 0x00000000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:20 | RSVD | R | Reserved bits | |
19:2 | RX_END_ADDR | RW | 0x0 |
RX End Address. End address of receive buffer, relative to base_addr. |
1:0 | RX_END_AF | RW | 0x0 |
RX End Address Fraction. Byte selection. |
TX_END_ADDR
- Name: TX End Register
- Description: This register configures TX data end address
- Base Address: 0xA000F200
- Offset: 0x24
- Reset Value: 0x00000000
Bits | Field Name | RW | Reset | Description |
---|---|---|---|---|
31:20 |
RSVD |
R |
Reserved bits |
|
19:2 |
TX_END_ADDR |
R |
0x0 |
TX End Address. End address of transmit buffer, relative to base_addr. |
1:0 |
TX_END_AF |
R |
0x0 |
TX End Address Fraction. Byte selection. |