\n

SC

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x30 byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x38 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection : not protected

Registers

SC_RBR

SC_THR

SC_RFTMR

SC_ETUCR

SC_IER

SC_ISR

SC_TRSR

SC_PINCSR

SC_TMR0

SC_TMR1

SC_TMR2

SC_TDRA

SC_TDRB

SC_CTL

SC_ALTCTL

SC_EGTR


SC_RBR

SC Receiving Buffer Register.
address_offset : 0x0 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SC_RBR SC_RBR read-only 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RBR

RBR : Receive Buffer Register\nBy reading this register, the SC will return an 8-bit received data.
bits : 0 - 7 (8 bit)
access : read-only


SC_THR

SC Transmit Holding Register
address_offset : 0x0 Bytes (0x0)
access : write-only
reset_value : 0x0
alternate_register : SC_RBR
reset_Mask : 0x0

SC_THR SC_THR write-only 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 THR

THR : Transmit Holding Register\nBy writing to this register, the SC will send out an 8-bit data.\nNote: If SC_CTL[SC_CEN] not enabled, this register cannot be programmed.
bits : 0 - 7 (8 bit)
access : write-only


SC_RFTMR

SC Receiver Buffer Time-out Register
address_offset : 0x10 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_RFTMR SC_RFTMR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RFTM

RFTM : SC Receiver Buffer Time-out Register (ETU Based) Note1: The counter unit is ETU based and the interval of time-out is RFTM + 0.5 Note2: Filling all 0 to this field indicates to disable this function.
bits : 0 - 8 (9 bit)
access : read-write


SC_ETUCR

SC ETU Control Register
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_ETUCR SC_ETUCR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ETU_RDIV COMPEN_EN

ETU_RDIV : ETU Rate Divider\nThe field indicates the clock rate divider.\nThe real ETU is ETU_RDIV + 1.\nNote1: Software can configure this field, but this field must be greater than 0x04.\nNote2: Software can configure this field, but if the error rate is equal to 2%, this field must be greater than 0x040.
bits : 0 - 11 (12 bit)
access : read-write

COMPEN_EN : Compensation Mode Enable\nThis bit enables clock compensation function. When this bit enabled, hardware will alternate between n-1 clock cycles and n clock cycles, where n is the value to be written into the ETU_RDIV register.\n
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compensation function Disabled

#1 : 1

Compensation function Enabled

End of enumeration elements list.


SC_IER

SC Interrupt Enable Register
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_IER SC_IER read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDA_IE TBE_IE TERR_IE TMR0_IE TMR1_IE TMR2_IE BGT_IE CD_IE INIT_IE RTMR_IE ACON_ERR_IE

RDA_IE : Receive Data Reach Interrupt Enable\nThis field is used for received data reaching trigger level (SC_CTL [RX_FTRI_LEV]) interrupt enable.\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receive data reach trigger level interrupt Disabled

#1 : 1

Receive data reach trigger level interrupt Enabled

End of enumeration elements list.

TBE_IE : Transmit Buffer Empty Interrupt Enable\nThis field is used for transmit buffer empty interrupt enable.\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transmit buffer empty interrupt Disabled

#1 : 1

Transmit buffer empty interrupt Enabled

End of enumeration elements list.

TERR_IE : Transfer Error Interrupt Enable\nThis field is used for transfer error interrupt enable. The transfer error states is at SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F), receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_REERR) and transmitter retry over limit error (TX_OVER_REERR).\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transfer error interrupt Disabled

#1 : 1

Transfer error interrupt Enabled

End of enumeration elements list.

TMR0_IE : Timer0 Interrupt Enable\nThis field is used for TMR0 interrupt enable.\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer0 interrupt Disabled

#1 : 1

Timer0 interrupt Enabled

End of enumeration elements list.

TMR1_IE : Timer1 Interrupt Enable\nThis field is used for TMR1 interrupt enable.\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer1 interrupt Disabled

#1 : 1

Timer1 interrupt Enabled

End of enumeration elements list.

TMR2_IE : Timer2 Interrupt Enable\nThis field is used for TMR2 interrupt enable.\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer2 interrupt Disabled

#1 : 1

Timer2 interrupt Enabled

End of enumeration elements list.

BGT_IE : Block Guard Time Interrupt Enable\nThis field is used for block guard time interrupt enable.\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Block guard time Disabled

#1 : 1

Block guard time Enabled

End of enumeration elements list.

CD_IE : Card Detect Interrupt Enable\nThis field is used for card detect interrupt enable. The card detect status register is SC_PINCSR[CD_INS_F] and SC_PINCSR[CD_REM_F].\n
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Card detect interrupt Disabled

#1 : 1

Card detect interrupt Enabled

End of enumeration elements list.

INIT_IE : Initial End Interrupt Enable\nThis field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt enable.\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Initial end interrupt Disabled

#1 : 1

Initial end interrupt Enabled

End of enumeration elements list.

RTMR_IE : Receiver Buffer Time-out Interrupt Enable \nThis field is used for receiver buffer time-out interrupt enable.\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receiver buffer time-out interrupt Disabled

#1 : 1

Receiver buffer time-out interrupt Enabled

End of enumeration elements list.

ACON_ERR_IE : Auto Convention Error Interrupt Enable \nThis field is used for auto-convention error interrupt enable.\n
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Auto-convention error interrupt Disabled

#1 : 1

Auto-convention error interrupt Enabled

End of enumeration elements list.


SC_ISR

SC Interrupt Status Register
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_ISR SC_ISR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDA_IS TBE_IS TERR_IS TMR0_IS TMR1_IS TMR2_IS BGT_IS CD_IS INIT_IS RTMR_IS ACON_ERR_IS

RDA_IS : Receive Data Reach Interrupt Status Flag (Read Only)\nThis field is used for received data reaching trigger level (SC_CTL[RX_FTRI_LEV]) interrupt status flag.\nNote: This field is the status flag of received data reaching SC_CTL [RX_FTRI_LEV]. If software reads data from SC_RBR and receiver pointer is less than SC_CTL [RX_FTRI_LEV], this bit will be cleared automatically.
bits : 0 - 0 (1 bit)
access : read-only

TBE_IS : Transmit Buffer Empty Interrupt Status Flag (Read Only)\nThis field is used for transmit buffer empty interrupt status flag.\nNote: This field is the status flag of transmit buffer empty state. If software wants to clear this bit, software must write data to SC_THR register and then this bit will be cleared automatically.
bits : 1 - 1 (1 bit)
access : read-only

TERR_IS : Transfer Error Interrupt Status Flag (Read Only) This field is used for transfer error interrupt status flag. The transfer error status is at the SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F) and receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_REERR) and transmitter retry over limit error (TX_OVER_REERR). Note: This field is the status flag of SC_TRSR[RX_EBR_F], SC_TRSR[RX_EFR_F], SC_TRSR[RX_EPA_F], SC_TRSR[RX_OVER_F], SC_TRSR[TX_OVER_F], SC_TRSR[RX_OVER_REERR] or SC_TRSR[TX_OVER_REERR]. So if software wants to clear this bit, software must write 1 to each field.
bits : 2 - 2 (1 bit)
access : read-only

TMR0_IS : Timer0 Interrupt Status Flag (Read Only) This field is used for TMR0 interrupt status flag. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 3 - 3 (1 bit)
access : read-only

TMR1_IS : Timer1 Interrupt Status Flag (Read Only) This field is used for TMR1 interrupt status flag. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 4 - 4 (1 bit)
access : read-only

TMR2_IS : Timer2 Interrupt Status Flag (Read Only) This field is used for TMR2 interrupt status flag. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 5 - 5 (1 bit)
access : read-only

BGT_IS : Block Guard Time Interrupt Status Flag (Read Only) This field is used for block guard time interrupt status flag. Note1: This bit is valid when SC_ALTCTL[RX_BGT_EN] is enabled. Note2: This bit is read only, but it can be cleared by writing 1 to it.
bits : 6 - 6 (1 bit)
access : read-only

CD_IS : Card Detect Interrupt Status Flag (Read Only)\nNote: If software wants to clear this field, software must clear SC_PINCSR [CD_INS_F] and SC_PINCSR [CD_REM_F].
bits : 7 - 7 (1 bit)
access : read-only

INIT_IS : Initial End Interrupt Status Flag (Read Only) This field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt status flag. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 8 - 8 (1 bit)
access : read-only

RTMR_IS : Receiver Buffer Time-out Interrupt Status Flag (Read Only)\nThis field is used for receiver buffer time-out interrupt status flag.\nNote: This field is the status flag of receiver buffer time-out state. If software wants to clear this bit, software must read the receiver buffer remaining data by reading SC_RBR register,
bits : 9 - 9 (1 bit)
access : read-only

ACON_ERR_IS : Auto Convention Error Interrupt Status Flag (Read Only) This field indicates auto convention sequence error. If the received TS at ATR state is not 0x3B or 0x3F, this bit will be set. Note: This bit is read only, but can be cleared by writing 1 to it.
bits : 10 - 10 (1 bit)
access : read-only


SC_TRSR

SC Transfer Status Register
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_TRSR SC_TRSR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RX_OVER_F RX_EMPTY_F RX_FULL_F RX_EPA_F RX_EFR_F RX_EBR_F TX_OVER_F TX_EMPTY_F TX_FULL_F RX_POINT_F RX_REERR RX_OVER_REERR RX_ATV TX_POINT_F TX_REERR TX_OVER_REERR TX_ATV

RX_OVER_F : RX Overflow Error Status Flag (Read Only) This bit is set when RX buffer overflow. If the number of received bytes is greater than Rx Buffer size (4 bytes), this bit will be set. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 0 - 0 (1 bit)
access : read-only

RX_EMPTY_F : Receiver Buffer Empty Status Flag(Read Only) This bit indicates RX buffer empty or not. When the last byte of RX buffer has been read by CPU, hardware set this bit to 1 . It will be cleared by hardware when SC receives any new data.
bits : 1 - 1 (1 bit)
access : read-only

RX_FULL_F : Receiver Buffer Full Status Flag (Read Only)\nThis bit indicates RX buffer full or not.\nThis bit is set when RX pointer is equal to 4, otherwise it is cleared by hardware.
bits : 2 - 2 (1 bit)
access : read-only

RX_EPA_F : Receiver Parity Error Status Flag (Read Only) This bit is set to 1 whenever the received character does not have a valid parity bit . Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: If CPU sets receiver retries function by setting SC_CTL[RX_ERETRY_EN] register, hardware will not set this flag.
bits : 4 - 4 (1 bit)
access : read-only

RX_EFR_F : Receiver Frame Error Status Flag (Read Only) This bit is set to 1 whenever the received character does not have a valid STOP bit (that is, the STOP bit following the last data bit or parity bit is detected as logic 0). Note1: This bit is read only, but can be cleared by writing 1 to it. Note2: If CPU sets receiver retries function by setting SC_CTL[RX_ERETRY_EN] register, hardware will not set this flag.
bits : 5 - 5 (1 bit)
access : read-only

RX_EBR_F : Receiver Break Error Status Flag (Read Only) This bit is set to 1 whenever the received data input (RX) held in the spacing state (logic 0 ) is longer than a full word transmission time (that is, the total time of start bit + data bits + parity + stop bits). . Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: If CPU sets receiver retries function by setting SC_CTL[RX_ERETRY_EN] register, hardware will not set this flag.
bits : 6 - 6 (1 bit)
access : read-only

TX_OVER_F : TX Overflow Error Interrupt Status Flag (Read Only) If TX buffer is full, an additional write to SC_THR will cause this bit be set to 1 by hardware. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 8 - 8 (1 bit)
access : read-only

TX_EMPTY_F : Transmit Buffer Empty Status Flag (Read Only)\nThis bit indicates TX buffer empty or not.\nWhen the last byte of TX buffer has been transferred to Transmitter Shift Register, hardware sets this bit high. It will be cleared when writing data into SC_THR (TX buffer not empty).
bits : 9 - 9 (1 bit)
access : read-only

TX_FULL_F : Transmit Buffer Full Status Flag (Read Only)\nThis bit indicates TX buffer full or not.\nThis bit is set when TX pointer is equal to 4, otherwise is cleared by hardware.
bits : 10 - 10 (1 bit)
access : read-only

RX_POINT_F : Receiver Buffer Pointer Status Flag (Read Only)\nThis field indicates the RX buffer pointer status flag. When SC receives one byte from external device, RX_POINT_F increases one. When one byte of RX buffer is read by CPU, RX_POINT_F decreases one.
bits : 16 - 17 (2 bit)
access : read-only

RX_REERR : Receiver Retry Error (Read Only) This bit is set by hardware when RX has any error and retries transfer. Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2 This bit is a flag and cannot generate any interrupt to CPU. Note3: If CPU enables receiver retry function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F).
bits : 21 - 21 (1 bit)
access : read-only

RX_OVER_REERR : Receiver Over Retry Error (Read Only) This bit is set by hardware when RX transfer error retry over retry number limit. Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: If CPU enables receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F).
bits : 22 - 22 (1 bit)
access : read-only

RX_ATV : Receiver In Active Status Flag (Read Only)\nThis bit is set by hardware when RX transfer is in active.\nThis bit is cleared automatically when RX transfer is finished.
bits : 23 - 23 (1 bit)
access : read-only

TX_POINT_F : Transmit Buffer Pointer Status Flag (Read Only)\nThis field indicates the TX buffer pointer status flag. When CPU writes data into SC_THR, TX_POINT_F increases one. When one byte of TX Buffer is transferred to transmitter shift register, TX_POINT_F decreases one.
bits : 24 - 25 (2 bit)
access : read-only

TX_REERR : Transmitter Retry Error (Read Only) This bit is set by hardware when transmitter re-transmits. Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: This bit is a flag and cannot generate any interrupt to CPU.
bits : 29 - 29 (1 bit)
access : read-only

TX_OVER_REERR : Transmitter Over Retry Error (Read Only) This bit is set by hardware when transmitter re-transmits over retry number limitation. Note: This bit is read only, but it can be cleared by writing 1 to it.
bits : 30 - 30 (1 bit)
access : read-only

TX_ATV : Transmit In Active Status Flag (Read Only)\nThis bit is set by hardware when TX transfer is in active and the STOP bit of the last byte has not been transmitted.\nThis bit is cleared automatically when TX transfer is finished or the last byte transmission has completed.
bits : 31 - 31 (1 bit)
access : read-only


SC_PINCSR

SC Pin Control State Register
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_PINCSR SC_PINCSR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 POW_EN SC_RST CD_REM_F CD_INS_F CD_PIN_ST CLK_KEEP ADAC_CD_EN SC_OEN_ST SC_DATA_O CD_LEV POW_INV SC_DATA_I_ST

POW_EN : SC_POW_EN Pin Signal\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

SC_PWR pin status is low

#1 : 1

SC_PWR pin status is high

End of enumeration elements list.

SC_RST : SC_RST Pin Signal\nThis bit is the pin status of SC_RST but user can drive SC_RST pin to high or low by setting this bit.\nWrite this field to drive SC_RST pin.\nNote: When operating at activation, warm reset or deactivation mode, this bit will be changed automatically. So don't fill this field when operating in these modes.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Drive SC_RST pin to low.\nSC_RST pin status is low

#1 : 1

Drive SC_RST pin to high.\nSC_RST pin status is high

End of enumeration elements list.

CD_REM_F : Card Detect Removal Status Of SC_CD Pin (Read Only) This bit is set whenever a card has been removed. Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: Card detect engine will start after SC_CTL[SC_CEN] set.
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

No effect

#1 : 1

Card removed

End of enumeration elements list.

CD_INS_F : Card Detect Insert Status Of SC_CD Pin (Read Only) This bit is set whenever card has been inserted. Note1: This bit is read only, but it can be cleared by writing 1 to it. Note2: The card detect engine will start after SC_CTL[SC_CEN] set.
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

#0 : 0

No effect

#1 : 1

Card insert

End of enumeration elements list.

CD_PIN_ST : Card Detect Status Of SC_CD Pin Status (Read Only)\nThis bit is the pin status flag of SC_CD\n
bits : 4 - 4 (1 bit)
access : read-only

Enumeration:

#0 : 0

The SC_CD pin state at low

#1 : 1

The SC_CD pin state at high

End of enumeration elements list.

CLK_KEEP : SC Clock Enable\nNote: When operating at activation, warm reset or deactivation mode, this bit will be changed automatically. So don't fill this field when operating in these modes.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

SC clock generation Disabled

#1 : 1

SC clock always keeps free running

End of enumeration elements list.

ADAC_CD_EN : Auto Deactivation When Card Removal\nNote: When the card is removed, hardware will stop any process and then do deactivation sequence (if this bit be setting). If this process completes. Hardware will generate an initial end interrupt to CPU.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Auto deactivation Disabled when hardware detected the card removal

#1 : 1

Auto deactivation Enabled when hardware detected the card removal

End of enumeration elements list.

SC_OEN_ST : SC Data Output Enable Pin Status (Read Only)\nThis bit is the output enable status of the SC_DAT pin.\n
bits : 8 - 8 (1 bit)
access : read-only

Enumeration:

#0 : 0

The SC_DAT pin state is output

#1 : 1

The SC_DAT pin state is not output

End of enumeration elements list.

SC_DATA_O : SC Data Output Pin \nThis bit is the pin status of SC_DAT but user can drive SC_DAT pin to high or low by setting this bit.\nWrite this field to drive SC_DAT pin.\nNote: When SC is at activation, warm reset or deactivation mode, this bit will be changed automatically. So don't fill this field when SC is in these modes.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Drive SC_DAT pin to low.\nSC_DAT pin status is low

#1 : 1

Drive SC_DAT pin to high.\nSC_DAT pin status is high

End of enumeration elements list.

CD_LEV : Card Detect Level\n\nNote: Software must select card detect level before Smart Card engine is enabled.
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

When hardware detects the card detect pin from high to low, it indicates a card is detected

#1 : 1

When hardware detects the card detect pin from low to high, it indicates a card is detected

End of enumeration elements list.

POW_INV : SC_PWR Pin Inverse\n
bits : 11 - 11 (1 bit)
access : read-write

SC_DATA_I_ST : SC Data Pin Status (Read Only)\nThis bit is the pin status of SC_DAT\n
bits : 16 - 16 (1 bit)
access : read-only

Enumeration:

#0 : 0

The SC_DAT pin is low

#1 : 1

The SC_DAT pin is high

End of enumeration elements list.


SC_TMR0

SC Internal Timer Control Register 0
address_offset : 0x28 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_TMR0 SC_TMR0 read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT MODE

CNT : Timer 0 Counter Value Register (ETU Based)\nThis field indicates the internal timer operation values.
bits : 0 - 23 (24 bit)
access : read-write

MODE : Timer 0 Operation Mode Selection\n
bits : 24 - 27 (4 bit)
access : read-write


SC_TMR1

SC Internal Timer Control Register 1
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_TMR1 SC_TMR1 read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT MODE

CNT : Timer 1 Counter Value Register (ETU Based)\nThis field indicates the internal timer operation values.
bits : 0 - 7 (8 bit)
access : read-write

MODE : Timer 1 Operation Mode Selection\n
bits : 24 - 27 (4 bit)
access : read-write


SC_TMR2

SC Internal Timer Control Register 2
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_TMR2 SC_TMR2 read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT MODE

CNT : Timer 2 Counter Value Register (ETU Based)\nThis field indicates the internal timer operation values.
bits : 0 - 7 (8 bit)
access : read-write

MODE : Timer 2 Operation Mode Selection\n
bits : 24 - 27 (4 bit)
access : read-write


SC_TDRA

SC Timer Current Data Register A
address_offset : 0x38 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SC_TDRA SC_TDRA read-only 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TDR0

TDR0 : Timer0 Current Data Register (Read Only)\nThis field indicates the current count values of timer0.
bits : 0 - 23 (24 bit)
access : read-only


SC_TDRB

SC Timer Current Data Register B
address_offset : 0x3C Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SC_TDRB SC_TDRB read-only 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TDR1 TDR2

TDR1 : Timer1 Current Data Register (Read Only)\nThis field indicates the current count values of timer1.
bits : 0 - 7 (8 bit)
access : read-only

TDR2 : Timer2 Current Data Register (Read Only)\nThis field indicates the current count values of timer2.
bits : 8 - 15 (8 bit)
access : read-only


SC_CTL

SC Control Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_CTL SC_CTL read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SC_CEN DIS_RX DIS_TX AUTO_CON_EN CON_SEL RX_FTRI_LEV BGT TMR_SEL SLEN RX_ERETRY RX_ERETRY_EN TX_ERETRY TX_ERETRY_EN CD_DEB_SEL

SC_CEN : SC Engine Enable Setting this bit to 1 will enable SC operation. If this bit is cleared, SC will force all transition to IDLE state.
bits : 0 - 0 (1 bit)
access : read-write

DIS_RX : RX Transition Disable\nNote: If AUTO_CON_EN enabled, this fields must be ignored.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receiver Enabled

#1 : 1

Receiver Disabled

End of enumeration elements list.

DIS_TX : TX Transition Disable\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transceiver Enabled

#1 : 1

Transceiver Disabled

End of enumeration elements list.

AUTO_CON_EN : Auto Convention Enable\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Auto-convention Disabled

#1 : 1

Auto-convention Enabled

End of enumeration elements list.

CON_SEL : Convention Selection\nNote: If AUTO_CON_EN enabled, this fields must be ignored.
bits : 4 - 5 (2 bit)
access : read-write

Enumeration:

#00 : 0

Direct convention

#01 : 1

Reserved

#10 : 2

Reserved

#11 : 3

Inverse convention

End of enumeration elements list.

RX_FTRI_LEV : Rx Buffer Trigger Level \n
bits : 6 - 7 (2 bit)
access : read-write

BGT : Block Guard Time (BGT)\nIn TX mode, hardware will auto hold off first character until BGT has elapsed regardless of the TX data.\n\nIn RX mode, software can enable SC_ALTCTL [RX_BGT_EN] to detect the first coming character timing. If the incoming data timing less than BGT, an interrupt will be generated.\n\nNote: The real block guard time is BGT + 1.
bits : 8 - 12 (5 bit)
access : read-write

TMR_SEL : Timer Selection \n
bits : 13 - 14 (2 bit)
access : read-write

SLEN : Stop Bit Length\nThis field indicates the length of stop bit.\nNote: The default stop bit length is 2.
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

The stop bit length is 2 ETU

#1 : 1

The stop bit length is 1 ETU

End of enumeration elements list.

RX_ERETRY : RX Error Retry Count Register\nThis field indicates the maximum number of receiver retries that are allowed when parity error has occurred.\nNote1: The real maximum retry number is RX_ERETRY + 1, so 8 is the maximum retry number.\nNote2: This field cannot be changed when RX_ERETRY_EN enabled. The change flow is to disable RX_ETRTRY_EN first and then fill new retry value.
bits : 16 - 18 (3 bit)
access : read-write

RX_ERETRY_EN : RX Error Retry Enable Register\nThis bit enables receiver retry function when parity error has occurred.\nNote: Software must fill RX_ERETRY value before enabling this bit.
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

RX error retry function Disabled

#1 : 1

RX error retry function Enabled

End of enumeration elements list.

TX_ERETRY : TX Error Retry Count Register\nThis field indicates the maximum number of transmitter retries that are allowed when parity error has occurred.\nNote1: The real retry number is TX_ERETRY + 1, 8 is the maximum retry number.\nNote2: This field cannot be changed when TX_ERETRY_EN enabled. The change flow is to disable TX_ETRTRY_EN first and then fill new retry value.
bits : 20 - 22 (3 bit)
access : read-write

TX_ERETRY_EN : TX Error Retry Enable Register\nThis bit enables transmitter retry function when parity error has occurred.\nNote: Software must fill TX_ERETRY value before enabling this bit.
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

TX error retry function Disabled

#1 : 1

TX error retry function Enabled

End of enumeration elements list.

CD_DEB_SEL : Card Detect De-bounce Select Register\n
bits : 24 - 25 (2 bit)
access : read-write


SC_ALTCTL

SC Alternate Control State Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_ALTCTL SC_ALTCTL read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TX_RST RX_RST DACT_EN ACT_EN WARST_EN TMR0_SEN TMR1_SEN TMR2_SEN INIT_SEL RX_BGT_EN TMR0_ATV TMR1_ATV TMR2_ATV

TX_RST : TX Software Reset\nWhen TX_RST is set, all the bytes in the transmit buffer and TX internal state machine will be cleared.\nNote: This bit will be auto cleared and it needs at least 3 SC peripheral clock cycles.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset the TX internal state machine and pointers

End of enumeration elements list.

RX_RST : Rx Software Reset\nWhen RX_RST is set, all the bytes in the receiver buffer and Rx internal state machine will be cleared.\nNote: This bit will be auto cleared and it needs at least 3 SC peripheral clock cycles.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset the Rx internal state machine and pointers

End of enumeration elements list.

DACT_EN : Deactivation Sequence Generator Enable This bit enables SC controller to initiate the card by deactivation sequence Note1: When the deactivation sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to 1 . Note2: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL[RX_RST] to 1. So don't fill this bit, TX_RST, and RX_RST at the same time. Note3: If SC_CTL [SC_CEN] not enabled, this field cannot be programmed.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Deactivation sequence generator Enabled

End of enumeration elements list.

ACT_EN : Activation Sequence Generator Enable This bit enables SC controller to initiate the card by activation sequence Note1: When the activation sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to 1 . Note2: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL[RX_RST] to 1. So don't fill this bit, TX_RST, and RX_RST at the same time. Note3: If SC_CTL[SC_CEN] not enabled, this field cannot be programmed.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Activation sequence generator Enabled

End of enumeration elements list.

WARST_EN : Warm Reset Sequence Generator Enable This bit enables SC controller to initiate the card by warm reset sequence Note1: When the warm reset sequence completed, this bit will be cleared automatically and the SC_ISR[INIT_IS] will be set to 1 . Note2: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL[RX_RST] to 1. So don't fill this bit, TX_RST, and RX_RST at the same time. Note3: If SC_CTL[SC_CEN] not enabled, this field cannot be programmed.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Warm reset sequence generator Enabled

End of enumeration elements list.

TMR0_SEN : Internal Timer0 Start Enable This bit enables Timer0 to start counting. Software can fill 0 to stop it and set 1 to reload and count. Note3: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL[RX_RST] to 1. So don't fill this bit, TX_RST and RX_RST at the same time. Note4: If SC_CTL [SC_CEN] not enabled, this field cannot be programmed.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops counting

#1 : 1

Starts counting

End of enumeration elements list.

TMR1_SEN : Internal Timer1 Start Enable This bit enables Timer1 to start counting. Software can fill 0 to stop it and set 1 to reload and count. Note3: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL[RX_RST] to 1, so don't fill this bit, TX_RST, and RX_RST at the same time. Note4: If SC_CTL [SC_CEN] not enabled, this field cannot be programmed.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops counting

#1 : 1

Starts counting

End of enumeration elements list.

TMR2_SEN : Internal Timer2 Start Enable This bit enables Timer2 to start counting. Software can fill 0 to stop it and set 1 to reload and count. Note3: This field will be cleared when software set SC_ALTCTL[TX_RST] or SC_ALTCTL [RX_RST] to 1. So don't fill this bit, TX_RST, and RX_RST at the same time. Note4: If SC_CTL [SC_CEN] not enabled, this field cannot be programmed.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops counting

#1 : 1

Starts counting

End of enumeration elements list.

INIT_SEL : Initial Timing Selection\n
bits : 8 - 9 (2 bit)
access : read-write

RX_BGT_EN : Check Receiver Block Guard Time Function Enable\n
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Check receiver block guard time function Disabled

#1 : 1

Check receiver block guard time function Enabled

End of enumeration elements list.

TMR0_ATV : Internal Timer0 Active State (Read Only)\nThis bit indicates the Timer0 counter status.\n
bits : 13 - 13 (1 bit)
access : read-only

Enumeration:

#0 : 0

Timer0 is not active

#1 : 1

Timer0 is active

End of enumeration elements list.

TMR1_ATV : Internal Timer1 Active State (Read Only)\nThis bit indicates the Timer1 counter status.\n
bits : 14 - 14 (1 bit)
access : read-only

Enumeration:

#0 : 0

Timer1 is not active

#1 : 1

Timer1 is active

End of enumeration elements list.

TMR2_ATV : Internal Timer2 Active State (Read Only)\nThis bit indicates the Timer2 counter status.\n
bits : 15 - 15 (1 bit)
access : read-only

Enumeration:

#0 : 0

Timer2 is not active

#1 : 1

Timer2 is active

End of enumeration elements list.


SC_EGTR

SC Extend Guard Time Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SC_EGTR SC_EGTR read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 EGT

EGT : Extended Guard Time\nThis field indicates the extended guard time value.\n\nNote: The counter is ETU based and the real extended guard time is EGT.
bits : 0 - 7 (8 bit)
access : read-write



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.