PEP I1 16-Channel Corrector Controller Using BITBUS' Abstract. PEP 11 corrector switching power converters. The design and performance are discussed.

Similar documents
GA A22720 THE DIII D ECH MULTIPLE GYROTRON CONTROL SYSTEM

MULTIPLE HIGH VOLTAGE MODULATORS OPERATING INDEPENDENTLY FROM A SINGLE COMMON 100 kv dc POWER SUPPLY

PCI to SH-3 AN Hitachi SH3 to PCI bus

REAL-TIME MULTIPLE NETWORKED VIEWER CAPABILITY OF THE DIII D EC DATA ACQUISITION SYSTEM

Integrated Volt VAR Control Centralized

MAS. &lliedsignal. Design of Intertransition Digitizing Decomutator KCP Federal Manufacturing & Technologies. K. L.

Advanced Synchrophasor Protocol DE-OE-859. Project Overview. Russell Robertson March 22, 2017

Intelligent Grid and Lessons Learned. April 26, 2011 SWEDE Conference

ACCELERATOR OPERATION MANAGEMENT USING OBJECTS*

Product Information Sheet PDA14 2 Channel, 14-Bit Waveform Digitizer APPLICATIONS FEATURES OVERVIEW

September 1986 Order Number:

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

SmartSacramento Distribution Automation

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Chapter 8 Memory Basics

With Fixed Point or Floating Point Processors!!

In-Field Programming of Smart Meter and Meter Firmware Upgrade

Go SOLAR Online Permitting System A Guide for Applicants November 2012

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

A COMBINED PLC AND CPU APPROACH TO MULTIPROCESSOR CONTROL

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

chapter 8 The Memory System Chapter Objectives

A VERSATILE DIGITAL VIDEO ENGINE FOR SAFEGUARDS AND SECURITY APPLICATIONS

BWXT Y-12 Y-12. A BWXT/Bechtel Enterprise COMPUTER GENERATED INPUTS FOR NMIS PROCESSOR VERIFICATION. Y-12 National Security Complex

High Scalability Resource Management with SLURM Supercomputing 2008 November 2008

PCIxx12 Single Socket CardBus Controller with Integrated 1394a-2000 OHCI Two-Port PHY/Link-Layer Controller

ADM-96S AND ADM-48D HIGH PERFORMANCE DATA ACQUISITION SYSTEMS

PSIM Tutorial. How to Use SPI in F2833x Target. February Powersim Inc.

Interconnects, Memory, GPIO

@ST1. JUt EVALUATION OF A PROTOTYPE INFRASOUND SYSTEM ABSTRACT. Tom Sandoval (Contractor) Los Alamos National Laboratory Contract # W7405-ENG-36

Southern Company Smart Grid

On Demand Meter Reading from CIS

Memory Map for the MCU320 board:

Speech Control for Virtual Instruments Using the TMS320C30 DSP

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

Portable Data Acquisition System

Product Information Sheet PDA GHz Waveform Digitizer APPLICATIONS FEATURES OVERVIEW

Frequently Asked Questions

DAP 5200a Manual. Connector and Hardware Operation Reference. Version Microstar Laboratories, Inc.

NIF ICCS Test Controller for Automated & Manual Testing

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

The 80C186XL 80C188XL Integrated Refresh Control Unit

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

TMS320C620x/C670x DSP Boot Modes and Configuration Reference Guide

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

This section describes the various input and output connections for the Voltage Fault Detector.

CPCI-AD32. Intelligent DSP Based 32 Channel Analog Input Card for 3U CompactPCI systems REFERENCE MANUAL Version 1.

ADSP-2100A DSP microprocessor with off-chip Harvard architecture. ADSP-2101 DSP microcomputer with on-chip program and data memory

The PCMCIA DSP Card: An All-in-One Communications System

Adding a System Call to Plan 9

DSP240-LPI Inverter Controller Card. Technical Brief

QPRO Family of XC1700E Configuration PROMs

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

cpci-dart Base-Board & Daughter-Board

Optidrive Applications Support Library

Memory Expansion. Lecture Embedded Systems

EMBEDDED SYSTEMS WITH ROBOTICS AND SENSORS USING ERLANG

CompuScope Ultra-fast waveform digitizer card for PCI bus. APPLICATIONS. We offer the widest range of

Using the TMS320C5509 USB Bootloader

MCOR CRATE. OPERATIONS MANUAL Model Preliminary Midtown PL NE Suite A Albuquerque NM bira.com

,,, Presented at 1983 Conf. on Real-Time Computer Applications i n Particle and Nuclear Physics,

Computer Systems Organization

ACU6. Technical Reference Manual. Specifications Interfacing Dimensions. Document topics. ANSARI Controller Unit Type 6 technical reference manual

Am186ER/Am188ER AMD continues 16-bit innovation

Computer Hardware Requirements for Real-Time Applications

StrongARM** SA-110/21285 Evaluation Board

PAS 9715/AO ENGINEERING SPECIFICATION

PJM Interconnection Smart Grid Investment Grant Update

DaqBoard/1000. Series 16-Bit, 200-kHz PCI Data Acquisition Boards

CPCI-16AIO Channel 16-Bit Analog I/O CPCI Board With 8 Input Channels, 8 Output Channels, and Auto calibration

2 MARKS Q&A 1 KNREDDY UNIT-I

THE DATACON MASTER RENOVATION OF A DATACON FIELD BUS COMMUNICATIONS SYSTEM FOR ACCELERATOR CONTROL*

DP8420V 21V 22V-33 DP84T22-25 microcmos Programmable 256k 1M 4M Dynamic RAM Controller Drivers

UNIT II PROCESSOR AND MEMORY ORGANIZATION

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

AVR Microcontrollers Architecture

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Application Note, V 1.1, Apr AP08006 C868. Interfacing SPI/I2C Serial EEPROM with C868 Microcontroller. Microcontrollers. Never stop thinking.

Maximizing Endurance of MSC1210 Flash Memory

16-Channel 16-Bit PMC Analog I/O Board

Comparator (Comp) Features. General Description. When to use a Comparator 1.60

Arduino Uno R3 INTRODUCTION

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

MICROPROCESSOR TECHNOLOGY

AN10428 UART-SPI Gateway for Philips SPI slave bridges

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Data sheet CPU 115 (115-6BL02)

Configuring Code Composer Studio for OMAP Debugging

This section describes the various input and output connections for the Voltage Fault Detector.

ALAMO: Automatic Learning of Algebraic Models for Optimization

Use the Status Register when the firmware needs to query the state of internal digital signals.

XC1701L (3.3V), XC1701 (5.0V) and XC17512L (3.3V) Serial Configuration PROMs. Features. Description

ADSP-218x Family EZ-ICE Hardware Installation Guide

Set Up a PLL Loop Filter on the ez80f91 MCU

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

PC104P-16AIO Bit Analog Input/Output PC104-Plus Board

William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

zorder-lib: Library API for Z-Order Memory Layout

Transcription:

SLAC-PUB-7588 July 1997 PEP I1 16-Channel Corrector Controller Using BITBUS' R Olsen Stanford Linear Accelerator Center, Stanford University, Stanford CA 94309 Abstract PEP 11 corrector switching power converters The design and performance are discussed A 16-channel controller has been implemented to control the Presented at the 17th IEEE Particle Accelerator Conference (PAC 97):Accelerator Science, Technology and Applications, Vancouver?BC, Canada, May 12-16, 1997 DISCLAIMER This report was prepared as an account of work sponsored by an agency of the United States Government Neither the United States Government nor any agency thereof, nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights Rcference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof The views and opinions of authors expressed herein do not necessarily state or reflect thosc of the United States Government or any agency thereof Work supported by Department of Energy contract DE-ACO3-76SFOO515 ENT IS UNLI

r I i PEP I1 16-CHANNEL CORRECTOR CONTROLLER USING BITBUS R Olsen, Stanford Linear Accelerator Center, POBox 4349, Stanford, CA 94309 Abstract A 16-channel controller has been implemented to control the PEP I1 corrector switching power converters The design and performance are discussed 1 INTRODUCTION The PEP I1 injection and storage rings require more than 1000 corrector magnets In order to economically meet this requirement, a new power converter termed MCORl2 was designedtl] It is equipped with 16 switching power converter modules rated at +I- 50 volts, 12 amperes A bulk power converter supplies the raw DC power to a number of MCOR s The 16 switching converters are housed in a 17-slot, 6U Ewocard crate with non-standard module spacing The 17th slot is standard single-width, and is occupied by the controller module Control of each power converter is by means of a control voltage input with a range of +10 to -10 volts for full scale current of each polarity Readback is provided by primary and secondary shunt circuits with outputs of the same voltage range A status bit is provided from each converter to indicate that the converter is on-line, and the controller provides a reset and inhibit function common to all converters 2 DESIGN REQUIREMENTS A fundamental requirement of the controller was that it be able to ramp the 16 channels simultaneously on demand using a cosine function after the appropriate control information had been downloaded This requirement, to a substantial degree, determined the architecture of the system and the use of a DSP to perform the main control functions Communication was to be at a high level, and setpoints would be specified using current and timespan Accuracy of the control voltage outputs and shunt readbacks was to be 01% minimum 3 COMMUNICATION PROTOCOL Communication with the controller is by means of BITBUS, a subset of SDLC [2] The individual packet length is limited to 43 bytes due to limitations in the 8044 Work supported by the Department of Energy under contract No DE-AC03-76SF00515 on-chip SRAM Superimposed on the basic protocol is a high-level protocol devised by the SLAC controls group 131 This protocol provides the mechanism to send commands to multiple channels in each message, and to send multiple packets in a single message block The protocal is designed to make maximum use of available bandwith in the signalling channel In order to effectively synchronize the ramp function between multiple controllers, hardware ramp start, ramp stop, and reset lines are included in the BITBUS interconnect cable 4 ANALOG COhXROL VOLTAGE OUTPUTS Severe constraints on available volume to package the requesite functions dictated that one DAC per channel, although the simplest configuration, was not a viable alternative Thus, the configuration chosen was a single 16-bit DAC feeding 16 individual sample and holds through a 16-channel isolation switch The 16-channels are refieshed once per millisecond using a serial port on the TMS320C31 The serial data stream contains a 16-bit data field, a 4lbit address field, and a 4-bit control field The control field selects the main DAC or one of two 12bit DAC s used to adjust the offset and gain of the main DAC The data stream is demultiplexed by a pasic which contains all the logic necessary to control the refresh and calibration functions 5 ANALOG READBACKS 5 I Data Aquisition There are a total of 56 readback channels in four blocks These are: 1) 16 control voltages 2) 16 main shunts 3) 16 secondary shunts 4) 8 calibration functions These signals are carried through 16 to 1 FET switch multiplexers, to an instrumentation amplifier This amplifier feeds the selected signal to a CS5016 analog to digitat converter This ADC is a self-calibrating standalone system which is able to maintain high accuracy over a wide temperature Control of the analog data aquisition is under control of a subroutine executed in ISRl at the 1 ms interval One sample is acquired each millisecond Multiple sarnpies are aquired for each channel To capture all channels requires approximately 2 seconds

* - * 52 Calibration and Monitoring 612 Boot Loading the Controller In addition to sampling the 48 signal channels, the following parameters are converted The controller is equipped with two 64K*8 EPROM s in the region 4 0 0 0 0 0 h - 4 1 of ~ C31 address space In the current implementation, one holds the code for the C31 the other code for the 8044 although overlap is possible Boot loading is initiated by a reset or power-up After reset, the shared SRAM is mapped to f00000h, the 8044 is held reset, the C31 is in the boot loader mode, and an interrupt is applied to INTl which initiates 8-bit mode to 400000h Upon completion of the C31 load cycle, control is passed to a routine in the on-chip SRAM which remaps the S U M to start at location OOh and branches execution to the SYSNIT routine in main memory With the 8044 held reset, the C31 has access to its program store which i s first cleared, then loaded with the executable code copied from the EPROM The 8044 is then released from the reset state which gives it control of its program store and it then proceeds through its initialization 1) + reference 2) reference inverted 3) ground 4) control DAC output 5 ) reference sample and hold 6) ground fault setpoint 7) ground current 8) bulk power converter voltage By using a combination of the first five parameters, the offset and gain of each channel is dynamically controlled Since the control voltage outputs must remain futed, a 17th sample and hold is provided such that a first order correction may be performed based on the gain of the sample and hold which is approximately 09997 6 PROCESSORS The controller uses two processors An INTEL 8044 is used as the BITBUS slave, and a TI TMS32OC31 is used to provide control and computational functions and to refresh the sample and holds 6I TMS32OC31 Main Processor The TMS320C31 has a number of features which made it an attractive choice It is a 32-bit floating point processor with a 32 Mhz clock with an instuction cycle time of 120 ns (in this application) It has 4 external hardware interrupts, an on-chip boot loader, a serial port, two timers, a DMA channel, and 2K of on-chip SRAM All of these features were used in the implementation of the multi-channel BITBUS controller The front panel holds 17 LEDs which display status information and two 9-pin connectors for two serial ports for local control and status display 61I Basic System Organization The system refieshes the sample and holds once per ms by a service routine ISRl on interrupt level 1 under control of TIMERI All other periodic functions are performed by the same routine ISRl executes from internal SRAM and refreshes the sample and holds over the serial port using the DMA channel In this way, bandwidth on the main memory bus is conserved All memory access and control functions are performed by a pasic 613 Inter-Processor Communication The two processors exchange messages by means of shared memory The controller is equipped with 32K of SRAM in the C31 address space The lower 32K bytes of 8044 data store is mapped into the top 8K words in the C31 address space The 8044, of neccessity, operates asynchronously When the 8044 accesses the shared memory space, a hold request is issued to the C31 which replies with a hold acknowledge Since it cannot be guaranteed that memory access will be granted in the time required by the 8044 bus cycle, a dummy read always prefmes any access Since the 8044 only requires shared memory access to transfer blocks of data, a hold request will not be relinquished at the end of the current cycle For each access to shared memory, a release timer is reset If no further accesses are made, the timer will time-out in 340 us Memory is normally released by writing to a specific memory location The timer is provided to allow the C31 to regain control in the event of a failure in the 8044 Several hardware flags are provided which are used to synchronize message passing without the neccessity of accessing shared memory 62 I8044 BITBUS S h e processor An INTEL 8044 bctions as the BITBUS slave This device consists of an 8051 core processor along with the serial port hardware and control firmware in an on-chip PROM necessary to implement the BITBUS protocol It has a Harvard architecture, with a program store and a data store The p r o m store is read-only, and no instuctions are provided which can write to it The 8044 has no capabilty for either WAIT or HOLD states In addition, severe constraints in on-chip ram restrict the message buffer size to two 43-byte buffers

1 In this application, the program store is an SRAM which is loaded from the TMS32OC31 during the boot loading process In order to facilitate debugging using an emulator, the chip is configured to use external memory only The executeable code was copied from the the onchip prom and is loaded to program store during the boot loading proceedure 62I Basic System Organization The 8044 runs under control of the INTEL DCX51 operating system Four tasks are defined TASKO performs the serial I/O and the BITBUS protocol and is hidden from the user TASK1 is invoked by TASKO when a message has been received It copies the message from the buffer in the memory pool RAM, saves it in 1 of 16 temporary buffers in data store, and deallocates the buffer to return it to the memory pool TASK3 is invoked from the C31 by ISRl to test for the presence of any waiting messages If a message is waiting, it will be copied to the shared memory TASK2 is is invoked by the C31 when processing of the current message is completed The reply is copied &om shared memory the an assigned buffer in the memory pool, and a request is sent to TASKO to send the reply message to the master 7 INTERLOCKS 7I Power Converter Module Interlocks The MCOR12 system is provided with a number of interlocks to assure safe and reliable operation Each power converter module is equipped with a latching overcurrent and under voltage detector An over-current failure in a converter is latched and the status bit returned to the controller is set 72 Controller Interlocks A daughter board is used to provide controller interlock functions This board contains a ground fault detector and the controller fault latches 72,I Under Voltage The bulk power converter voltage is monitored and returned to the control system In addition, the power converter must be reset with a minimum voltage present on the supply bus before the converter will become active 722 Ground Current Each MCORl2 has a ground current resistor This current is monitored and returned to the control system 722 Ground Fault The ground fault detector will latch a fault if this current exceeds a preset value 73 System Interlock H a d i n g - When an interlock occurs, the appropriate bit & set in the controller status word The next message requesting device status will inform the system of the failure A message RESET INTERLOCK may be sent to reset If the reset is not reset, the affected channel@)will remain off-line A successful reset will return them to service ACKNOWLEDGEMENT The authour wishes to express gratitude to Dave Brown, Mike Brown, Mark Crane, Linda Hendrickson, Tom Himel, Dave Macnair, Jeff Olsen, and Lee Ann Yasukawa for their able assistance in finding a number seemingly intractable problems We also wish to express our appreciation to Len Genova for his continued support of this project REFERENCES [ 13 GELeyh, AR Donaldson, SLAC, Stanford CA 94309 [2] 8-Bit Embedded Controllers, Intel order number 270645 [3] Lee Ann Yasukawa, PEP I1 BITBUS Power Supply Interface Control Document, SLAC internal document

,