# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ32MC10X -- Motor Control PWM

- 1
- 2
…
- 32
- 33
- 34
- 35
- 36
…
- 49
- 50

PIC24F Family Reference Manual
DS39735A-page 47-34 Preliminary © 2010 Microchip Technology Inc.
47.12.1 Dead-Time Assignment
The Dead-Time Control Register 2 (PxDTCON2) contains control bits that allow the two
programmable dead times to be assigned to each of the complementary outputs. There are
two dead-time assignment control bits for each of the complementary outputs. For example,
the Dead-Time Select for PWM1 Signal Going Active (DTS1A) and Dead-Time Select for PWM
I/O Pair 1 Signal Going Inactive (DTS1I) control bits select the dead times to be used for the
PWM1H1/PWM1L1 complementary output pair. The pair of dead-time selection control bits are
referred to as the dead-time-select-active and dead-time-select-inactive control bits,
respectively. The function of each bit in a pair is as follows:
 The DTS3A:DTS1A control bits select the dead time that is to be inserted before the
high-side output is driven active.
 The DTS3I:DTS1I control bits select the dead time that is to be inserted before the low-side
PWM output is driven active.
Table 47-3 summarizes the function of each dead-time selection control bit.
Table 47-3: Dead-Time Selection Bits
47.12.2 Dead-Time Ranges
Dead Time Unit A and Dead Time Unit B are set by selecting an input clock prescaler value
and a 6-bit unsigned dead-time count value.
Four input clock prescaler selections have been provided to allow a suitable range of dead
times based on the device operating frequency. The clock prescaler option can be selected
independently for each of the two dead-time values. The dead-time clock prescaler values are
selected using the Dead Time Unit A. The Prescale Select (DTAPS) bits<1:0> and Dead Time
Unit B Prescale Select (DTBPS) bits<1:0> in the Dead-Time Control Register 1
(PxDTCON1<15:14> and PxDTCON1<7:6>) SFR. The following clock prescaler options can
be selected for each of the dead-time values:
 T
CY
 2 T CY
 4 T CY
 8 T CY
Equation 47-4: Dead-Time Calculation
Bit Function
DTS1A Selects PWM1H1/PWM1L1 dead time inserted before PWM1H1 is driven active.
DTS1I Selects PWM1H1/PWM1L1 dead time inserted before PWM1L1 is driven active.
DTS2A Selects PWM1H2/PWM1L2 dead time inserted before PWM1H2 is driven active.
DTS2I Selects PWM1H2/PWM1L2 dead time inserted before PWM1L2 is driven active.
DTS3A Selects PWM1H3/PWM1L3 dead time inserted before PWM1H3 is driven active.
DTS3I Selects PWM1H3/PWM1L3 dead time inserted before PWM1L3 is driven active.
Dead Time
Prescale Value  T
CY
DT =
Note: DT (Dead Time) is the DTA<5:0> or DTB<5:0> register value.

- 1
- 2
…
- 32
- 33
- 34
- 35
- 36
…
- 49
- 50