\n
address_offset : 0x0 Bytes (0x0)
size : 0x60 byte (0x0)
mem_usage : registers
protection :
SARADC Data Register for the Channel Defined in CHSEQ0
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0
RESULT : A/D Conversion Result
This field contains the 12-bit conversion result. Its data format is defined by ADCFM bit.
bits : 0 - 11 (12 bit)
access : read-only
EXTS : Extension Bits Of RESULT for Different Data Format
If ADCFM is 0 , EXTS all are read as 0 .
If ADCFM is 1 , EXTS all are read as bit RESULT [11].
bits : 12 - 15 (4 bit)
access : read-only
OV : Over Run Flag
If converted data in RESULT [11:0] have not been read before new conversion result is loaded to this register, OV is set to 1. It is cleared by hardware after ADC_DAT register is read.
bits : 16 - 16 (1 bit)
access : read-only
Enumeration:
#0 : 0
Data in RESULT are recent conversion result
#1 : 1
Data in RESULT are overwritten
End of enumeration elements list.
VALID : Valid Flag
This bit is set to 1 when corresponding channel analog input conversion is completed and cleared by hardware after ADC_DAT register is read.
bits : 17 - 17 (1 bit)
access : read-only
Enumeration:
#0 : 0
Data in RESULT are not valid
#1 : 1
Data in RESULT are valid
End of enumeration elements list.
SARADC Data Register for the Channel Defined in CHSEQ4
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ5
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ6
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ7
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ8
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ9
address_offset : 0x24 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ10
address_offset : 0x28 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ11
address_offset : 0x2C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ12
address_offset : 0x30 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ13
address_offset : 0x34 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ14
address_offset : 0x38 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Control Register
address_offset : 0x3C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
ADCEN : A/D Converter Enable
Before starting A/D conversion function, this bit should be set to 1. Clear it to 0 to disable A/D converter analog circuit power consumption.
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enable
End of enumeration elements list.
ADCIE : A/D Interrupt Enable
A/D conversion end interrupt request is generated if ADCIE bit is set to 1.
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable A/D interrupt function
#1 : 1
Enable A/D interrupt function
End of enumeration elements list.
OPMODE : A/D Converter Operation Mode
Note 1: When changing the operation mode, software should disable SWTRG bit firstly.
bits : 2 - 3 (2 bit)
access : read-write
Enumeration:
#00 : 0
Single conversion
#01 : 1
Reserved
#10 : 2
Single-cycle scan
#11 : 3
Continuous scan
End of enumeration elements list.
PDMAEN : PDMA Transfer Enable Bit
When A/D conversion is completed, the converted data is loaded into ADC_DATn (n: 0 ~ 1314) register, user can enable this bit to generate a PDMA data transfer request.
bits : 4 - 4 (1 bit)
access : read-write
Enumeration:
#0 : 0
PDMA data transfer Disabled
#1 : 1
PDMA data transfer Enabled
End of enumeration elements list.
MUXSW : MUXEN software control register
0 : MUX always enable turn on
1 : MUX control by MUXEN
bits : 5 - 5 (1 bit)
access : read-write
DLYTRIM : Trim bit for SARADC speed
bits : 6 - 7 (2 bit)
access : read-write
Enumeration:
#00 : 0
636.5284ns
#01 : 1
720.5ns
#10 : 2
807ns
#11 : 3
976.5ns
End of enumeration elements list.
MUXEN : Input channel MUX enable control
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable(MUX output floating)
#1 : 1
Enable
End of enumeration elements list.
MODESEL : SARADC conversion speed mode selection
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
High speed(500KSPS)
#1 : 1
Low speed(200KSPS)
End of enumeration elements list.
OVRIE : Sample rate over interrupt enable
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enable
End of enumeration elements list.
SWTRG : A/D Conversion Start
Note1: SWTRG bit can be reset to 0 by software, or can be cleared to 0 by hardware automatically at the end of single mode and single-cycle scan mode on specified channel. In continuous scan mode, A/D conversion is continuously performed sequentially until software writes 0 to this bit or chip resets.
Note2: Before trigger SWTRG to start ADC convert , the ADC relative setting should be completed.
bits : 11 - 11 (1 bit)
access : read-write
Enumeration:
#0 : 0
Conversion is stopped and A/D converter enters idle state
#1 : 1
Start conversion
End of enumeration elements list.
ADCFM : Data Format Of ADC Conversion Result
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
Unsigned
#1 : 1
2's Complement
End of enumeration elements list.
SARADC Data Register for the Channel Defined in CHSEQ1
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Channel Sequence Register0
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CHSEQ0 : Select Channel N As The 1st Conversion In Scan Sequence
bits : 0 - 3 (4 bit)
access : read-write
CHSEQ1 : Select Channel N As The 2nd Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 4 - 7 (4 bit)
access : read-write
CHSEQ2 : Select Channel N As The 3rd Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 8 - 11 (4 bit)
access : read-write
CHSEQ3 : Select Channel N As The 4th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 12 - 15 (4 bit)
access : read-write
CHSEQ4 : Select Channel N As The 5th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 16 - 19 (4 bit)
access : read-write
CHSEQ5 : Select Channel N As The 6th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 20 - 23 (4 bit)
access : read-write
CHSEQ6 : Select Channel N As The 7th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 24 - 27 (4 bit)
access : read-write
CHSEQ7 : Select Channel N As The 8th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 28 - 31 (4 bit)
access : read-write
SARADC Channel Sequence Register1
address_offset : 0x44 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CHSEQ8 : Select Channel N As The 9th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 0 - 3 (4 bit)
access : read-write
CHSEQ9 : Select Channel N As The 10th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 4 - 7 (4 bit)
access : read-write
CHSEQ10 : Select Channel N As The 11th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 8 - 11 (4 bit)
access : read-write
CHSEQ11 : Select Channel N As The 12th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 12 - 15 (4 bit)
access : read-write
CHSEQ12 : Select Channel N As The 13th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 16 - 19 (4 bit)
access : read-write
CHSEQ13 : Select Channel N As The 14th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 20 - 23 (4 bit)
access : read-write
CHSEQ14 : Select Channel N As The 15th Conversion In Scan Sequence
The definition of channel selection is the same as CHSEQ0.
bits : 24 - 27 (4 bit)
access : read-write
SARADC Compare Register 0
address_offset : 0x48 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
ADCMPEN : Compare Enable
Set this bit to 1 to enable the comparison CMPDAT with specified channel conversion result when converted data is loaded into SARADC_DAT register.
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable compare
#1 : 1
Enable compare
End of enumeration elements list.
ADCMPIE : Compare Interrupt Enable
When converted data in RESULT is less (or greater) than the compare data CMPDAT, ADCMPF bit is asserted. If ADCMPIE is set to 1, a compare interrupt request is generated.
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enable
End of enumeration elements list.
CMPCOND : Compare Condition
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
ADCMPFx bit is set if conversion result is less than CMPDAT
#1 : 1
ADCMPFx bit is set if conversion result is greater or equal to CMPDAT,
End of enumeration elements list.
CMPCH : Compare Channel Selection
bits : 3 - 6 (4 bit)
access : read-write
Enumeration:
#0000 : 0
Channel 0 conversion result is selected to be compared
#0001 : 1
Channel 1 conversion result is selected to be compared
#0010 : 2
Channel 2 conversion result is selected to be compared
#0011 : 3
Channel 3 conversion result is selected to be compared
#0100 : 4
Channel 4 conversion result is selected to be compared
#0101 : 5
Channel 5 conversion result is selected to be compared
#0110 : 6
Channel 6 conversion result is selected to be compared
#0111 : 7
Channel 7 conversion result is selected to be compared
#1000 : 8
Channel 8 conversion result is selected to be compared
#1001 : 9
Channel 9 conversion result is selected to be compared
#1010 : 10
Channel 10 conversion result is selected to be compared
#1011 : 11
Channel 11 conversion result is selected to be compared
#1100 : 12
Channel 12 conversion result is selected to be compared
#1101 : 13
Channel 13 conversion result is selected to be compared
#1110 : 14
Channel 14 conversion result is selected to be compared
End of enumeration elements list.
CMPMCNT : Compare Match Count
When the specified A/D channel analog conversion result matches the comparing condition, the internal match counter will increase 1. When the internal counter achieves the setting, (CMPMCNT+1) hardware will set the ADCMPF bit.
bits : 8 - 11 (4 bit)
access : read-write
CMPDAT : Compare Data
This field possessing 12-bit compare data, is used to compare with conversion result of specified channel. Software can use it to monitor the external analog input pin voltage transition in scan mode without imposing a load on software.
The data format should be consistent with the setting of ADCFM bit.
bits : 16 - 27 (12 bit)
access : read-write
SARADC Compare Register 1
address_offset : 0x4C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Status Register0
address_offset : 0x50 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
ADIF : A/D Conversion End Flag
A status flag that indicates the end of A/D conversion.
ADIF is set to 1 under the following two conditions:
When A/D conversion ends in single mode,
When A/D conversion ends on all channels specified by channel sequence register in scan mode.
And it is cleared when 1 is written.
bits : 0 - 0 (1 bit)
access : read-write
ADCMPF0 : Compare Flag0
When the selected channel A/D conversion result meets setting conditions in SARADC_CMP0, then this bit is set to 1. And it is cleared by write 1.
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Converted result RESULT in SARADC_DAT does not meet SARADC_CMP0 setting
#1 : 1
Converted result RESULT in SARADC_DAT meets SARADC_CMP0 setting,
End of enumeration elements list.
ADCMPF1 : Compare Flag1
When the selected channel A/D conversion result meets setting conditions in SARADC_CMP1, then this bit is set to 1. And it is cleared by write 1.
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Converted result RESULT in SARADC_DAT does not meet SARADC_CMP1 setting
#1 : 1
Converted result RESULT in SARADC_DAT meets SARADC_CMP1 setting,
End of enumeration elements list.
BUSY : BUSY/IDLE
This bit is mirror of SWTRG bit in SARADC_CTL.
It is read only.
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
A/D converter is in idle state
#1 : 1
A/D converter is busy at conversion
End of enumeration elements list.
CHANNEL : Current Conversion Channel
It is read only.
bits : 4 - 7 (4 bit)
access : read-write
OVRF : Sampling rate over flag
It is cleared when 1 is written.
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
user setting sample rate not exceed real conversion rate
#1 : 1
user setting sample rate exceed real conversion rate
End of enumeration elements list.
SARADC Status Register1
address_offset : 0x54 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
VALID : Data Valid Flag
It is a mirror of VALID bit in SARADC_DATn.
bits : 0 - 14 (15 bit)
access : read-write
OV : Over Run Flag
It is a mirror to OV bit in SARADC_DATn.
bits : 16 - 30 (15 bit)
access : read-write
SARADC PDMA Result Register
address_offset : 0x58 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
DATA : SARADC PDMA transfer data
This is a read only register.
bits : 0 - 15 (16 bit)
access : read-write
SARADC H/W Parameter Control Register
address_offset : 0x5C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SHCLKN : Specify the high level of SARADC start signal.
Note: SHCLKN must larger than 400ns.
bits : 0 - 5 (6 bit)
access : read-write
CONVN : Specify SARADC conversion clock number
To update this field, programmer can only revise bit [14:8] and keep other bits the same as before.
Note: CONVN value must bigger than SHCLKN value and should bigger than 2us(500KSPS).
bits : 8 - 14 (7 bit)
access : read-write
SARADC Data Register for the Channel Defined in CHSEQ2
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
SARADC Data Register for the Channel Defined in CHSEQ3
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !
This website is sponsored by Embeetle, an IDE designed from scratch for embedded software developers.