User manual
PSMC Designer User’s Guide
DS40001671B-page 14 2012-2013 Microchip Technology Inc.
2.11.3 Load Code
Selecting the Load Code menu option retrieves the SFR information from the file and
sets the device selection and all PSMC instance configurations contained in the code
file. The load algorithm automatically recognizes whether the code was saved as C or
assembly and reads it accordingly.
2.12 CLOCK
The clock control determines the rate at which the synchronous event timer, blanking
timers, and dead-band timers all increment. The clock selections should be made first
since the times in the aforementioned controls are all affected by the clock selections.
The clock control GUI is shown in Figure 2-2.
FIGURE 2-2: CLOCK CONTROL
2.12.1 Clock Source
The clock source selects one of three PSMC clock sources:
•F
OSC – internal system oscillator
• 64 MHz – 64 MHz clock derived from the 16 MHz HFINTOC by multiplying by 4.
• PSMCxCLK pin – The I/O pin designated as the PSMC clock input.
When either the F
OSC or PSMCxCLK pin is selected, then the actual frequency is
specified by entering the number in MHz in the text box below the clock selection
combination box. Selecting 64 MHz forces the frequency to 64 MHz, which cannot be
altered.
2.12.2 Prescale
The prescale selection determines which of four dividers is used to reduce the selected
clock source to the psmc_clk output frequency. The four selections are:
• Divide by 1
• Divide by 2
• Divide by 4
• Divide by 8
2.13 TIMER
The timer control GUI, shown in Figure 2-3, is opened by clicking on the timer block in
the main GUI. The timer is a 16-bit counter to which the synchronous period event,
rising event, and falling event count registers are compared to create their synchronous
events.