CYCLONE-User-Manual.pdf - 第35页

User Manual For Cyclone LC Programmers 35 Note: If these jumpers are not set correctly , the Cyclone will not function as intended. Figure 4-2: Cyclone Power Schemes & Corresponding Jumper Settings The bottom edge of…

100%1 / 149
User Manual For Cyclone LC Programmers 34
4 TARGET POWER MANAGEMENT
Different target devices may require different power schemes which depend on the design of the
target board, target voltages, and even the device architecture. PEmicro has designed the
Cyclone LC to be capable of powering a target before, during, and after programming. Power can
be sourced at many voltage levels from the Cyclone itself, or sourced by an external power supply
and switched by the Cyclone.
Figure 4-1: Five different paths to power a target
The versatility of the Cyclone power scheme gives the user the utmost flexibility, and includes the
following features:
Provides power through a power jack or through the debug connector
Provides internally generated voltage from 1.6v-5.5v at up to 500mA
Switches an external power supply voltage, up to 24V at 1amp
Selectively powers the target before, during, and after programming
Powers down the target connections between programming operations
Uses power switching to aid entry into debug mode for certain targets
Provides target voltage and current measurement capabilities
If target power is required, each target board may vary where the power is sourced from, externally
or internally, and how it is channeled to the target: through the debug header or to a separate
connector to the board. Power that is passed through and managed by the Cyclone goes through
power relays so it can be power cycled. This is extremely useful because it also allows the power
to be off during setup and automatically powered on by the Cyclone for programming. For some
devices, the process of entering debug mode requires that the device be powered down and
powered back up. Power can also be left in a desired power state, either on or off.
4.1 Cyclone Configuration
There are two different places Power Management is configured and they should be matched:
first, by the jumpers on the Cyclone LC, and second, in the setup of the programming image.
The Cyclone jumpers are the most important because they are the physical connection to the
target. The Cyclone has an easy access panel that reveals debug header connections for a variety
of different architectures, and a 2x4 jumper block for configuring power management of the target.
The specific location of the jumpers is indicated by the label POWER JUMPERS in Figure 4-3.
This set of 4 jumpers can be used to set 5 different power management schemes for the target.
User Manual For Cyclone LC Programmers 35
Note: If these jumpers are not set correctly, the Cyclone will not function as intended.
Figure 4-2: Cyclone Power Schemes & Corresponding Jumper Settings
The bottom edge of the Cyclone LC has a Power In jack for externally provided power, and the top
edge of the Cyclone has Power Out jack, for when power schemes including these are used (see
Figure 4-3). One of the provided ribbon cables is connected to the appropriate debug header
based on the specific target architecture.
Figure 4-3: Cyclone Hardware Features: Power Jumpers and Target Headers
The power settings that are set by the jumpers are a physical connection and take precedence.
1 Target is powered independently
2
Power provided externally (center +) and
managed by Cyclone, power out to debug
ribbon cable.
3
Power provided externally (center +) and
managed by Cyclone, power out to 2.5 mm
output jack (center +)
4
Power provided by Cyclone, power out to
debug ribbon cable
5
Power provided by Cyclone, power out to
2.5 mm output jack (center +)
User Manual For Cyclone LC Programmers 36
After the basic hardware setup, target power and voltage settings are also set in the creation of a
SAP (stand-alone programming) image. At a minimum the SAP image contains all the commands
to Erase, Program, and Verify a programming image. More sophisticated power selections in the
SAP image can control the relays, target voltage, delays, and power down after SAP operations,
as shown in the selection dialog.
Figure 4-4: Target Power & Voltage Settings
Target voltages (with appropriate jumper settings) in the range of 1.6 to 5.5 volts may be provided.
There is also the option to select the internal Cyclone relays to power cycle the Cyclone during
programming, and set the length of delays during power up and down. This is extremely useful to
make sure the power is off when hooking up the target. Power cycling is especially important for
architectures that require it to enter debug mode. The SAP image settings may even be used to
turn off the target power once programming is completed, to ensure that the microcontroller is left
in a halted state and not running.
4.2 Cyclone Setup
Below is a tutorial that demonstrates how to set up the Cyclone LC in each of the 5 power
configurations. A very common configuration is the independently powered target. In this power
scenario, the Cyclone will detect and use the power on the target for the appropriate debug
communication voltages.
4.2.1 Independently Powered Target
In the simplest and most common scenario, no jumpers are set, so the target is powered
independently from the Cyclone. No power is passed through the debug header, just the standard
debug signals. The Cyclone automatically detects the target power and sets the debug signals to
match.
Figure 4-5: Independently Powered Target
4.2.2 Power provided by the Cyclone to the debug cable
It is also possible for the Cyclone to generate power through an internal regulator in the range of
1.6 to 5.5 Volts. In the jumper configuration below, the Cyclone generates the power through a
voltage regulator, and passes it through the power relays and out through the debug ribbon cable,
which is set up during the SAP image creation. There is only one connection to the target
processor which will handle both the communication and the power. In this scenario, external
power must not be connected to the Power In jack since it is already being provided.