HV583 128-Channel High-Voltage Driver IC Evaluation Board User’s Guide
DS50002447A-page 22
2015 Microchip Technology Inc.
FIGURE 2-7:
MPLAB
®
X IDE Workspace.
2.4.6
Modifying the Control Signals and Data in the Code
To modify the control signals and the data to be sent to the HV583, open the
HV583_defines.h
file located under
the
Header Files folder.
To change the control signals, LE, OE, DIR, RST, OH and OL, locate the section in the
file labeled,
INPUT CONTROL SIGNALS
(see
), and modify accordingly.
Data transmission is controlled by pressing the push button switches on the PIC32
Starter Kit (see
). The user can select one of three available cases:
•
HV583_CASE_1_ENABLE
and
HV583_CASE_1_DISABLE
control the data
transmission; selectable by pressing SW1.
•
HV583_CASE_2_ENABLE
makes all HV
OUT
n channels low; selectable by
pressing SW2.
•
HV583_CASE_3_ENABLE
makes all HV
OUT
n channels high; selectable by
pressing SW3.
FIGURE 2-8:
Input Control Signals: LE, OE, DIR, RST, OH and OL.
To change the data to be sent to the Input registers of the HV583, scroll to the bottom
of the file, locate the section,
DATA TO SEND TO REGISTERS
, and change the values
as desired (see
).
The HV583 consists of four 32-bit Shift registers.
The first 32-bit register uses D1A/D1B as input/output pins. The second register uses
D2A/D2B, the third register uses D3A/D3B and the fourth register uses D4A/D4B.
In the code,
DATA_1
, corresponds to the first bit of data to be sent to all of the four
registers. The Least Significant Bit (LSB) corresponds first to D1A/D1B, second to
D2A/D2B, third to D3A/D3B, and fourth to D4A/D4B.