\n
address_offset : 0x0 Bytes (0x0)
size : 0x1000 byte (0x0)
mem_usage : registers
protection : not protected
Control and status register
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
Counter wrap value
address_offset : 0x10 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x14 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x1C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH1_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x20 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x24 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH1_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x28 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x2C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x30 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH2_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x34 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x38 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH2_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x3C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x40 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x44 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH3_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x48 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x4C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH3_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x50 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x54 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x58 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH4_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x5C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x60 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH4_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x64 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x68 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x6C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH5_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x70 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x74 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH5_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x78 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x7C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x80 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH6_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x84 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x88 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH6_TOP :
bits : 0 - 15 (16 bit)
access : read-write
Control and status register
address_offset : 0x8C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Enable the PWM channel.
bits : 0 - 0 (1 bit)
access : read-write
PH_CORRECT : 1: Enable phase-correct modulation. 0: Trailing-edge
bits : 1 - 1 (1 bit)
access : read-write
A_INV : Invert output A
bits : 2 - 2 (1 bit)
access : read-write
B_INV : Invert output B
bits : 3 - 3 (1 bit)
access : read-write
DIVMODE :
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
0 : div
Free-running counting at rate dictated by fractional divider
1 : level
Fractional divider operation is gated by the PWM B pin.
2 : rise
Counter advances with each rising edge of the PWM B pin.
3 : fall
Counter advances with each falling edge of the PWM B pin.
End of enumeration elements list.
PH_RET : Retard the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running.
bits : 6 - 6 (1 bit)
access : read-write
PH_ADV : Advance the phase of the counter by 1 count, while it is running.
Self-clearing. Write a 1, and poll until low. Counter must be running
at less than full speed (div_int + div_frac / 16 > 1)
bits : 7 - 7 (1 bit)
access : read-write
INT and FRAC form a fixed-point fractional number.
Counting rate is system clock frequency divided by this number.
Fractional division uses simple 1st-order sigma-delta.
address_offset : 0x90 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC :
bits : 0 - 3 (4 bit)
access : read-write
INT :
bits : 4 - 11 (8 bit)
access : read-write
Direct access to the PWM counter
address_offset : 0x94 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH7_CTR :
bits : 0 - 15 (16 bit)
access : read-write
Counter compare values
address_offset : 0x98 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 bit)
access : read-write
Counter wrap value
address_offset : 0x9C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH7_TOP :
bits : 0 - 15 (16 bit)
access : read-write
This register aliases the CSR_EN bits for all channels.
Writing to this register allows multiple channels to be enabled
or disabled simultaneously, so they can run in perfect sync.
For each channel, there is only one physical EN register bit,
which can be accessed through here or CHx_CSR.
address_offset : 0xA0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0 :
bits : 0 - 0 (1 bit)
access : read-write
CH1 :
bits : 1 - 1 (1 bit)
access : read-write
CH2 :
bits : 2 - 2 (1 bit)
access : read-write
CH3 :
bits : 3 - 3 (1 bit)
access : read-write
CH4 :
bits : 4 - 4 (1 bit)
access : read-write
CH5 :
bits : 5 - 5 (1 bit)
access : read-write
CH6 :
bits : 6 - 6 (1 bit)
access : read-write
CH7 :
bits : 7 - 7 (1 bit)
access : read-write
Raw Interrupts
address_offset : 0xA4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0 :
bits : 0 - 0 (1 bit)
access : read-write
CH1 :
bits : 1 - 1 (1 bit)
access : read-write
CH2 :
bits : 2 - 2 (1 bit)
access : read-write
CH3 :
bits : 3 - 3 (1 bit)
access : read-write
CH4 :
bits : 4 - 4 (1 bit)
access : read-write
CH5 :
bits : 5 - 5 (1 bit)
access : read-write
CH6 :
bits : 6 - 6 (1 bit)
access : read-write
CH7 :
bits : 7 - 7 (1 bit)
access : read-write
Interrupt Enable
address_offset : 0xA8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0 :
bits : 0 - 0 (1 bit)
access : read-write
CH1 :
bits : 1 - 1 (1 bit)
access : read-write
CH2 :
bits : 2 - 2 (1 bit)
access : read-write
CH3 :
bits : 3 - 3 (1 bit)
access : read-write
CH4 :
bits : 4 - 4 (1 bit)
access : read-write
CH5 :
bits : 5 - 5 (1 bit)
access : read-write
CH6 :
bits : 6 - 6 (1 bit)
access : read-write
CH7 :
bits : 7 - 7 (1 bit)
access : read-write
Interrupt Force
address_offset : 0xAC Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0 :
bits : 0 - 0 (1 bit)
access : read-write
CH1 :
bits : 1 - 1 (1 bit)
access : read-write
CH2 :
bits : 2 - 2 (1 bit)
access : read-write
CH3 :
bits : 3 - 3 (1 bit)
access : read-write
CH4 :
bits : 4 - 4 (1 bit)
access : read-write
CH5 :
bits : 5 - 5 (1 bit)
access : read-write
CH6 :
bits : 6 - 6 (1 bit)
access : read-write
CH7 :
bits : 7 - 7 (1 bit)
access : read-write
Interrupt status after masking & forcing
address_offset : 0xB0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0 :
bits : 0 - 0 (1 bit)
access : read-only
CH1 :
bits : 1 - 1 (1 bit)
access : read-only
CH2 :
bits : 2 - 2 (1 bit)
access : read-only
CH3 :
bits : 3 - 3 (1 bit)
access : read-only
CH4 :
bits : 4 - 4 (1 bit)
access : read-only
CH5 :
bits : 5 - 5 (1 bit)
access : read-only
CH6 :
bits : 6 - 6 (1 bit)
access : read-only
CH7 :
bits : 7 - 7 (1 bit)
access : read-only
Counter compare values
address_offset : 0xC Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
A :
bits : 0 - 15 (16 bit)
access : read-write
B :
bits : 16 - 31 (16 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 Embeetle, an IDE designed from scratch for embedded software developers.