Register definitions for Rc663. More...

Fifo Registers | |
| #define | PHHAL_HW_SAM_RC663_REG_FIFOCONTROL 0x02U |
| FIFO-Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_WATERLEVEL 0x03U |
| WaterLevel Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_FIFOLENGTH 0x04U |
| FIFO-Length Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_FIFODATA 0x05U |
| FIFO-Data Register. More... | |
IRQ Registers | |
| #define | PHHAL_HW_SAM_RC663_REG_IRQ0 0x06U |
| IRQ0 Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_IRQ1 0x07U |
| IRQ1 Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_IRQ0EN 0x08U |
| IRQ0EN Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_IRQ1EN 0x09U |
| IRQ1EN Register. More... | |
Timer Registers | |
| #define | PHHAL_HW_SAM_RC663_REG_TCONTROL 0x0EU |
| Timer Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T0CONTROL 0x0FU |
| Timer0 Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T0RELOADHI 0x10U |
| Timer0 Reload(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T0RELOADLO 0x11U |
| Timer0 Reload(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T0COUNTERVALHI 0x12U |
| Timer0 Counter(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T0COUNTERVALLO 0x13U |
| Timer0 Counter(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T1CONTROL 0x14U |
| Timer1 Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T1RELOADHI 0x15U |
| Timer1 Reload(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T1RELOADLO 0x16U |
| Timer1 Reload(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T1COUNTERVALHI 0x17U |
| Timer1 Counter(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T1COUNTERVALLO 0x18U |
| Timer1 Counter(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T2CONTROL 0x19U |
| Timer2 Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T2RELOADHI 0x1AU |
| Timer2 Reload(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T2RELOADLO 0x1BU |
| Timer2 Reload(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T2COUNTERVALHI 0x1CU |
| Timer2 Counter(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T2COUNTERVALLO 0x1DU |
| Timer2 Counter(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T3CONTROL 0x1EU |
| Timer3 Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T3RELOADHI 0x1FU |
| Timer3 Reload(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T3RELOADLO 0x20U |
| Timer3 Reload(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T3COUNTERVALHI 0x21U |
| Timer3 Counter(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T3COUNTERVALLO 0x22U |
| Timer3 Counter(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T4CONTROL 0x23U |
| Timer4 Control Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T4RELOADHI 0x24U |
| Timer4 Reload(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T4RELOADLO 0x25U |
| Timer4 Reload(Low) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T4COUNTERVALHI 0x26U |
| Timer4 Counter(High) Register. More... | |
| #define | PHHAL_HW_SAM_RC663_REG_T4COUNTERVALLO 0x27U |
| Timer4 Counter(Low) Register. More... | |
Command Register Contents (0x00) | |
| #define | PHHAL_HW_SAM_RC663_BIT_STANDBY 0x80U |
| Standby bit; If set, the IC transits to standby mode. | |
| #define | PHHAL_HW_SAM_RC663_CMD_IDLE 0x00U |
| No action; cancels current command execution. | |
| #define | PHHAL_HW_SAM_RC663_CMD_LPCD 0x01U |
| Low Power Card Detection. | |
| #define | PHHAL_HW_SAM_RC663_CMD_LOADKEY 0x02U |
| Reads a key from the FIFO buffer and puts it into the key buffer. | |
| #define | PHHAL_HW_SAM_RC663_CMD_MFAUTHENT 0x03U |
| Performs the MIFARE standard authentication (in MIFARE Reader/Writer mode only). | |
| #define | PHHAL_HW_SAM_RC663_CMD_ACKREQ 0x04U |
| Performs a Query, a Ack and a Req-Rn for EPC V2. | |
| #define | PHHAL_HW_SAM_RC663_CMD_RECEIVE 0x05U |
| Activates the receiver circuitry. | |
| #define | PHHAL_HW_SAM_RC663_CMD_TRANSMIT 0x06U |
| Transmits data from the FIFO buffer to Card. | |
| #define | PHHAL_HW_SAM_RC663_CMD_TRANSCEIVE 0x07U |
| Like PHHAL_HW_SAM_RC663_CMD_TRANSMIT but automatically activates the receiver after transmission is finished. | |
| #define | PHHAL_HW_SAM_RC663_CMD_WRITEE2 0x08U |
| Gets one byte from FIFO buffer and writes it to the internal EEPROM. | |
| #define | PHHAL_HW_SAM_RC663_CMD_WRITEE2PAGE 0x09U |
| Gets up to 64 Bytes from FIFO buffer and writes it to the EEPROM. | |
| #define | PHHAL_HW_SAM_RC663_CMD_READE2 0x0AU |
| Reads data from EEPROM and puts it into the FIFO buffer. | |
| #define | PHHAL_HW_SAM_RC663_CMD_LOADREG 0x0CU |
| Reads data from EEPROM and initializes the registers. | |
| #define | PHHAL_HW_SAM_RC663_CMD_LOADPROTOCOL 0x0DU |
| Reads data from EEPROM and initializes the registers needed for a protocol change. | |
| #define | PHHAL_HW_SAM_RC663_CMD_LOADKEYE2 0x0EU |
| Copies a MIFARE key from the EEPROM into the key buffer. | |
| #define | PHHAL_HW_SAM_RC663_CMD_STOREKEYE2 0x0FU |
| Stores a MIFARE key into the EEPROM. | |
| #define | PHHAL_HW_SAM_RC663_CMD_SOFTRESET 0x1FU |
| Resets the IC. | |
| #define | PHHAL_HW_SAM_RC663_MASK_COMMAND 0x1FU |
| Mask for Command-bits. | |
Status Register Contents (0x0B) | |
| #define | PHHAL_HW_SAM_RC663_BIT_CRYPTO1ON 0x20U |
| #define | PHHAL_HW_SAM_RC663_MASK_COMMSTATE 0x07U |
Rx-Coll Register Contents (0x0D) | |
| #define | PHHAL_HW_SAM_RC663_BIT_COLLPOSVALID 0x80U |
| #define | PHHAL_HW_SAM_RC663_MASK_COLLPOS 0x7FU |
T[0-3]-Control Register Contents (0x0F/0x14/0x19/0x1E) | |
| #define | PHHAL_HW_SAM_RC663_BIT_TSTOP_RX 0x80U |
| Stop timer on receive interrupt. | |
| #define | PHHAL_HW_SAM_RC663_BIT_TAUTORESTARTED 0x08U |
| Auto-restart timer after underflow. | |
| #define | PHHAL_HW_SAM_RC663_BIT_TSTART_TX 0x10U |
| Start timer on transmit interrupt. | |
| #define | PHHAL_HW_SAM_RC663_BIT_TSTART_LFO 0x20U |
| Use this timer for LFO trimming. | |
| #define | PHHAL_HW_SAM_RC663_BIT_TSTART_LFO_UV 0x30U |
| Use this timer for LFO trimming (generate UV at a trimming event). | |
| #define | PHHAL_HW_SAM_RC663_MASK_TSTART 0x30U |
| Mask for TSTART bits. | |
| #define | PHHAL_HW_SAM_RC663_VALUE_TCLK_1356_MHZ 0x00U |
| Use 13.56MHz as input clock. | |
| #define | PHHAL_HW_SAM_RC663_VALUE_TCLK_212_KHZ 0x01U |
| Use 212KHz as input clock. | |
| #define | PHHAL_HW_SAM_RC663_VALUE_TCLK_T0 0x02U |
| Use timer0 as input clock. | |
| #define | PHHAL_HW_SAM_RC663_VALUE_TCLK_T1 0x03U |
| Use timer1 as input clock. | |
Tx Amplifier Register Contents (0x29) | |
| #define | PHHAL_HW_SAM_RC663_MASK_CW_AMPLITUDE 0xF0U |
| #define | PHHAL_HW_SAM_RC663_MASK_RESIDUAL_CARRIER 0x0FU |
Tx-DataNum Register Contents (0x2E) | |
| #define | PHHAL_HW_SAM_RC663_BIT_KEEPBITGRID 0x10U |
| #define | PHHAL_HW_SAM_RC663_BIT_DATAEN 0x08U |
| #define | PHHAL_HW_SAM_RC663_MASK_TXLASTBITS 0x07U |
Rx-Wait Register Contents (0x36) | |
| #define | PHHAL_HW_SAM_RC663_BIT_RXWAITDBFREQ 0x80U |
| #define | PHHAL_HW_SAM_RC663_MASK_RXWAIT 0x7FU |
Rx-Threshold Register Contents (0x37) | |
| #define | PHHAL_HW_SAM_RC663_MASK_MINLEVEL 0xF0U |
| #define | PHHAL_HW_SAM_RC663_MASK_MINLEVELP 0x0FU |
Serial-Speed Register Contents (0x3B) | |
| #define | PHHAL_HW_SAM_RC663_MASK_BR_T0 0xE0U |
| #define | PHHAL_HW_SAM_RC663_MASK_BR_T1 0x1FU |
LPCD Result(Q) Register Contents (0x43) | |
| #define | PHHAL_HW_SAM_RC663_BIT_LPCDIRQ_CLR 0x40U |
Register definitions for Rc663.
| #define PHHAL_HW_SAM_RC663_REG_COMMAND 0x00 |
Command Register.
Used for starting / stopping commands and for sending the IC into standby mode.
| #define PHHAL_HW_SAM_RC663_REG_HOSTCTRL 0x01U |
Host-Control Register.
Configure Host and SAM interfaces.
| #define PHHAL_HW_SAM_RC663_REG_FIFOCONTROL 0x02U |
FIFO-Control Register.
Set FIFO size and retrieve FIFO parameters.
Note: Also contains 1 additional Water-Level bits (MSB) and 2 additional FIFO-Length bits (also MSB).
| #define PHHAL_HW_SAM_RC663_REG_WATERLEVEL 0x03U |
WaterLevel Register.
FIFO WaterLevel configuration.
| #define PHHAL_HW_SAM_RC663_REG_FIFOLENGTH 0x04U |
FIFO-Length Register.
Retrieve the number of bytes within the FIFO.
| #define PHHAL_HW_SAM_RC663_REG_FIFODATA 0x05U |
FIFO-Data Register.
Writing to this register moves a byte into the FIFO while incrementing the FIFO length and raising the internal WaterLevel.
| #define PHHAL_HW_SAM_RC663_REG_IRQ0 0x06U |
IRQ0 Register.
Read or modify the first 7 IRQ bits.
| #define PHHAL_HW_SAM_RC663_REG_IRQ1 0x07U |
IRQ1 Register.
Read or modify the second 7 IRQ bits.
| #define PHHAL_HW_SAM_RC663_REG_IRQ0EN 0x08U |
IRQ0EN Register.
Enable or disable the first IRQ bits or invert the IRQ propagation.
| #define PHHAL_HW_SAM_RC663_REG_IRQ1EN 0x09U |
IRQ1EN Register.
Enable or disable the second IRQ bits or enable/disable PushPull mode.
| #define PHHAL_HW_SAM_RC663_REG_ERROR 0x0AU |
Error Register.
Contains bits for the occured errors.
| #define PHHAL_HW_SAM_RC663_REG_STATUS 0x0BU |
Status Register.
Contains the Crypto1 state and information about the ComState.
| #define PHHAL_HW_SAM_RC663_REG_RXBITCTRL 0x0CU |
Rx-Bit-Control Register.
Set/Get Bit-granularity and collision information.
| #define PHHAL_HW_SAM_RC663_REG_RXCOLL 0x0DU |
Rx-Coll Register.
Contains information about the collision position after a collision.
| #define PHHAL_HW_SAM_RC663_REG_TCONTROL 0x0EU |
Timer Control Register.
Provides timer control and status information for all timers.
| #define PHHAL_HW_SAM_RC663_REG_T0CONTROL 0x0FU |
Timer0 Control Register.
Configure the timer.
| #define PHHAL_HW_SAM_RC663_REG_T0RELOADHI 0x10U |
Timer0 Reload(High) Register.
Set the most significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T0RELOADLO 0x11U |
Timer0 Reload(Low) Register.
Set the least significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T0COUNTERVALHI 0x12U |
Timer0 Counter(High) Register.
Get the most significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T0COUNTERVALLO 0x13U |
Timer0 Counter(Low) Register.
Get the least significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T1CONTROL 0x14U |
Timer1 Control Register.
Configure the timer.
| #define PHHAL_HW_SAM_RC663_REG_T1RELOADHI 0x15U |
Timer1 Reload(High) Register.
Set the most significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T1RELOADLO 0x16U |
Timer1 Reload(Low) Register.
Set the least significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T1COUNTERVALHI 0x17U |
Timer1 Counter(High) Register.
Get the most significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T1COUNTERVALLO 0x18U |
Timer1 Counter(Low) Register.
Get the least significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T2CONTROL 0x19U |
Timer2 Control Register.
Configure the timer.
| #define PHHAL_HW_SAM_RC663_REG_T2RELOADHI 0x1AU |
Timer2 Reload(High) Register.
Set the most significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T2RELOADLO 0x1BU |
Timer2 Reload(Low) Register.
Set the least significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T2COUNTERVALHI 0x1CU |
Timer2 Counter(High) Register.
Get the most significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T2COUNTERVALLO 0x1DU |
Timer2 Counter(Low) Register.
Get the least significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T3CONTROL 0x1EU |
Timer3 Control Register.
Configure the timer.
| #define PHHAL_HW_SAM_RC663_REG_T3RELOADHI 0x1FU |
Timer3 Reload(High) Register.
Set the most significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T3RELOADLO 0x20U |
Timer3 Reload(Low) Register.
Set the least significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T3COUNTERVALHI 0x21U |
Timer3 Counter(High) Register.
Get the most significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T3COUNTERVALLO 0x22U |
Timer3 Counter(Low) Register.
Get the least significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T4CONTROL 0x23U |
Timer4 Control Register.
Configure the timer.
| #define PHHAL_HW_SAM_RC663_REG_T4RELOADHI 0x24U |
Timer4 Reload(High) Register.
Set the most significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T4RELOADLO 0x25U |
Timer4 Reload(Low) Register.
Set the least significant byte of the Reload-Value.
| #define PHHAL_HW_SAM_RC663_REG_T4COUNTERVALHI 0x26U |
Timer4 Counter(High) Register.
Get the most significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_T4COUNTERVALLO 0x27U |
Timer4 Counter(Low) Register.
Get the least significant byte of the Counter-Value.
| #define PHHAL_HW_SAM_RC663_REG_DRVMODE 0x28U |
Driver Mode Register.
Enable / Invert the Tx-Driver and set the Clock Mode.
| #define PHHAL_HW_SAM_RC663_REG_TXAMP 0x29U |
Tx Amplifier Register.
Modify Amplitude and Carrier settings.
| #define PHHAL_HW_SAM_RC663_REG_DRVCON 0x2AU |
Driver Control Register.
Select / Invert drivers.
| #define PHHAL_HW_SAM_RC663_REG_TXI 0x2BU |
TxI Register.
Contains Overshoot prevention and current control settings.
| #define PHHAL_HW_SAM_RC663_REG_TXCRCCON 0x2CU |
Tx-CRC Control Register.
Configure CRC parameters transmission.
| #define PHHAL_HW_SAM_RC663_REG_RXCRCCON 0x2DU |
Rx-CRC Control Register.
Configure CRC parameters for reception.
| #define PHHAL_HW_SAM_RC663_REG_TXDATANUM 0x2EU |
Tx-DataNum Register.
Set TxLastBits and configure KeepBitGrid functionality.
| #define PHHAL_HW_SAM_RC663_REG_TXMODWIDTH 0x2FU |
Tx-Modwidth Register.
Set the modulation width.
| #define PHHAL_HW_SAM_RC663_REG_TXSYM10BURSTLEN 0x30U |
Symbol 0 and 1 Register.
Configure Burst-lengths of both symbols.
| #define PHHAL_HW_SAM_RC663_REG_TXWAITCTRL 0x31U |
Tx-Wait Control Register.
Enable / Configure Tx Waiting-Time.
| #define PHHAL_HW_SAM_RC663_REG_TXWAITLO 0x32U |
TxWaitLo Register.
Contains the Least-Significant-Bits for the Tx Waiting-Time.
| #define PHHAL_HW_SAM_RC663_REG_FRAMECON 0x33U |
Frame control register.
Contains active Start/Stop symbol and Parity settings.
| #define PHHAL_HW_SAM_RC663_REG_RXSOFD 0x34U |
RxSOFD Register.
Contains Start-of-Frame and subcarrier detection bits.
| #define PHHAL_HW_SAM_RC663_REG_RXCTRL 0x35U |
Rx Control Register.
Configure Receiver settings such as baudrate and EMD-suppression feature.
| #define PHHAL_HW_SAM_RC663_REG_RXWAIT 0x36U |
Rx-Wait Register.
Configure Receiver Deaf-Time.
| #define PHHAL_HW_SAM_RC663_REG_RXTHRESHOLD 0x37U |
Rx-Threshold Register.
Configure Receiver Threshold.
| #define PHHAL_HW_SAM_RC663_REG_RCV 0x38U |
Receiver Register.
Configure Collision-Level and other features.
| #define PHHAL_HW_SAM_RC663_REG_RXANA 0x39U |
Rx-Analog Register.
Configure analog settings and parameters for Receiver circuitry.
| #define PHHAL_HW_SAM_RC663_REG_SERIALSPEED 0x3BU |
Serial Speed Register.
Configure serial baudrates.
| #define PHHAL_HW_SAM_RC663_REG_LPO_TRIMM 0x3CU |
LPO_TRIMM Register.
Trimm Control Input for Low Power Oscillator.
| #define PHHAL_HW_SAM_RC663_REG_PLL_CTRL 0x3DU |
PLL Control Register.
Configure PLL settings.
| #define PHHAL_HW_SAM_RC663_REG_PLL_DIV 0x3EU |
PLL DivO Register.
Contains PLL output.
| #define PHHAL_HW_SAM_RC663_REG_LPCD_QMIN 0x3FU |
LPCD QMin Register.
Configure IMax(2) and QMin values for LPCD.
| #define PHHAL_HW_SAM_RC663_REG_LPCD_QMAX 0x40U |
LPCD QMax Register.
Configure IMax(1) and QMax values for LPCD.
| #define PHHAL_HW_SAM_RC663_REG_LPCD_IMIN 0x41U |
LPCD IMin Register.
Configure IMax(0) and IMin values for LPCD.
| #define PHHAL_HW_SAM_RC663_REG_LPCD_RESULT_I 0x42U |
LPCD Result(I) Register.
Contains I-Channel results of LPCD.
| #define PHHAL_HW_SAM_RC663_REG_LPCD_RESULT_Q 0x43U |
LPCD Result(Q) Register.
Contains Q-Channel results of LPCD.
| #define PHHAL_HW_SAM_RC663_REG_VERSION 0x7FU |
Version Register.
Contains IC Version and Subversion.