AN-1590 Rev. New - Holt Integrated Circuits

advertisement
 23351 Madero,
Mission Viejo, CA
92691. USA.
Tel:
+ 1 949 859 8800
Fax: + 1 949 859 9643
Email: sales@holtic.com
Web: www.holtic.com HI‐15901553BDualTransceiver
WithSPIAmplitudeControl
EvaluationBoard
UserGuide
October,2014
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 INTRODUCTION
The Holt HI‐1590 Evaluation Board demonstrates features of the HI‐1590 MIL‐STD‐1553B dual transceiver IC. This device transmits and receives Manchester encoded 20 bit MIL‐STD‐1553B serial data suitable bus transformers. Transceiver drive amplitude can be digitally adjusted from 0 to 26 Vp‐p through the SPI interface. Adjustment can also be made with a 0 to 3.3VDC analog control signal; a potentiometer is provided for this. Amplitude controls for both buses are ganged together. In SPI mode, a low range option allows for more accurate amplitude adjustment from 0 to 4.9 Vp‐p. The board runs from a single 3.3V ±5% supply voltage. A MIL‐
STD‐1553B protocol message generator and receiver are included on the board to demonstrate the HI‐1590 features. The EVM (Evaluation Module) includes a microcontroller that generates the SPI messages, the interface is through a terminal emulator connected to a PC through the USB interface. The EVM is shown in the picture below: Fig 1 – HI‐1590 Evaluation Board AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 This guide summarizes how to set up and running quickly. KITCONTENTS



This User Guide HI‐1590 Evaluation Board Mini USB Serial Cable. BoardBlockDiagram
3.3V
Supply
ANALOG CONTROL
VCONT
RUN
RESET
Message A
Transceiver A
1553B
Message
Generator
ACTIVE
EEPROM
1
BUSA
DB2791
TRANSFORMER
BUSB
HI-1590
Message B
BC
DB2791
TRANSFORMER
Transceiver B
DIP SW
(5)
RT
EEPROM
2
MC9S12XD
16 Bit MCU
USB
RESET Button
DIP SW
(4)
AN‐1590, Rev. New DIP SW(6)
HOLT INTEGRATED CIRCUITS 10/10/14 LEDFunctions
REF NAME DEFAULT
DESCRIPTION LED1 POWER ON Indicated when 3.3V power is present LED2 ACTIVE OFF Flashes at the start of a 1553 message transmit sequence REF NAME DEFAULT
J4 LINK FOR POT OFF Link to use potentiometer R3 to adjust output amplitude J5 LINK FOR SPI ON Link to use SPI to adjust output amplitude J8 HOLD IN RESET OFF Holds the microcontroller in reset, for instance while using an external SPI interface. J12 BC/RT BC Connects memory for BC or RT messages LinkJumperFunctions
DESCRIPTION WiredJumperFunctions(JP)
REF NAME DEFAULT
DESCRIPTION JP1 ON Link to use on‐board 70 Ω load on Bus B output JP8 ON Link to use on‐board 70 Ω load on Bus A output JP2, 3, 4, 5 JP4, 5 ON Option links for transformer variants, Bus B JP6, 7, 9, 10 JP6, 9 ON Option links for transformer variants, Bus A JP11 ON Connects Bus A negative output to ground JP12 ON Connects Bus B negative output to ground JP13‐16 ON Cut if using an external 1553 message generator AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 SwitchFunctions
REF SW1/1 NAME DEFAULT
VSEL ON DESCRIPTION Selects output control of amplitude range, using SPI. ON = SPI control 0‐24V, Low = SPI, 0‐2.4V SW1/2 TXAINH OFF Inhibits the transmitter output of transceiver A SW1/3 TXBINH OFF Inhibits the transmitter output of transceiver B SW1/4 RXAEN ON Enables the receiver of transceiver A SW1/5 RXBEN ON Enables the receiver of transceiver B SW3 RUN Press = Starts 1553 messages SW4 STOP Press = Stops 1553 messages SW5/1‐5 AUTOEN etc 01101 Message loading control (leave in default) SW6/1‐6 RT1A4:0, RT1AP 000000 RT Address (only used if RT mode available) SW7 RESET Press to reset the microcontroller and control software ConnectorFunctions
REF NAME J1 BUSB 1553 Bus A connection (secondary of transformer) J2 BUSA 1553 Bus B connection (secondary of transformer) J3/ 1,2 RXA/nRXA Differential Logic signal from HI‐1590 Bus A receive data pins J3/ 3,4 RXB/nRXB Differential Logic signal from HI‐1590 Bus B receive data pins J6 Not fitted SPI interface for the EEPROMs J7 J9 USB J10 External SPI J11 Debug Header AN‐1590, Rev. New DESCRIPTION Data connector to load 1553 messages Connect to PC to send SPI commands from terminal emulator Use to connect an external SPI for HI‐1590 control Used for downloading microcontroller firmware HOLT INTEGRATED CIRCUITS 10/10/14 TestPointFunctions
REF NAME DESCRIPTION
TP1/TP2 BUSB 1553 Bus B connection (secondary of transformer) TP4/TP6 BUSA 1553 Bus A connection (secondary of transformer) TP3, 8,9,10 GND Board Ground TP5 VCONT Connection to measure of input analog amplitude control, note that J5 should be open. J4 should be open when inputting a voltage. TP6 UPDATE Test point for Update signal indicates when MIL‐STD‐1553B word has been received TP7 VSEL This pin monitors voltage on the VSEL pin control on the output amplitude. High = SPI control 0‐24V Float = Analog Control Low = SPI Control, 0‐5.1V TP3, 8, 9, 10 GND Board Ground TP11 3V3 VLOGIC Supply, connect power supply here TP21 VDD VLOGIC after supply filter TP13 IRQ INTERRUPT TP14 ACTIVE TP17/18 TXDO/RXDO TXA, nTXA Connect external 1553 data here if not using the on board message generator for BUSA. Need to cut links TXA and nTXA. TXB, nTXB Connect external 1553 data here if not using the on board message generator for BUSB. Need to cut links TXB and nTXB. Produces pulse just before 1553 message starts, can be used to trigger scope. USB data. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 UsingtheBoard
1. Check all the link and switch positions comply with the tables above. Connect a 3.3V, 1A supply to the 3V3 test point. A 1A supply current is required at maximum amplitude. Verify the ‘Power On’ LED is lit; the board should take about 160mA, when not sending 1553 messages. Connect the mini USB lead to your PC and then to the HI‐1590 board. Your PC should automatically install the driver, if not the driver FT231 can be installed from the Holt CD. If you have problems installing the driver please refer to the FTDI website below: http://www.ftdichip.com/Documents/InstallGuides.htm
2. All control of the HI‐1590 is done through the ‘Control Console’. This requires use of a terminal emulator for communication, such as HyperTerminal or Tera Term. Tera Term is used with Windows versions of Vista or later and is supplied on the Holt CD. To install Tera Term: 





Use the Tera Term installer program teraterm.exe from the Holt CD. Accept the license agreement stating redistribution is permitted provided that copyright notice is retained. The notice can be displayed from the Tera Term window by clicking Help then clicking About Tera Term. Continuing to install… Accept the default install destination and click Next. At the Select Components screen, unselect all options except Additional Plugin = TTXResizeMenu and click Next. Select the installed language, then click Next. Accept the default Start Menu folder, then click Next. Select any desired shortcuts, then click Next. At the Ready to Install screen, click Install. Run the Tera Term program. At the New Connection screen, select Serial and choose the selected USB serial COM port, you can find the correct COM port using Device Manager. 3. Click Setup then Serial Port to open the serial port setup window. Choose the COM port for the mini‐USB connection and then select the following settings: Baud Rate: 115200, Data: 8 bits, Parity: none, Stop: 1 bit, Flow Control: none 4. The evaluation software is preprogrammed into the microcontroller and was loaded at the Holt Applications Support Center. On pressing the ‘RESET MICRO’ button on the board, the software displays a message on the monitor, as shown below. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 Note: If under any circumstances the software locks up, use the ‘RESET’ key to restart. 5. Press the ‘A’ key to set the output amplitude. Enter the maximum amplitude of ‘FF’ as shown below. 6. Connect an oscilloscope to the ABUS and BBUS terminal, with the grounds going to nABUS and nBBUS respectively. Grounding the negative bus terminals provides differential voltage measurements using just one scope probe per bus. Trigger the scope from the ACTIVE test point. Press the STOP button, this loads the 1553 messages. Press the RUN button to start message transmission. The messages will be transmitted alternately on the A and B buses. Check that a 1553 signal of about 24V p‐p amplitude is seen on one of the buses, as shown in Fig 2 below. Every 5 seconds it will switch to the other bus and during transmission you should see the 3.3V supply current go up to about 1A. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 Fig 2: Yellow is BUSA output, green is BUSB, Red is the ACTIVE trigger signal 7. The HI‐1590 can also read back data from the DAC register but only after a value has been written into the register. Press the ‘D’ key, type in ‘80’, the previous setting of ‘FF’ should be read out as shown below. Observe the amplitude on the scope; this should be reduced by half, or approximately 12V p‐p. 8. The SPI software has a ramp function, this ramps the amplitude on both outputs up to maximum and back down to zero in a ‘sawtooth’ function. Press the ‘Y’ button and observe the amplitude rising and falling. Whilst in this mode switch the VSEL switch to ‘Low’, this selects the low amplitude, you should see the oscilloscope trace go down to one fifth maximum amplitude or about 5V. 9. As well as SPI control of amplitude through a DAC, the HI‐1590 has the option of using an analog voltage of 0 to 3.3VDC to control the amplitude. To use this feature move the jumper AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 link from J5 to J4. Now amplitude is controlled by potentiometer R3, turn fully clockwise for maximum amplitude. An external voltage can be used by removing the J4 jumper and applying the voltage to pin 2 of J4. The range is 0 to VLOGIC (3.3V nominal) 10. To test HI‐1590 BusA and BusB receivers, RXENA and/or RXENB switches should be in the high position. Any 1553B compliant data is now output on the relevant RXA/nRXA and RXB/nRXB pins of J3. An example is shown in Fig 3 below: Fig 3: Yellow is BUSA output, green is RXA output, Red is the ACTIVE trigger signal 11. If isolation of the 1553B outputs is required from the board ground the soldered jumpers JP11 and JP12 should be opened. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 BUSB
J1
J3
Header 1x4, 0.2" PITCH
TP2
3
TP24
nTXB
TP3
GND
TP25
nTXA
R1
nRXB 4
70 1W
JP1
TP23
TXA
RXB 3
nBBUS
2
1
BBUS
GND
TP22
TXB
BLK
RXA 1
RED
nRXA 2
TP1
JP13
In_TXB
JP5
B4
In_nTXB
nTXB
nTXB
JP15
In_TXA
3V3
C3
100nF
RXAEN
3V3
C1
100nF
BUSB
nBUSB
1
2
3
T1
PM-DB2791S
+ C2
68uF
TXB
TXB
JP14
8
7
6
5
4
B8
JP4
TXA
TXA
JP16
In_nTXA
nTXA
nTXA
LOCATE
C1 AT
PIN 6.
KEEP TRACES SHORT AND EQUAL TRACE LENGTH
BUS NOT CONFIGURED
TO TEST DIRECT-COUPLED,
NO SERIES RESISTORS.
11
10
9
8
7
6
5
4
3
2
1
GND
1
nRXB
RXB
SW1
3V3
0
23
24
25
26
27
28
29
30
31
32
33
ON (CLOSED)
1
VSEL
TXIHA
TXIHB
RXAEN
RXBEN
TXIHB
In_TXB
In_nTXB
1 2 3 4 5
VCONT
In_nTXA
In_TXA
SI
SO
J4
TP5
PM-DB2791S
C6
100nF
1
3
R2
70 1W
A4
BUSA
J2
2
nABUS
TP6
JP11
BLK
nABUS
3V3
nBBUS
<---- CW
JP12
R4
0 OHM
R3 1K
TP8
GND
Title
HI-1590 1553 Dual Transceiv er
Size
A
47K 47K 47K
R6 R7 R8
Date:
AN‐1590, Rev. New JP8
JP6
nBUSA 1
2
3
R9
47K
1K
R5
RED
A8
nRXA
RXA
TXIHA
SCK
nCS
2
VSEL
TP7
NC
TXINHB
TXB
TXB
N/C
N/C
RXA
RXA
TXINHA
SCK
CSN
J5
U1
HI-1590 PQI
N/C
BUSA
BUSA
BUSA
BUSA
VCONT
VCONT
TXA
TXA
SI
SO
8
7
6
5
4
JP9
RXBEN
C5 47uF
VDD
CAP
CAP
CRES
RXBEN
GND
GND
GND
RXB
RXB
VSEL
TP4
T2
44
43
42
41
40
39
38
37
36
35
34
2
C4
4.7uF
12
13
14
15
16
17
18
19
20
21
22
1
3V3
ABUS
BUSB
BUSB
BUSB
BUSB
VDD
VDD
GND
GND
GND
RXENA
N/C
LOCATE
C3 CLOSE
TO PIN 12.
HOLT INTEGRATED CIRCUITS Document Number
<Doc>
Wednesday , July 09, 2014
Rev
Sheet
10/10/14 1
of
3
C12 C10
100nF 100nF
C13
100nF
TP9
GND
+ C16
C15
100nF
4.7uF
C11
100nF
J6
Header 1x4
3V3
C17
100nF
TP10
GND
TP11
C18
100nF
1
2
3
4
C7
100nF
+ C9
C8
100nF
68uF
3V3
3V3
+
nECS
ESCK
EMISO
EMOSI
3V3
DECOUPLING
U3 PINS 8, 21, 50, 60
3V3
DECOUPLING
U3 PINS 39, 42 3V3
150
POWER
RUN
MCLK
GND
RT1A0
RT1A1
RT1A2
nMR
RT1A3
RT1A4
3
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
3V3
GND
RT1LOCK
GND
BCENA
EMISO
EEPROM LOAD
R12
100K
3V3
CS
SO
WP
GND
VCC
HOLD
SCK
SI
8
7
6
5
ESCK
EMOSI
U2 25LC512 8-SOIC
nMR
SW4
3V3
C20
100nF
R14
1
2
3
4
EMISO
GND
nRXA
RXA
nRXB
RXB
3V3
10K
CS
SO
WP
GND
VCC
HOLD
SCK
SI
8
7
6
5
ESCK
EMOSI
U4 25LC512 8-SOIC
BCTRIG
TP14
3V3
R15
TXA
ACTIVE
nTXB
330
SW5
ON (CLOSED)
GND
1
0
AUTOEN
CPYRQ
RT1ENA
BCENA
RT1LOCK
1 2 3 4 5
GND
LED2
ACTIVE
R16
47K
SW6
Title
HI-1590 Dual 1553 Transceiv er with SPI Demo Board - Message Generator
Size
A
Date:
AN‐1590, Rev. New 3V3
10K
STOP
3V3
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
1
2
3
4
3V3
GND
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
R11
nECS2
nMR
RT1A4
RT1A3
RT1A2
RT1A1
RT1A0
RT1AP
3V3
3V3
READY
AUTOEN
nPCS0
MOSI
MSCK
MISO
RT1ENA
EECOPY
nMR
CPY RQ
BCENA
3V3
3V3
nECS1
nECS
CON3
TXB
J7
1
2
3
nTXA
RT1ENA
RT1AP
EMISO
EMOSI
3V3
GND
GND
GND
nECS
EECOPY
ESCK
GND
GD OUT
OSC1
50.0MHz
2
1
OE VCC
4
3V3
RT MESSAGES - 2 & 3
BCTRIG
BENDI
RAMEDC
TEST
CE
RT1LOCK
MODE
MTSTOFF
SI
BCENA
SCK
BUSA
HI-6131 PQFP
SO
VDD
VDD
BUSA
MCLK MODE = 0 (EXT TRANSCEIVER)
BUSB
GND
VDD
COMP = 0 (NO PIN, INT PULL-DN)
RT1A0 TEST = 0 (NORMAL)
BUSB
RT1A1
RT2ENA
RT1A2
T0
MR
T1
RT1A3
T2
RT1A4
T3
ON (CLOSED)
R13
100K
NC
TXINHB
TXINHA
AUTOEN
VDD
GND
RT1SSF
ACTIVE
READY
MTPKRDY
RT2MC8
RT1MC8
ACKIRQ
IRQ
VDD
GND
GND
nPCS0
GND
MOSI
MSCK
MISO
3V3
SW3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
J12
BC MESSAGES - 1 & 2
RT1ENA
RT1APAR
MISO
MOSI
VDD
GND
TTCLK
MTTCLK
ECS
EECOPY
ESCLK
MTRUN
T7
T6
T5
T4
BCTRIG
TP13
1 2 3 4 5 6
C19 100nF
3V3
U3
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
3V3
3V3
GND
LED1
ACTIVE
READY
R10
GND
GND
GND
AUTOEN
3V3
GND
C14 68uF
IRQ
HOLT INTEGRATED CIRCUITS Document Number
<Doc>
Wednesday , July 09, 2014
Rev
A
Sheet
10/10/14 2
of
3
L1
F-BEAD 1.4A
U6
Y ELLOW
+ C22
TP17
68uF 16V
RXD0
20
C21
1
.1uF
2
GND
VCC3O
TP18
TXD0
3
4
5
6
220K nRESET
R17
VDD
3V3
3V3
U5
VDD
3V3
7
C24
.1uF
8
1
9
SW7
GND
RESET
MICRO
19
J8
"HOLD IN
RESET"
2
C25
.1uF
18
80
79
78
TXD
DTR#
14
13
12
11
8
7
6
5
RTS#
VCCIO
RXD
RI#
CBUS2
GND
CBUS1
DSR#
VCC
DCD#
RESET#
CTS#
GND
CBUS3
3V3OUT
CBUS0
USBDM
USBDP
10
1
75
74
15
C23
.1uF
14
5V
BKGD
13
69
68
VCC3O
12
USBDM
11
USBDP
R18
R19
3.3K
3.3K
TXD0
RXD0
C26
0.1uF
40
39
1 Mohm
R20
2
3
27R
SCK0
MOSI0
SS0
MISO0
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PM0/RX
PM1/TX
MODC/BKGD
PJ6
PJ7
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PS3/TXD1
PS2/RXD1
PS1/TXD0
PS0/RXD0
XIRQ/PE0
IRQ/PE1
PE2
PE3
ECLK/PE4
PE5
PE6
XCLKS/PE7
PAD00/AN00
PAD01/AN01
PAD02/AN02
PAN03/AN03
PAD04/AN04
PAD05/AN05
PAD06/AN06
PAD07/AN07
30 nRESET
70
71
72
73
SCK
SI
nCS
SO
16
17
18
19
20
21
22
23
41
42
43
44
45
46
47
48
51
52
53
54
55
56
57
58
USBDM
R22
4
5
C32
6
47pF
27R
C31
10pF
35
4Mhz
TP21
BCTRIG
VDDA
VRH
VRL
31
C34
3V3
C36
R23
220nF
4.7K 1% 470pF
C39
SPI BOARD
INTERFACE
1
3
5
J10
VDD
J11
2
4
6
VSSR1
VSSX
VSSA
XTAL
VREGEN
29
77
220nF
VDD
C29
220nF
C30
220nF
28
76
62
67
VDD
59
60
61
VDDPLL
C35
.01uF
33
32
R24
3.3K
VDDR1
VDDX
EXTAL
Y1
USBDP
C33
47pF
VDD
BKGD
34
R21
nMR
CASE
C28
10pF
C27 **
10nF
1
nCS
SO
SI
SCK
NC
GND
66
65
64
63
5V
2
4
6
8
10
12
14
16
DD+
RESET
FERRITE BEAD
USB_MINI_B_0
VCC
15
VDD
16
38
37
27
26
25
24
**
2
IOC7/PT7
IOC6/PT6
IOC5/PT5
IOC4/PT4
IOC3/PT3
IOC2/PT2
IOC1/PT1
IOC0/PT0
1
2
3
4
VDD1
VDD2
VSSPLL
VSS1
VSS2
TEST
XFC
9
49
10
50
36
C37
220nF
C38
220nF
MC9S12XDT512CAA
1
3
5
7
9
11
13
15
J9
FB1
SS1/PP3
SCK1/PP2
MOSI1/PP1
MISO1/PP0
17
FT231XS-R
MINI-USB
MISO2
MOSI2
SCK2
nRESET
HEADER 2X3
DEBUG HDR
Title
HI-1590 - Microcontroller
Size
B
Date:
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS Document Number
<Doc>
Wednesday , July 09, 2014
10/10/14 Rev
<Rev Code>
Sheet
3
of
3
Bill of Materials - HI-1590 MIL-STD-1553B Board
Item
1
Qty
17
Description
Capacitor, Cer 0.1uF
20% 50V Z5U 0805
Reference
C1,C3,C6,C7,C8,C10,C12,C13,C14,C1
5,C17,C18,C21,C23,C24,C25,C26
DigiKey
399-1176-1-ND
Mfr P/N
Kemet C0805C104M5UACTU
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
6
2
2
1
2
1
1
1
3
1
1
1
1
1
1
3
1
12
1
1
1
2
2
Capacitor, Cer 220nF
Capacitor, Cer 10pF
Capacitor, Cer 47pF
Capacitor, Cer 470pF
Capacitor, Cer 0.01uF
Capacitor, Cer 4.7uF
Capacitor, Cer 4.7uF
Capacitor, Cer 47uF
Capacitor 68uF 10%
Capacitor 68uF 10%
Connector, Receptacle
Header, Female, 30
Header, Female, 6 Pos
Header, Male 2x8 0.1"
Header, Single 1x4,
Header, Single 1x2,
Header, single 1x4,
Solder Jump 2
Solder Jump 3
LED Green 0805
LED Red 0805
Resistor, 69.8 Ohm 1W
Resistor, 27 5% 1/8W
C29,C30,C34,C37,C38,C39
C28,C31
C32,C33
C36
C27,C35
C16
C4
C5
C2,C9,C14
C22
J9
J7
J11
J10
J6 OPTIONAL
J4,J5,J8
J3
JP1-JP12
J12
ACTIVE
POWER ON
R1,R2
R20,R22
399-3491-1-ND
399-1108-1-ND
399-1133-1-ND
399-1133-1-ND
399-1160-1-ND
399-3134-1-ND
587-1379-1-ND
587-2783-1-ND
495-1507-1-ND
399-8397-1-ND
H2959CT-ND
S5568-ND
S5517-ND
S2012E-08-ND
S1012E-04-ND
S1012E-02-ND
S1012E-04-ND
Kemet C0805C224K5RACTU
Kemet C0805C100J5GACTU
Kemet C0805C471J5GACTU
Kemet C0805C471J5GACTU
Kemet C0805C103M5RACTU
Kemet C0805C475K9PACTU
Taiyo Yuden LMK325BJ475KDTaiyo Yuden
Kemet T495C686K006ZTE400
KemetT491D686K016AT
Hirose UX60-MB-5ST
Sullins PPPC152LJBN-RC
Sullins PPTC032LJBN-RC
Sullins PEC08DAAN
Sullins PEC04SAAN
Sullins PEC02SAAN
Sullins PEC04SAAN
160-1179-1-ND
160-1178-1-ND
RHM69.8BBCT-ND
P27ACT-ND
LiteOn LTST-C170GKT
LiteOn LTST-C170EKT
Rohm MCR100JZHF69R8
Panasonic ERJ-6GEYJ270V
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 Item
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Qty
1
1
3
1
2
5
2
1
1
1
1
1
1
2
1
3
2
3
3
1
1
1
1
1
1
2
6
6
6
Description
Resistor, 150 5% 1/8W
Resistor, 330 5% 1/8W
Res 3.3K, 1/8W 5%
Res 4.7K, 1/8W 1%
Resistor, 10K 5% 1/8W
Resistor, 47K 5% 1/8W
Resistor, 100K 5%
Resistor, 220K 5%
Res 1M, 1/8W 5%
Ferrite Bead, 220 Ohm
Inductor, 10uH, 100mA
Osc, 50MHz 25ppm
Crystal 4.00MHz, SMD,
DIP Switch 5-Position
DIP Switch 6-Position
Switch Tactile SPSTTransformer MIL-STDTest Point, Red
Test Point, Black
Test Point, Orange
Test Point, White
IC HI-1590 44QFN
IC HI-6131 64-PQFP
IC,
IC USB Serial Full
IC, Serial EEPROM
Stand-off, #4-40
Machine Screw, #4-40
Lock Washer, Int.Tooth
AN‐1590, Rev. New Reference
R10
R15
R18,R19,R24
R23
R11,R14
R6,R7,R8,R9,R16
R12,R13
R17
R21
FB1
L1
OSC1
Y1
SW1,SW5
SW6
SW3,SW4,SW7
T1,T2
3V3,ABUS, BBUS
GND, nBusA, nBusB
VDD
ACTIVE
U1
U3
U5
U6
U2,U4
-------------
DigiKey
P150ACT-ND
P330ACT-ND
P3.3KACT-ND
P4.7KACT-ND
P10KACT-ND
P47KACT-ND
P100KACT-ND
P220KACT-ND
P1.0MACT-ND
732-1602-1-ND
490-4029-1-ND
535-10087-1-ND
631-1005-1-ND
CT2195MST-ND
CT2196MST-ND
P12943SCT-ND
Holt PM-DB2791S
5010K-ND
5011K-ND
5012K-ND
5012K-ND
HOLT IC
HOLT IC
MC9S12XDT512CAA-ND
768-1129-1-ND
25LC512-I/SN-ND
3481K-ND
H342-ND
H236-ND
HOLT INTEGRATED CIRCUITS Mfr P/N
Panasonic ERJ-6GEYJ151V
Panasonic ERJ-6GEYJ331V
Panasonic ERJ-6GEYJ332V
Panasonic ERJ-6GEYJ472V
Panasonic ERJ-6GEYJ103V
Panasonic ERJ-6GEYJ473V
Panasonic ERJ-6GEYJ104V
Panasonic ERJ-6GEYJ224V
Panasonic ERJ-6GEYJ105V
Wurth 742792034
Murata LQM21FN100M70L
Abracon ASV-50.000MHZ-E-T
FOXSDLF/040
CTS 219-5MST
CTS 219-6MST
Panasonic EVQ-Q2K03W
Holt / Premier Magnetics
Keystone 5010
Keystone 5011
Keystone 5012
Keystone 5012
Holt IC
Holt IC
MC9S12XDT512CAA-ND
FTDI FT231XS-R
Microchip 25LC512-I/SN
Keystone 3481
B&F Supply PMS 440 0025 PH
B&F Supply INTLWZ 004
10/10/14 Appendix1
Demosoftwareoverview
This overview flow chart shows the demo program at a glance. Main.c Start
Initialize global variables + arrays
Initialize Peripherals
Initialize Interrupts
Initialize Timer
Configure MCU SPI bus
Configure UART
Set SPI clock rate
Display console header
Y
Case D
Display Control
Menu
SPI byte write to
amplitude register
and read back
previous setting
N
Y
SPI byte write to
amplitude register
Case A
Scan Keyboard
for Menu Selection
N
Y
Case Y
Y
Valid function
selected?
Enter Ramp
Amplitude Loop
N
N
At reset the program initializes the variables and configures the peripherals including the SPI block, Timers, Interrupts and serial communication UART. The program then enters Serial Command mode, this is an endless loop that continuously samples the keyboard. Once a key is pressed the The program enters a case function that selects which function to call. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 There is one write function that just writes a byte to the amplitude control register, a read function that writes data to the amplitude register whilst simultaneously reading back the previous byte. The third function is a loop that ramps up the amplitude to maximum and then ramps down, taking about 4 secs to complete this cycle. This last function is an endless loop that is interrupted by pressing any key. MCUClockandSPIFrequencies
The Freescale MC9S12XDT512 (MCU) on the main board uses a 4MHz crystal for operation and the built‐
in PLL multiplies this by 20 to achieve an 80MHz system clock. This system clock is divided by two for a 40MHz Bus Clock, used internally for the MCU peripherals. The PLL is programmed to multiply by 20 by this line of code in the Peripherals.c module: SYNR = 9;
// 80MHz PLL system clock
The SPI frequency is set at the beginning of the main.c module, by this code : SPI0BR = 0x00; // 20MHz SPI // SPI0BR = 0x01; // 10MHz SPI // SPI0BR = 0x02; // 5MHz SPI The speeds that are not used are commented out. In this case the 10MHz and 5MHz are commented out, so the 20MHz option is set. The maximum SPI frequency for the HI‐1590 is 20MHz, the code can be altered to set a lower rate of 10MHz or 5MHz, if desired. TimingandDelayFunctions
These functions provide the basic timing for the program. The Delay100us() can be used anywhere an accurate delay is needed in the program . The global g_count100us variable is decremented at the 100us timer rate. This variable is used by a general delay function which can be called with a specified number of delay intervals. The g_count100us variable is a 16‐bit integer so the delay ranges from 100us to 6.5536 seconds. // -------------------------------------// General timer tick 100us for delays
// -------------------------------------void Delay100us(unsigned int delay){
g_count100us=delay;
while(g_count100us);
}
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 SPIDriverFunctions
Only one SPI function is used, trx8bits_8, shown the figure below: Only single‐byte transfers are used on the HI‐1590, this HI‐1590 SPI driver function is included in the Driver.c module and its Driver.h header file. The MCU slave select pin SSO (not nCS) is connected to the HI‐1590 nCS pin. Uart.c Serial Port The drivers supporting the USB serial port (console) are contained in this module. Some function drivers allow messages to be sent and received on the UART. This is useful to log status or data messages on HyperTerminal or any other terminal program. It currently uses polling to determine when the data receive or transmit registers can be read or written. AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 HI‐1590demoCodewarriorSoftwareProject
The software project is built with Freescale’s CodeWarrior version 5.9.0 using the free limited 32K version. The current code size of the demo is approximately 10K. The main functions are in main.c and the low level drivers are in the driver.c file. The software project “HI‐1590 Demo x_x” will normally be distributed in a zip file on a CD‐ROM with the same name. To develop, debug and download this software into the board, a PE Micro “USB Multilink Interface” debug cable is necessary. It is not provided in this kit. To purchase this cable, go to the PE Micro website or purchase it from DigiKey. See the links at the end of this document. ProjectFiles
Source Files main.c Driver.C peripherals.c Uart.c datapage.c Include Files main.h Driver.h peripherals.h Uart.h common.h derivative.h mc9s12xdt512.h AN‐1590, Rev. New Main code SPI low‐level driver for the HI‐1590 Micro GPIO, PLL frequency and SPI configuration Low‐level UART drivers Freescale IDE support file Common defines for the project Freescale IDE support file Freescale IDE target part support file HOLT INTEGRATED CIRCUITS 10/10/14 CodeWarriorandSoftwareProjectInstallation:
1. Download and install the CodeWarrior IDE from the Freescale website. The download links are provided below. 2. Unzip the HI‐1590 x_x zip file into the directory you plan to use for your project. 3. Navigate to the HI‐1590 project folder and double click the HI‐1590 Demo x_x.mcp project file to launch this project with CodeWarrior. The IDE should open with the project files on the left side of the window, as shown below: 4. Plug the USB Multilink 6‐pin debug cable into the Debug Header and power up the board with 3.3V. 5. Click the green arrow on the screen to ‘build’ the Project . The project should build without errors. You may receive a dead assignment warning if for example some defines are set to a zero value. Once built, it should launch the debugger and download to the board. 6. The first time you download, you may need to configure the debugger for the USB Multilink cable. After downloading is complete the debugger window should be displayed with the first line in main.c highlighted. Press the green horizontal arrow button to run the program. Since the AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 program has been loaded you can power down the board and re power the board and the program should run automatically without the debugger. Holt HI‐1590 project loaded with CodeWarrior 5.9.0. FreescaleMC9S12XDT512xxxDevelopmentTools
The Freescale microcontroller data sheet and other documentation can be found at this link: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XD&tid=16bhp If these links become out of date go to: http://www.freescale.com/ , then search for information on “S12XD: 16‐Bit Automotive Microcontroller”. A Free 32K limited version of the Code Warrior IDE from Freescale is available: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW‐HCS12X&tid=CWH# The US Multilink debugger cable used for this project is: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=USBMULTILINKBDM&parentCod
e=S12XD&fpsp=1 http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=USBMULTILINKBDME‐ND References:
http://www.holtic.com/
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 REVISIONHISTORY
Revision
Date
Description of Change
AN-1590, Rev. New
10-10-14
New
AN‐1590, Rev. New HOLT INTEGRATED CIRCUITS 10/10/14 
Download