ADVANCE INFORMATION 3797-2·2 MA818 THREE-PHASE PULSE WIDTH MODULATION WAVEFORM GENERATOR MOTEL is a registered Trademark of Intel Corp. and Motorola Corp. 40 VDD 2 39 A10 AD2 3 38 A9 AD3 4 37 A8 AD4 5 36 A7 AD5 6 35 A6 AD6 7 34 A5 AD7 8 33 A4 WR* (R/W†) 9 32 A3 31 A2 MA818 RD* (DS†) 10 ALE* (AS†) 11 30 A1 RST 12 29 A0 CLK 13 28 D0 CS 14 27 D1 TRIP 15 26 D2 ZPP 16 25 D3 RPHB 17 24 SET TRIP YPHB 18 23 RPHT BPHB 19 22 YPHT VSS 20 21 BPHT DC40 DG40 DP40 AD0 NC VDD 3 2 1 44 43 42 41 40 A7 AD1 4 A8 AD2 5 A9 AD3 6 A10 AD4 * = Intel bus format † = Motorola bus format 7 39 A6 AD6 8 38 A5 AD7 9 37 A4 WR* (R/W†) 10 36 A3 RD* (DS†) 11 35 A2 NC 12 34 NC ALE* (AS†) 13 33 A1 RST 14 32 A0 CLK 15 31 D0 CS 16 30 D1 17 29 18 19 20 21 22 23 24 25 26 27 28 D2 SET TRIP RPHT YPHT BPHT NC VSS BPHB TRIP MA818 D3 AD5 YPHB ■ Interfaces with Most Microprocessors ■ Wide Power-Frequency Range ■ Carrier Frequency Selectable up to 24kHz ■ Waveform Stored in External PROM/EPROM ■ Double Edged Regular Sampling ■ Selectable Minimum Pulse Width and Underlap Time ■ DC Injection Braking 1 AD1 ZPP FEATURES ■ Fully Digital Operation AD0 RPHB The MA818 PWM generator has been designed to provide waveforms for the control of variable speed AC machines, uninterruptible power supplies and other forms of power electronic devices which require pulse width modulation as a means of efficient power control. The six TTL level PWM outputs (Fig. 2) control the six switches in a three-phase inverter bridge. This is usually via an external isolation and amplification stage. Rotational frequency is defined to 12 bits for high accuracy and a zero setting is included in order to implement DC injection braking with no software overhead. Any power waveform can be implemented as this is user-defined in an external PROM/ EPROM. For users requiring an on-chip pre-programmed waveform, the functionally identical MA828 is recommended. Information contained within the pulse width modulated sequences controls the shape, power frequency, amplitude, and rotational direction (as defined by the red-yellow-blue phase sequence) of the output waveform. Parameters such as the carrier frequency, minimum pulse width, and pulse delay time may be defined during the initialisation of the device. The pulse delay time (underlap) controls the delay between turning on and off the two power switches in each output phase of the inverter bridge, in order to accommodate variations in the turn-on and turn-off times of families of power devices. The MA818 is easily controlled by a microprocessor and its fully-digital generation of PWM waveforms gives unprecedented accuracy and temperature stability. Precision pulse shaping capability allows optimum efficiency with any power circuitry. The device operates as a stand-alone microprocessor peripheral, reading the power waveform directly from a PROM/EPROM and requiring microprocessor intervention only when operating parameters need to be changed. An 8-bit multiplexed data bus is used to receive addresses and data from the microprocessor/controller. This is a standard MOTELTM bus, compatible with most microprocessors/controllers. The MA818 is fabricated in CMOS for low power consumption. HP44 Fig. 1 Pin connections – top view (not to scale) MA818 PIN DESCRIPTIONS Pin.no. DC/DG/DP40 Pin.no. HP44 Name Type 1 2 AD0 I Multiplexed Address/Data (LSB) 2 3 AD1 I Multiplexed Address/Data 3 4 AD2 I Multiplexed Address/Data 4 5 AD3 I Multiplexed Address/Data 5 6 AD4 I Multiplexed Address/Data 6 7 AD5 I Multiplexed Address/Data 7 8 AD6 I Multiplexed Address/Data 8 9 AD7 I Multiplexed Address/Data(MSB) 9 10 Intel: WR Motorola: R/W I Intel bus control: Write Strobe Motorola bus control: Read/Write select 10 11 Intel: RD Motorola: DS I Intel bus control: Read Strobe Motorola bus control: Data Strobe 11 13 Intel: ALE Motorola: AS I Intel bus control: Address Latch Enable Motorola bus control: Address Strobe 12 14 RST I Reset internal counters, active low 13 15 CLK I Clock input 14 16 CS I Chip Select input, active low 15 17 TRIP O Output trip status; low = output tripped 16 18 ZPP O Zero Phase Pulse 17 19 RPHB O Red Phase, Bottom power switch 18 20 YPHB O Yellow Phase, Bottom power switch 19 21 BPHB O Blue Phase, Bottom power switch 20 22 VSS P Negative power supply (0V) 21 24 BPHT O Blue Phase, Top power switch 22 25 YPHT O Yellow Phase, Top power switch 23 26 RPHT O Red Phase, Top power switch 24 27 SET TRIP I Set output trip. 90kΩ internal pull-up resistor 25 28 D3 I Eprom Data (LSB) 26 29 D2 I Eprom Data 27 30 D1 I Eprom Data 28 31 D0 I Eprom Data (MSB) 29 32 A0 O Eprom Address (LSB) 30 33 A1 O Eprom Address 31 35 A2 O Eprom Address 32 36 A3 O Eprom Address 33 37 A4 O Eprom Address 34 38 A5 O Eprom Address 35 39 A6 O Eprom Address 36 40 A7 O Eprom Address 37 41 A8 O Eprom Address 38 42 A9 O Eprom Address 39 43 A10 O Eprom Address (LSB) 40 44 VDD P Positive power supply 2 Function MA818 RST CS BUS CONTROL MOTEL INTERFACE RED PHASE SYSTEM BUS AD0-AD7 8 PULSE DELETION BUS DEMULTIPLEXER R0 R1 R4 RPHT RPHB 24-BIT INITIALISATION REGISTER R2 R3 PULSE DELAY CIRCUIT 24-BIT CONTROL REGISTER YELLOW PHASE PHASING AND CONTROL LOGIC PULSE DELETION PULSE DELAY CIRCUIT YPHT YPHB BLUE PHASE PULSE DELETION PULSE DELAY CIRCUIT BPHT BPHB CLOCK CLOCK DIVIDER TRIP LATCH TRIP ADDRESS DATA GENERATOR BUFFER 11 4 A0-A10 D0-D3 TO FROM WAVEFORM STORAGE PROM/EPROM SET TRIP Fig. 2 MA818 internal block diagram FUNCTIONAL DESCRIPTION An asynchronous method of PWM generation is used with uniform or ‘double-edged’ regular sampling of the waveform stored in the PROM/EPROM as illustrated in Fig.3. The use of an external PROM/EPROM allows the user to define the optimum power waveform for the particular motor being used. The triangle carrier wave frequency is selectable up to 24kHz (assuming the maximum clock frequency of 12.5MHz is used) enabling ultrasonic operation for noise critical applications. Power frequency ranges of up to 4kHz (with 12.5MHz clock) are possible, with the actual output frequency resolved to 12-bit accuracy within the chosen range in order to give precise motor speed control and smooth frequency changing. The output phase sequence of the PWM outputs can also be changed to allow both forward and reverse motor operation. PWM output pulses can be ‘tailored’ to the inverter characteristics by defining the minimum allowable pulse width (the MA818 will delete all shorter pulses from the ‘pure’ PWM pulse train) and the pulse delay (underlap) time without the need for external circuitry. This gives cost advantages in both component savings and in allowing the same PWM circuitry to be used for control of a number of different motor drive circuits simply by changing the microprocessor software. Power frequency amplitude control is also provided with an overmodulation option to assist in rapid motor braking. An asynchronous trip input allows the PWM outputs to be shut down immediately, overriding the microprocessor control in the event of an emergency. Other possible MA818 applications are as a 3-phase wave- form generator as part of a switched-mode power supply (SMPS) or of an uninterruptible power supply (UPS). In such applications the high carrier frequency allows a very small switching transformer to be used. MICROPROCESSOR INTERFACE The MA818 interfaces to the controlling microprocessor by means of a multiplexed bus of the MOTEL format. This interface bus has the ability to adapt itself automatically to the format and timing of both MOTorola and IntEL interface buses (hence MOTEL). Internally, the detection circuitry latches the status of the DS/RD line when AS/ALE goes high. If the result is high. Then the Intel mode is used; if the result is low then the Motorola mode is used. This procedure is carried out each time that AS/ ALE goes high. In practice this mode selection is transparent to the user. For bus connection and timing information refer to the description relevant to the microprocessor/controller being used. Industry standard microprocessors such as the 8085, 8088, etc. and microcontrollers such as the 8051, 8052 and 6805 are all compatible with the interface on the MA818. This interface consists of 8 data lines, AD0 - AD7 (write only in this instance), which are multiplexed to carry both the address and data information, 3 bus control lines, labelled WR,RD and ALE in Intel mode and R/W, DS and AS in Motorola mode, and a Chip Select input. CS, which allows the MA818 to share the same bus as other microprocessor peripherals. It should be noted that all bus timings are derived from the microprocessor and are independent of the MA818 clock input. 3 MA818 TRIANGLE WAVE AT CARRIER FREQUENCY, SAMPLING ON 1VE AND 2VE PEAKS PWM SWITCHING INSTANTS 11 POWER WAVEFORM AS READ FROM EXTERNAL PROM/EPROM 0 21 11 RESULTING PWM WAVEFORM 0 21 Fig. 3 Asynchronous PWM generation with‘double-edged’ regular sampling as used by the MA818 t1 t1 ALE AS t2 RD t2 t4 t4 t3 t3 t5 DS WR t6 t8 t9 t7 R/W t8 CS t10 t11 t9 CS AD0-AD7 t10 t15 AD0-AD7 t12 LATCH ADDRESS t11 LATCH DATA Fig. 4 Intel bus timing definitions Parameter t12 t15 LATCH ADDRESS LATCH DATA Fig. 5 Motorola bus timing definitions Symbol Min. Units ALE high period t1 70 ns Delay time, ALE to WR t2 40 WR low period t3 Delay time, WR high to ALE high t4 CS setup time t8 Parameter Symbol Min. Units AS high period t1 90 ns ns Delay time, as low to DS high t2 40 ns 200 ns DS high period t3 210 ns 40 ns Delay time, DS low to AS high t4 40 ns 20 ns DS low period t5 200 ns CS hold time t9 0 ns DS high to R/W low setup time t6 10 ns Address setup time t10 30 ns R/W hold time t7 10 ns Address hold time t15 30 ns CS setup time t8 20 ns Data setup time t11 100 ns CS hold time t9 0 ns Data hold time t12 30 ns Address setup time t10 30 ns Address hold time t15 30 ns Write data setup time t11 110 ns Write data hold time t12 30 ns Table 1 Intel bus timings at VDD = 5V, TAMB = 125°C Table 2 Motorola bus timings at VDD = 5V, TAMB = 125°C 4 MA818 The address is latched on the falling edge of the AS line. Data is written from the bus into the MA818 (only when R/W is low) on the falling edge of DS (providing CS is low). CONTROLLLNG THE MA818 The MA818 is controlled by loading data into two 24-bit registers via the microprocessor interface. These registers are the initialisation register and the control register. The initialisation register would normally be loaded before motor operation (i.e., prior to the PWM outputs being activated) and sets up the basic operating parameters associated with the motor and inverter. This data would not normally be updated during motor operation. The control register is used to control the PWM outputs (and hence the motor) during operation e.g., stop/start, speed, forward/reverse etc. and would normally be loaded and changed only after the initialisation register has been loaded. As the MOTEL bus interface is restricted to an 8-bit wide format, data to be loaded into either of the 24-bit register is first written to three 8-bit temporary registers R0, R1 and R2 before being transferred to the desired 24-bit register. The data is accepted (and acted upon) only when transferred to one of the 24-bit registers. Transfer of data from the temporary registers to either the initialisation register or the control register is achieved by a write instruction to a dummy register. Writing to dummy register R3 results in data transfer from R0, R1 and R2 to the control register, while writing to dummy register R4 transfers data from R0, R1 and R2 to the initialisation register. It does not matter what data is written to the dummy registers R3 and R4 as they are not real registers. It is merely the write instruction to either of these registers which is acted upon in order to load the initialisation and control registers. AD2 AD1 AD0 Register Comment 0 0 0 R0 Temporary register R0 0 0 0 R1 Temporary register R1 0 1 0 R2 Temporary register R2 0 1 0 R3 Transfers control data 1 0 1 R4 Transfers initialisation data Table 3 MA818 register addressing Initialisation Register Function The 24-bit initialisation register contains parameters which, under normal operation, will be defined during the power-up sequence. These parameters are particular to the drive circuitry used, and therefore changing these parameters during a PWM cycle is not recommended. Information in this register should only be modified while RST is active (i.e. low) so that the PWM outputs are inhibited (low) during the updating process. The parameters set in the initialisation register are as follows: Carrier frequency Low carrier frequencies reduce switching losses whereas high carrier frequencies increase waveform resolution and can allow ultrasonic operation. Initialisation Register Programming The initialisation register data is loaded in 8-bit segments into the three 8-bit temporary registers R0-R2. When all the initialisation data has been loaded into these registers it is transferred into the 24-bit initialisation register by writing to the dummy register R4. FRS2 FRS1 FRS0 X X CFS2 CFS2 CFS2 Motorola Mode (Fig. 5 and Table 2) The address is latched by the falling edge of ALE. Data is written from the bus into the MA818 on the rising edge of WR. RD is not used in this mode because the registers in the MA818 are write only. However, this pin must be connected to RD (or tied high) to enable the MA818 to select the correct interface format. Power frequency range This sets the maximum power frequency that can be carried within the PWM output waveforms. This would normally be set to a value to prevent the motor system being operated outside its design parameters. Pulse delay time ('underlap') For each phase of the PWM cycle there are two control signals, one for the top switch connected to the positive inverter DC supply and one for the bottom switch connected to the negative inverter DC supply. In theory, the states of these two switches are always complementary. However, due to the finite and non-equal turn-on and turn- off times of power devices, it is desirable when changing the state of the output pair, to provide a short delay time during which both outputs are off in order to avoid a short circuit through the switching elements. Pulse deletion time A pure PWM sequence produces pulses which can vary in width between 0% and 100% of the duty cycle. Therefore, in theory, pulse widths can become infinitesimally narrow. In practice this causes problems in the power switches due to storage effects and therefore a minimum pulse width time is required. All pulses shorter than the minimum specified are deleted. Counter reset This facility allows the internal power frequency counter of the MA818 to be set to zero, disabling the normal frequency control and giving a 50% output duty cycle. MICROPROCESSOR BUS TIMING Intel Mode (Fig. 4 and Table 1) FREQUENCY RANGE SELECT WORD FRS2 = MSB FRS0 = LSB DON’T CARE CARRIER FREQUENCY SELECT WORD CFS2 = MSB CFS0 = LSB Fig. 6 Temporary register R1 Carrier frequency selection The carrier frequency is a function of the externally applied clock frequency and a division ratio n, determined by the 3-bit CFS word set during initialisation. The values of n are selected as shown in Table 4. CFS word 101 100 011 010 001 000 Value of n 32 16 8 4 2 1 Table 4 Values of clock division ratio n The carrier frequency, fCARR, is then given by: fCARR = k 5123n where k = clock frequency and n = 1, 2, 4, 8, 16 or 32 (as set by CFS) Power frequency range selection The power frequency range selected here defines the maximum limit of the power frequency. The operating power frequency is controlled by the 12-bit Power Frequency Select (PFS) word in the control register but may not exceed the value set here. 5 MA818 CR PDT6 PDT5 PDT4 PDT3 PDT2 PDT1 PDT0 The power frequency range is a function of the carrier waveform frequency (fCARR) and a multiplication factor m, determined by the 3-bit FRS word. The value of m is determined as shown in Table 5. FRS word 110 101 100 011 010 001 000 Value of m 64 32 16 8 4 2 1 Table 5 Values of carrier frequency multiplicaion factor m The power frequency range, fRANGE, is then given by: f fRANGE = CARR 3 m 384 where fCARR = carrier frequency and m = 1, 2, 4, 8, 16, 32 or 64 (as set by CFS). PDY5 PDY4 PDY3 PDY2 PDY1 PDY0 X X DON’T CARE PULSE DELAY SELECT WORD PDY5 = MSB PDY0 = LSB 111111 111110 ...etc... 000000 Value of pdy 1 2 ...etc... 64 Table 6 Values of pdy The pulse delay time, tpdy, is then given by: pdy tpdy = fCARR3512 1 2 ...etc... 0000000 ...etc... 128 The pulse deletion time, tpd, is then given by: pdt tpd = fCARR3512 where pdt = 1-128 (as set by PDT) and fCARR = carrier frequency. Fig. 10 shows the effect of pulse deletion on a pure PWM waveform. Counter reset When the CR bit is active (i.e., Iow) the internal power frequency phase counter is set to 0 degrees for the red phase. The power frequency is then set to 0Hz and cannot be changed via the normal frequency control. Control Register Function where pdy = 1- 64 (as set by PDY) and fCARR = carrier frequency. Fig 8 shows the eftect of the pulse delay circuit. It should be noted that as the pulse delay circuit follows the pulse deletion circuit (see Fig. 2), the minimum pulse width seen at the PWM outputs will be shorter than the pulse deletion time set in the initialisation register. The actual shortest pulse generated is given by tpd 2tpdy. PWM SIGNAL REQUIRED AT INVERTER OUTPUT tpdy OUTPUT SIGNAL TO DRIVE TOP SWITCH INVERTER ARM tpdy OUTPUT SIGNAL TO DRIVE BOTTOM SWITCH INVERTER ARM tpdy = PULSE DELAY TIME Fig. 8 Effect of pulse delay on PWM pulse train 6 1111111 1111110 Table 7 Values of pdt PDY word tpdy Pulse deletion time To eliminate short pulses the true PWM pulse train is passed through a pulse deletion circuit. The pulse deletion circuit compares pulse widths with the pulse deletion time set in the initialisation register. lf a pulse (either positive or negative) is greater than or equal in duration to the pulse deletion time, it is passed through unaltered, otherwise the pulse is deleted. The pulse deletion time, tpd , is a function of the carrier wave frequency and pdt, defined by the 7-bit pulse deletion time word (PDT). The value of pdt is selected as shown in Table 7. Value of pdt Pulse delay time The pulse delay time affects all six PWM outputs by delaying the rising edges of each of the outputs by an equal amount. The pulse delay time is a function of the carrier waveform frequency and pdy, defined by the 6-bit pulse delay time select word (PDY). The value of pdy is selected as shown in Table 6. tpdy Fig. 9 Temporary register R0 PDT word Fig. 7 Temporary register R2 PULSE DELETION TIME SELECT WORD PDT6 = MSB PDT0 = LSB COUNTER RESET This 24-bit register contains the parameters that would normally be modified during PWM cycles in order to control the operation of the motor. The parameters set in the control register are as follows: Power frequency (speed) Allows the power frequency of the PWM outputs to be adjusted within the range specified in the initialisation register Forward/reverse Allows the direction of rotation of the AC motor to be changed by changing the phase sequence of the PWM outputs. Power frequency amplitude By altering the widths of the PWM output pulses while maintaining their relative widths, the amplitude of the power waveform is effectively altered whilst maintaining the same power frequency. Overmodulation Allows the output waveform amplitude to be doubled so that a quasi-squarewave is produced. A combination of overmodulation and a lower power frequency can be used to achieve rapid braking in AC motors. Output inhibit Allows the outputs to be set to the low state while the PWM generation continues internally. Useful for temporarily inhibiting the outputs without having to to change other register contents. MA818 PWM SIGNAL BEFORE PULSE DELETION .tpd .tpd .tpd .tpd .tpd ,tpd .tpd .tpd .tpd ,tpd PWM SIGNAL AFTER PULSE DELETION PULSE DELETED PULSE DELETED tpd = PULSE DELETION TIME Fig. 10 The effect of the pulse deletion circuit Control Register Programming The control register should only be programmed once the initialisation register contains the basic operating parameters of the MA818. As with the initialisation register, control register data is loaded into the three 8-bit temporary registers R0 - R2. When all the data has been loaded into these registers it is transferred into the 24-bit control register by writing to the dummy register R3. It is recommended that all three temporary registers are updated before writing to R3 in order to ensure that a conformal set of data is transferred to the control register for execution. Output inhibit selection When active (i.e., Iow) the output inhibit bit INH sets all the PWM outputs to the off (low) state. No other internal operation of the device is affected. When the inhibit is released the PWM outputs continue immediately. Note that as the inhibit is asserted after the pulse deletion and pulse delay circuits, pulses shorter than the normal minimum pulse width may be produced initially. Overmodulation selection The overmodulation bit OM is, in effect, the ninth bit (MSB) of the amplitude word. When active (i.e., high) the output waveform will be controlled in the 100% to 200% range by the amplitude word. The percentage amplitude control is now given by: PFS7 PFS6 PFS5 PFS4 PFS3 PFS2 PFS1 PFS0 Overmodulated Amplitude = APOWER 3 100% POWER FREQUENCY SELECT WORD BITS 0-7 PFS0 = LSB where APOWER = the power amplitude V Fig. 11 Temporary register R0 0 t OM INH X PFS11 PFS10 PFS9 PFS8 F/R OVERMODULATION BIT 0 = DISABLED 1 = ACTIVE FORWARD/ REVERSE BIT 0 = FORWARD 1 = REVERSE DON’T CARE POWER FREQUENCY SELECT WORD BITS 8-11 PFS11 = MSB OUTPUT INHIBIT BIT 0 = DISABLED 1 = ACTIVE Fig. 12 Temporary register R1 Power frequency selection The power frequency is selected as a proportion of the power frequency range (defined in the initialisation register) by the 12bit power frequency select word, PFS, allowing the power frequency to be defined in 4096 equal steps. As the PFS word spans the two temporary registers R0 and R1 it is therefore essential, when changing the power frequency, that both these registers are updated before writing to R3. The power frequency (fPOWER) is given by: fRANGE 3 pfs 4096 where pfs = decimal value of the 12-bit PFS word and fRANGE = power frequency range set in the initialisation register. fPOWER = V OVERMODULATION BIT NOT SET (100% MODULATION) 0 t OVERMODULATION BIT SET (200% MODULATION) Fig. 13 Voltage waveforms as seen at the motor terminals, showing the effect of setting the overmodulation bit Forward/ reverse selection The phase sequence of the three-phase PWM output waveforms is controlled by the Forward/Reverse bit F/R. The actual effect of changing this bit from 0 (forward) to 1 (reverse) is to reverse the power frequency phase counter from incrementing the phase angle to decrementing it. The required output waveforms are all continuous with time during a forward/ reverse change. In the forward mode the output phase sequence is redyellow-blue and in the reverse mode the sequence is blueyellow-red. 7 MA818 AMP7 AMP6 AMP5 AMP4 AMP3 AMP2 AMP1 AMP0 AMPLITUDE SELECT WORD AMP7 = MSB AMP0 = LSB Fig.14 Temporary register R2 Amplitude selection The power wavefortm amplitude is determined by scaling the amplitude of the waveform samples stored in the external PROM/EPROM by the value of the 8-bit amplitude select word (AMP). The percentage amplitude control is given by: A Power Amplitude, APOWER = 3 100% 225 where A = decimal value of AMP. MA818 PROGRAMMING EXAMPLE The following example assumes that a master clock of 12·288 MHz is used (12·288 MHz crystals are readily available). This clock frequency will allow a maximum carrier frequency of 24 kHz and a maximum power frequency of 4 kHz. Initialisation Register Programming Example A power waveform range of up to 250Hz is required with a carrier frequency of 6kHz, a pulse deletion time of 10µs and an underlap of 5µs. 1. Setting the carrier frequency The carrier frequency should be set first as the power frequency, pulse deletion time and pulse delay time are all defined relative to the carrier frequency. We must calculate the value of n that will give the required carrier frequency: k fCARR = 5123n ⇒n= 12·2883106 k = =4 5123fCARR 512363103 From Table 4, n = 4 corresponds to a 3-bit CFS word of 010 in temporary register R1. 2. Setting the power frequency range We must calculate the value of m that will give the required power frequency: f fRANGE = CARR 3 m 384 ⇒m= fRANGE3384 fCARR = 2503384 63103 ⇒ pdt = fpd3fCARR3512 = 15·2310263631033512 = 46·7 Again, pdt must be an integer and so must be either rounded up or down – the choice of which will depend on the application. Assuming we choose in this case the value 46 for pdt, this gives a value of tpd, of 15 µs and an actual minimum pulse width of 1525·2µs = 9·8µs. From Table 7, pdt = 46 corresponds to a value of PDT, the 7bit word in temporary register R0 of 1010010. The data which must be programmed into the three temporary registers R0, R1 and R2 (for transter into the initialisation register) in order to achieve the parameters in the example given, is shown in Fig. 15. Temporary Register R0 1 CR 1 pdy fCARR3512 ⇒ pdy = tpdy3fCARR3512 tpdy = = 5310263631033512 = 15·4 0 1 0 0 1 0 PDT6 PDT5 PDT4 PDT3 PDT2 PDT1 PDT0 Temporary Register R1 1 0 0 FRS2 FRS1 FRS0 = 16 From Table 5, m = 16 corresponds to a 3-bit FRS word of 100 in temporary register R1. 3. Setting the pulse delay time As the pulse delay time affects the actual minimum pulse width seen at the PWM outputs, it is sensible to set the pulse delay time before the pulse deletion time, so that the effect of the pulse delay time can be allowed for when setting the pulse deletion time. We must calculate the value of pdy that will give the required pulse delay time: 8 However, the value of pdy must be an integer. As the purpose of the pulse delay is to prevent ‘shoot-through’ (where both top and bottom arms of the inverter are on simultaneously), it is sensible to round the pulse delay time up to a higher, rather than a lower figure. Thus, if we assign the value 16 to pdy this gives a delay time of 5·2µs. From Table 6, pdy = 16 corresponds to a 6-bit PDY word of 110000 in temporary register R2. 4. Setting the pulse deletion time In setting the pulse deletion time (i.e., the minimum pulse width) account must be taken of the pulse delay time, as the actual minimum pulse width seen at the PWM outputs is equal to tpd2tpdy. Therefore, the value of the pulse deletion time must, in this instance, be set 5·2µs longer than the minimum pulse length required Minimum pulse length required = 10µs ∴ tPD to be set to 10µs15·2µs = 15·2µs Now, pdt tpd = fCARR3512 X X X X 0 1 0 CFS2 CFS2 CFS2 Temporary Register R2 X X X X 1 1 0 0 0 0 PDY5 PDY4 PDY3 PDY2 PDY1 PDY0 Fig. 15 MA818 Control Register Programming Example The control register would normally be updated many times while the motor is running, but just one example is given here. It is assumed that the initialisation register has already heen programmed with the parameters given in the previous example. A power waveform of 100Hz is required with a PWM waveform amplitude of 80% of that stored in the EPROM. The phase sequence should be set to give forward motor rotation.The outputs should be enabled and no overmodulation is required. 1. Setting the power frequency The power frequency, fPOWER, can be selected to 12-bit accuracy (i.e 4096 equal steps) from 0Hz to fRANGE as defined in the initialisation register. In this case, with fRANGE = 250Hz, the power frequency can be adjusted in increments of 0·06Hz. fRANGE 3 pfs 4096 f 34096 10034096 ⇒ pfs = POWER = = 1638·4 fRANGE 250 POWER ON RST ↓ 0 fPOWER = We can only have pfs as an integer, so if we assign pfs = 1638 this gives fPOWER = 99.97 Hz.The 12-bit binary equivalent of this value gives a PFS word of 011001100110 in temporary registers R0 and R1. 2. Setting overmodulation, forward/reverse, output inhibit Overmodulation is not required therefore OM = 0. Forward motor control is required (i.e., the phase sequence of the PWM outputs should be red-yellow-blue) therefore forward/reverse bit F/R = 0. Output inhibit should be inactive (i e., the outputs should be active), therefore INH= 1. These bits are all set in temporary register R1. 3. Setting the power waveform amplitude A APOWER = 3 100% 225 A 3255 803255 ⇒ A = POWER = = 204 100 100 The 8-bit binary equivalent of this value gives an AMP word of 11001100 in temporary register R2. The data which must be programmed into the three temporary registers R0, R1 and R2 (for transfer into the control register) in order to achieve the parameters in the example given, is shown in Fig. 16. Temporary Register R0 0 1 1 0 0 0 1 WRITE INITIALISATION DATA WRITE TO CONTROL REGISTER INHIBITING PWM OUTPUTS BEFORE COMPLETING RESET CYCLE ENABLE PWM OUTPUTS WRITE CONTROL DATA 1 X F/R OM INH X 0 1 1 0 0 PFS11 PFS10 PFS9 PFS8 1 1 WRITE R0 WRITE R1 WRITE R2 WRITE R3 RST ↑ 1 WRITE R0 WRITE R1 WRITE R2 WRITE R3 YES 0 CHANGE INITIALISATION DATA ? YES Temporary Register R2 1 WRITE R4 NO NO 1 WRITE R2 CHANGE CONTROL DATA ? Temporary Register R1 0 WRITE R1 1 PFS7 PFS6 PFS5 PFS4 PFS3 PFS2 PFS1 PFS0 0 WRITE R0 0 0 AMP7 AMP6 AMP5 AMP4 AMP3 AMP2 AMP1 AMP0 Fig. 16 Fig. 17 Typical MA818 programming routine 9 MA818 HARDWARE INPUT/OUTPUT FUNCTIONS Set Output Trip (SET TRIP input) The SET TRIP input is provided separately from the microprocessor interface in order to allow an external source to override the microprocessor and provide a rapid shutdown facility. For example, logic signals from overcurrent sensing circuitry or the microprocessor ‘watchdog’ might be used to activate this input. When the SET TRIP input is taken to a logic high, the output trip latch is activated. This results in the TRIP output and the six PWM outputs being latched low immediately. This condition can only be cleared by applying a reset cycle to the RST input. Because of the asynchronous nature of the SET TRIP input, it is important that when not in use it is tied low and isolated from potential sources of noise. On no account should this input be left floating. Waveform segment Sample number 0°- 60° 0 - 255 60·23°- 120° 256 - 511 120·23°- 179·77° 512 - 767 Table 8 180° of the 360° cycle is divided into 768 8-bit samples 255 POWER WAVEFORM VALUE OF 8-BIT SAMPLE Output Trip Status (TRIP output) The TRIP output indicates the status of the output trip latch and is active low. Reset (RST input) The RST input performs the following functions when activbe (low): 1. All PWM outputs are forced low (if not already low) thereby turning off the drive switches. 2. All internal counters are reset to zero (this corresponds to 0° for the red phase output). 3. The rising edge of RST reactivates the PWM outputs resetting the output trip and setting the TRIP output high – assuming that the SET TRIP input is inactive (i.e. Iow). Zero Phase Pulse (ZPP output) The ZPP output provides pulses at the same frequency as the power frequency with a 1 : 2 mark-space ratio. When in the forward mode of operation the falling edge of ZPP corresponds to 0° for the red phase PWM output. In the reverse mode, the rising edge of ZPP corresponds to 0° for the red phase PWM output. Clock (CLK input) The CLK input provides a timing reference used by the MA818 for all timings related to the PWM outputs. The microprocessor interface, however, derives all its timings from the microprocessor and therefore the microprocessor and the MA818 may be run either from the same or from different clocks. PWM WAVEFORM ASSIGNMENT The waveform amplitude data used to construct the PWM output sequences is read by the MA818 from an external 2K38 PROM/EPROM. The use of an external PROM/EPROM allows the user to define the exact waveform required. 0 0° 180° Fig. 18 180° sample of typical power waveform WAVEFORM STORAGE An industry standard 2K38 PROM or EPROM (2716 or 27C16) is required for waveform storage. As less than half the memory capacity of the PROM/EPROM is needed to store the waveform, this is used to advantage in order to minimise the pin count of the MA818. Each 8-bit data word representing a sample of the waveform is stored as two 4-bit nibbles in the least significant nibble position of the 8-bit PROM/EPROM locations. Hence the most significant nibble is unused (and may therefore be left unprogrammed) so only 4 data lines (D0 - D3) are required. The 768 waveform samples are therefore stored as 1546 four-bit samples. Fig. 19 illustrates the method used for mapping the data into the PROM/EPROM. The least signiflcant nibbles are stored sequentially from location 0H to 300H, and the most significant nibbles are stored from 400H to 700H. The MA818 reads Ihe data by accessing the two 4-bit nibbles (using A10 to select the high and low nibble memory areas) and then concatenates them internally to form the 8-bit waveform sample byte. The reading of data from the the PROM/EPROM is performed automatically by the MA818 without microprocessor intervention whenever the PWM generation is active. 800H 700H NOT USED Waveform Definition Good waveform resolution is achieved by storing 768 8-bit amplitude samples representing the positive 180° span of the waveform. It is assumed that the data is symmetrical about the 90° axis. The MA818 constructs the full 360° waveform by assigning negative values to the same samples for the second half of the cycle. It uses these samples to calculate the three instantaneous amplitudes for all three phases. The 768 8- bit samples are linearly spaced over the 0° to 180° span, giving an angular resolution of approximately 0·23° 90° PHASE (768-BIT RESOLUTION) M.S. NIBBLES 400H 300H L.S. NIBBLES 0000H D7 D3 D0 Fig. 19 Waveform PROM/EPROM memory map 10 MA818 ELECTRICAL CHARACTERISTICS These characteristics are guaranteed over the following conditions (unless otherwise stated): VDD = 15V65%, TAMB = 125°C DC Characteristics Characteristic Symbol Value Min. Typ. Max. Units Conditions Input high voltage VIH Input low voltage VIL 0·8 V Input leakage current IIN 10 µA VIN = VSS or VDD V IOH = 24mA 0·4 V IOL = 4mA 100 µA All outputs open circuit ,10 20 mA fCLK = 10MHz 5·0 7·5 V Output high voltage VOH Output low voltage VOL Supply current (static) Supply current (dynamic) 4·0 V .4·5 ,0·2 IDD (static) IDD (dynamic) VDD Supply voltage 2 4·75 NOTE 1. The SET TRIP input has an internal pull-up resistor with an approximate value of 90kΩ AC Characteristics Characteristic Symbol Clock frequency fCLK SET TRIP = 0 → outputs tripped tTRIP →TRIP = 0 EPROM address to output delay Value Min. Typ. Max. Units 12·5 MHz ,1 3 µs ,1 3 µs 450 ns tACC Conditions M : S ratio = 1 : 1 620% NOTE 2. For microprocessor interface timings, see Intel and Motorola bus timings (Tables 1 and 2). ABSOLUTE MAXIMUM RATINGS Supply voltage, VDD 10V VSS20·3V to VDD10·3V Voltage on any pin Current through any I/O pin 610mA Storage temperature 265°C to 1125°C Operating temperature range 0°C to 170°C The temperature ranges quoted apply to all package types. Many package types are available and extended temperature ranges can be offered on some. Further information is available on request. Stresses above those listed in the Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions, or at any other condition above those indicated in the operations section of this specification, is not implied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device reliability. 11 MA818 INVERTER 1 RECTIFIER AND SMOOTHING R Y 3-PHASE AC INDUCTION MOTOR DC LINK B SINGLE OR 3-PHASE POWER SUPPLY 3-PHASE VARIABLE VOLTAGE, VARIABLE FREQUENCY WAVEFORM 2 6 ISOLATOR WAVEFORM PROM/EPROM TTL LEVEL PWM WAVEFORMS FAST SHUTDOWN D0-D7 A0-A10 15 8 MICROPROCESSOR I KEYBOARD HANDLING I9 7.5H Z Fig. 20 A typical MA818 application 12 SYSTEM MONITOR (ADC) MA818 DATA/ADDRESS BUS (AD0-AD7) DISPLAY HANDLING 6 STATIC RAM ROM (PROGRAM STORAGE) MA818 13 MA818 14 MA818 PACKAGE DETAILS Dimensions are shown thus: mm (in) 1 PIN 1 REF NOTCH 12·95/15·75 (0·510/0·620) 40 51·31 (2·020) MAX 1·37 (0·054) NOM. 0·51 (0·02) MIN 40 LEADS AT 2·54 (0·10) NOM. SPACING 0·36/0·51 (0·014/0·20) 0·20/0·30 (0·008/0·012) 5·08/(0·20) MAX 3·18/4·06 (0·125/0·160) 15·24 (0·6) NOM CTRS This package outline diagram is for guidance only. Please contact your GPS Customer Service Centre for further information. 40-LEAD SIDEBRAZED CERAMIC DIL (DILMON) - DC40 1 PIN 1 REF NOTCH 12·70/15·75 (0·500/0·620) 15.24 (0·6) NOM CTRS 40 0·20/0·36 (0·008/0·014) 53·34 (2·10) MAX 5·59/(0·220) MAX 0·51 (0·02) 3·05 (0·120) MIN MIN 0·36/0·58 (0·015/0·23) 40 LEADS AT 2·54 (0·10) NOM. SPACING 40-LEAD CERAMIC DIL – DG40 This package outline diagram is for guidance only. Please contact your GPS Customer Service Centre for further information. Continued... 15 MA818 PACKAGE DETAILS (Continued) 1 PIN 1 REF NOTCH 14·73 (0·58) MAX 15.24 (0·6) NOM CTRS 40 1·14/1·65 (0·045/0·107) 0·23/0·41 (0·009/0·016) 5·59/(0·220) MAX 53·34 (2·10) MAX 0·51 (0·02) 3·05 (0·120) MIN MIN 40 LEADS AT 2·54 (0·10) NOM. SPACING 0·38/0·61 (0·015/0·24) 40-LEAD PLASTIC DIL – DP40 0·66/0·81 (0·026/0·032) 1·27 (0·050) NOM. SPACING 12·7 (0·5) NOM. 14·98/16·00 (0·59/0·63) OPTIONAL PIN 1 REFERENCE PIN 1 REF. CORNER 1·14 (0·045) NOM. 345° 0·508 (0·02) NOM. 0·33/0·53 (0·013/0·021) PIN 1 REF. SIDE 1·14 (0·045) NOM. 345° 11·27/11·78 (0·444/0·464) 12·32/12·37 (0·485/0·487) PIN 1 4·19/4·70 (0·165/0·185) 44-LEAD QUAD PLASTIC QUAD J-LEAD – HP44 HEADQUARTERS OPERATIONS GEC PLESSEY SEMICONDUCTORS Cheney Manor, Swindon, Wiltshire SN2 2QW, United Kingdom. Tel: (0793) 518000 Fax: (0793) 518411 GEC PLESSEY SEMICONDUCTORS P.O. Box 660017 1500 Green Hills Road, Scotts Valley, CA95067-0017 United States of America. Tel (408) 438 2900 Fax: (408) 438 5576 This package outline diagram is for guidance only. Please contact your GPS Customer Service Centre for further information. This package outline diagram is for guidance only. Please contact your GPS Customer Service Centre for further information. CUSTOMER SERVICE CENTRES ● FRANCE & BENELUX Les Ulis Cedex Tel: (1) 64 46 23 45 Tx: 602858F Fax : (1) 64 46 06 07 ● GERMANY Munich Tel: (089) 3609 06-0 Tx: 523980 Fax : (089) 3609 06-55 ● ITALY Milan Tel: (02) 66040867 Fax: (02) 66040993 ● JAPAN Tokyo Tel: (03) 3296-0281 Fax: (03) 3296-0228 ● NORTH AMERICA Integrated Circuits and Microwave Products, Scotts Valley, USA Tel: (408) 438 2900 Fax: (408) 438 7023. Hybrid Products, Farmingdale, USA Tel (516) 293 8686 Fax: (516) 293 0061. ● SOUTH EAST ASIA Singapore Tel: (65) 3827708 Fax: (65) 3828872 ● SWEDEN Stockholm Tel: 4687029770 Fax: 4686404736 ● UK, EIRE, DENMARK, FINLAND & NORWAY Swindon Tel: (0793) 518510 Tx: 444410 Fax : (0793) 518582 These are supported by Agents and Distributors in major countries world-wide. GEC Plessey Semiconductors 1993 Publication No. DS3797 Issue No. 2.2 October 1993 This publication is issued to provide information only which (unless agreed by the Company in writing) may not be used, applied or reproduced for any purpose nor form part of any order or contract nor to be regarded as a representation relating to the products or services concerned. No warranty or guarantee express or implied is made regarding the capability, performance or suitability of any product or service. The Company reserves the right to alter without prior knowledge the specification, design or price of any product or service. Information concerning possible methods of use is provided as a guide only and does not constitute any guarantee that such methods of use will be satisfactory in a specific piece of equipment. It is the user's responsibility to fully determine the performance and suitability of any equipment using such information and to ensure that any publication or data used is up to date and has not been superseded. These products are not suitable for use in any medical products whose failure to perform may result in significant injury or death to the user. All products and materials are sold and services provided subject to the Company's conditions of sale, which are available on request. 16