\n

CAP

Peripheral Memory Blocks

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

Registers

CAP_CNT

CAP_CNTCMP

CAP_CTR0

CAP_CTR1

CAP_STS

CAP_HLD0

CAP_HLD1

CAP_HLD2


CAP_CNT

Input Capture Counter (24-bit up counter)
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_CNT CAP_CNT 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 CAP_CNT

CAP_CNT : Input Capture Timer/Counter\nThe input Capture Timer/Counter is a 24-bit up-counting counter. The clock source for the counter is from the clock divider output which the CAP_CLK is software optionally divided by 1,4,16 or 32.
bits : 0 - 23 (24 bit)
access : read-write


CAP_CNTCMP

Input Capture Counter Compare Register
address_offset : 0x10 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_CNTCMP CAP_CNTCMP 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 CAP_CNTCMP

CAP_CNTCMP : Input Capture Counter Compare Register
bits : 0 - 23 (24 bit)
access : read-write


CAP_CTR0

Input Capture Control Register 0
address_offset : 0x14 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_CTR0 CAP_CTR0 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 NFCLK_S CAPNF_DIS IC0_EN IC1_EN IC2_EN CAPSEL0 CAPSEL1 CAPSEL2 CAPTF0_IEN CAPTF1_IEN CAPTF2_IEN CAPOV_IEN CAPCMP_IEN CPTST CMPCLR CPTCLR RLD_EN CMP_EN CAP_EN

NFCLK_S : Noise Filter Clock Pre-divided Selection
bits : 0 - 1 (2 bit)
access : read-write

CAPNF_DIS : Disable Input Capture Noise Filter
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Noise filter of Input Capture Enabled

#1 : 1

The noise filter of Input Capture Disabled

End of enumeration elements list.

IC0_EN : Enable Port Pin IC0 Input to Input Capture Unit
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

IC0 input to Input Capture Unit Disabled

#1 : 1

IC0 input to Input Capture Unit Enabled

End of enumeration elements list.

IC1_EN : Enable Port Pin IC1 Input to Input Capture Unit
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

IC1 input to Input Capture Unit Disabled

#1 : 1

IC1 input to Input Capture Unit Enabled

End of enumeration elements list.

IC2_EN : Enable Port Pin IC2 Input to Input Capture Unit
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

IC2 input to Input Capture Unit Disabled

#1 : 1

IC2 input to Input Capture Unit Enabled

End of enumeration elements list.

CAPSEL0 : CAP0 Input Source Selection Bit
bits : 8 - 9 (2 bit)
access : read-write

Enumeration:

#00 : 0

CAP0 input is from port pin IC0

#01 : 1

CAP0 input is from signal CPO0 (Analog comparator 0 output)

#10 : 2

CAP0 input is from signal CHA of QEI controller unit x

#11 : 3

CAP0 input is from signal OPDO0 (OP0 digital output)

End of enumeration elements list.

CAPSEL1 : CAP1 Input Source Selection Bit
bits : 10 - 11 (2 bit)
access : read-write

Enumeration:

#00 : 0

CAP1 input is from port pin IC1

#01 : 1

CAP1 input is from signal CPO1 (Analog comparator 1 output)

#10 : 2

CAP1 input is from signal CHB of QEI controller unit x

#11 : 3

CAP1 input is from signal OPDO1 (OP1 digital output)

End of enumeration elements list.

CAPSEL2 : CAP2 Input Source Selection Bit
bits : 12 - 13 (2 bit)
access : read-write

Enumeration:

#00 : 0

CAP2 input is from port pin IC2

#01 : 1

CAP2 input is from signal CPO2 (Analog comparator 2 output)

#10 : 2

CAP2 input is from signal CHX of QEI controller unit x

#11 : 3

CAP2 input is from signal ADCMPOx (ADC compare output x)

End of enumeration elements list.

CAPTF0_IEN : Enable Input Capture Channel 0 Interrupt
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disabling flag CAPTF0 can trigger Input Capture interrupt

#1 : 1

Enabling flag CAPTF0 can trigger Input Capture interrupt

End of enumeration elements list.

CAPTF1_IEN : Enable Input Capture Channel 1 Interrupt
bits : 17 - 17 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disabling flag CAPTF1 can trigger Input Capture interrupt

#1 : 1

Enabling flag CAPTF1 can trigger Input Capture interrupt

End of enumeration elements list.

CAPTF2_IEN : Enable Input Capture Channel 2 Interrupt
bits : 18 - 18 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disabling flag CAPTF2 can trigger Input Capture interrupt

#1 : 1

Enabling flag CAPTF2 can trigger Input Capture interrupt

End of enumeration elements list.

CAPOV_IEN : Enable CAPOVF Trigger Input Capture Interrupt
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disabling flag OVUNF can trigger Input Capture interrupt

#1 : 1

Enabling flag OVUNF can trigger Input Capture interrupt

End of enumeration elements list.

CAPCMP_IEN : Enable CAPCMPF Trigger Input Capture Interrupt
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disabling flag CAPCMPF can trigger Input Capture interrupt

#1 : 1

Enabling flag CAPCMPF can trigger Input Capture interrupt

End of enumeration elements list.

CPTST : Input Capture Counter Start Bit\nSetting this bit to 1, the capture counter (CAP_CNT) starts up-counting synchronously with capture clock input (CAP_CLK).
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

CAP_CNT stop counting

#1 : 1

CAP_CNT starts up-counting

End of enumeration elements list.

CMPCLR : Input Capture Counter Clear by Compare-match Control Bit
bits : 25 - 25 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare-match event (CAMCMPF) can clear capture counter (CAP_CNT) Disabled

#1 : 1

Compare-match event (CAMCMPF) can clear capture counter (CAP_CNT) Enabled

End of enumeration elements list.

CPTCLR : Input Capture Counter Clear by Capture Events Control Bit\nIf this bit is set to 1, the capture counter (CAP_CNT) will be cleared to 0 when any one of capture events (CAPTF0~3) occurs.
bits : 26 - 26 (1 bit)
access : read-write

Enumeration:

#0 : 0

Capture events (CAPTF0~3) can clear capture counter (CAP_CNT) Disabled

#1 : 1

Capture events (CAPTF0~3) can clear capture counter (CAP_CNT) Enabled

End of enumeration elements list.

RLD_EN : The Reload Function Enable Bit\nSetting this bit to enable reload function. If the reload control is enabled, an overflow event (CAPOVF) or capture events (CAPTFx) will trigger the hardware to reload CAP_CNTCMP into CAP_CNT.
bits : 27 - 27 (1 bit)
access : read-write

Enumeration:

#0 : 0

Reload function Disabled

#1 : 1

Reload function Enabled

End of enumeration elements list.

CMP_EN : The Compare Function Enable Bit\nThe compare function in input capture timer/counter is to compare the dynamic counting CAP_CNT with the compare register CAP_CNTCMP, if CAP_CNT value reaches CAP_CNTCMP, the flag CAPCMPF will be set.
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare function Disabled

#1 : 1

Compare function Enabled

End of enumeration elements list.

CAP_EN : Input Capture Timer/Counter Enable Bit
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Input Capture function Disabled

#1 : 1

Input Capture function Enabled

End of enumeration elements list.


CAP_CTR1

Input Capture Control Register 1
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_CTR1 CAP_CTR1 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 CAPEDG0 CAPEDG1 CAPEDG2 CPRLD_S CAPDIV CAPCNT_SRC

CAPEDG0 : Channel 0 Captured Edge Selection
bits : 0 - 1 (2 bit)
access : read-write

CAPEDG1 : Channel 1 Captured Edge Selection
bits : 2 - 3 (2 bit)
access : read-write

CAPEDG2 : Channel 2 Captured Edge Selection
bits : 4 - 5 (2 bit)
access : read-write

CPRLD_S : CAPCNT Reload Trigger Source Selection
bits : 8 - 10 (3 bit)
access : read-write

CAPDIV : Capture Timer Clock Divide Selection
bits : 12 - 13 (2 bit)
access : read-write

CAPCNT_SRC : Capture Timer/Counter Clock Source Select
bits : 16 - 17 (2 bit)
access : read-write


CAP_STS

Input Capture Status Register
address_offset : 0x1C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_STS CAP_STS 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 CAPTF0 CAPTF1 CAPTF2 CAPCMPF CAPOVF

CAPTF0 : Input Capture Channel 0 Captured Flag\nWhen the input capture channel 0 detects a valid edge change at CAP0 input, it will set flag CAPTF0 to high. \nNote: This bit is only cleared by writing 1 to itself through software.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No valid edge change is detected at CAP0 input

#1 : 1

A valid edge change is detected at CAP0 input

End of enumeration elements list.

CAPTF1 : Input Capture Channel 1 Captured Flag\nWhen the input capture channel 1 detects a valid edge change at CAP1 input, it will set flag CAPTF1 to high. \nNote: This bit is only cleared by writing 1 to itself through software.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No valid edge change is detected at CAP1 input

#1 : 1

A valid edge change is detected at CAP1 input

End of enumeration elements list.

CAPTF2 : Input Capture Channel 2 Captured Flag\nWhen the input capture channel 2 detects a valid edge change at CAP2 input, it will set flag CAPTF2 to high. \nNote: This bit is only cleared by writing 1 to itself through software.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No valid edge change is detected at CAP2 input

#1 : 1

A valid edge change is detected at CAP2 input

End of enumeration elements list.

CAPCMPF : Input Capture Compare-match Flag\nIf the input capture compare function is enabled, the flag is set by hardware while capture counter (CAP_CNT) up counts and reach to the CAP_CNTCMP value.\nNote: This bit is only cleared by writing 1 to itself through software.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

CAP_CNT does not match with CAP_CNTCMP value

#1 : 1

CAP_CNT counts to the same as CAP_CNTCMP value

End of enumeration elements list.

CAPOVF : Input Capture Counter Overflow Flag\nFlag is set by hardware when input capture up counter (CAP_CNT) overflows from 0x00FF_FFFF to 0.\nNote: This bit is only cleared by writing 1 to itself through software.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No overflow occurs in CAP_CNT

#1 : 1

CAP_CNT overflows

End of enumeration elements list.


CAP_HLD0

Input Capture Counter Hold Register 0
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_HLD0 CAP_HLD0 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 CAP_HLD

CAP_HLD : Input Capture Counter Hold Register\nWhen an active input capture channel detects a valid edge signal change, the CAPCNT value is latched into the corresponding holding register. Each input channel has itself holding register named by CAP_HLDx where x is from 0 to 2 to indicate inputs from IC0 to IC2, respectively.
bits : 0 - 23 (24 bit)
access : read-write


CAP_HLD1


address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_HLD1 CAP_HLD1 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

CAP_HLD2


address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAP_HLD2 CAP_HLD2 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


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.