23.5.4 Control D

Name: CTRLD
Offset: 0x03
Reset: 0x00
Property: -

Bit 76543210 
 HREN[1:0]SCALEMODE[1:0]AMPENSCALE   
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bits 7:6 – HREN[1:0] High Resolution Enable

This bit field enables high resolution. High resolution increased the duty cycle resolution.
ValueNameDescription
0x0 OFF High Resolution disabled
0x1 4X Resolution increased by four (two bits)
0x2 8X Resolution increased by eight (three bits)
0x3 - Reserved

Bits 5:4 – SCALEMODE[1:0] Scale mode

This bit field defines how OFFSET is generated and used when writing to compare registers when scaling is enabled.
ValueNameDescription
0x0 CENTER Offset generated so written compare values are scaled from center, 50% duty cycle
0x1 BOTTOM Offset generated so written compare values are scaled from BOTTOM, 0% duty cycle
0x2 TOP Offset generated so written compare values are scaled from TOP, 100% duty cycle
0x3 TOPBOTTOM Written compare values < 50% are scaled from TOP, and written compare values > 50% are scaled from BOTTOM. 0% values give compare value 0, and 100% values give compare value equal to TOP.

Bit 3 – AMPEN Amplitude Control Enable

Setting this bit to ‘1’ enabled the use of amplitude and offset registers. Setting this bit to ‘1’ has only a function if the SCALE bit is written to ‘1’.

Bit 2 – SCALE Scale Enable

Setting this bit to ‘1’ allows writing fractional value to the Compare, Compare Buffer and Amplitude registers. If scaling is enabled, a write to the Compare (TCEn.CMPn) or Compare Buffer (TCEn.CMPnBUF) register is multiplied with the Amplitude (TCEn.AMP) or Period (TCEn.PER) register. A write to the Amplitude (TCEn.AMP) register is multiplied with the period (TCEn.PER) register.

The written value must be of format UQ1.15 providing a range between 0 and 2 - 2-15.

ValueNameDescription
0 NORMAL An absolute value is used when writing to the AMP and CMPn registers
1 FRACTIONAL A fractional value is used when writing to the AMP and CMPn registers