Home
Sync Box User`s Guide - UBC Physics & Astronomy
Contents
1. 1 1 6 SyncBox Outputs 6 1 MCE Fiber Optic Outputs Manchester Bit Stream Components There are eight FO outputs which will connect to the MCE Clock Cards The FO outputs are divided into two groups of four each for a possible future dual rate operating mode 6 1 1 25 MHz Clock Clk25M This is the Manchester bit stream clock It is always output as a stream of ones except as specified below 6 1 2 Address Zero Occurrences of Addr_Zero are encoded into the Manchester bit stream as a single binary 0 It is output every time the Syne_Length count completes where Sync_Length Row_Length x Num_Rows and counts cycles of CIk25M 6 1 3 Data Valid Information This sequence contains Address Zero Data_ Valid Status Bits and a Frame Sequence Number It is output when Addr_Zero occurs and a DV_RTS or a FreeRun_DV if in FreeRun Mode has occurred during the preceding Sync_Length count Addr_Zero and DV are encoded into the Manchester bit stream as binary 00 They are followed by a 6 bit status word and then a 32 bit Frame Sequence Number count for a total of 40 bits If two or more DV have occurred during a Sync_Length count the DV_Error bit will be set this can only occur when in RTS_ Mode Address Zero Sync Bit Data Valid Bit Status 6 bits Frame Sequence Number 32 bits lt a DV Error FreeRun_Mode Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Ver
2. 4 3 FreeRun Mode DV period count default 47 eecececsceceseceeeeeeeeeeeseesseecsueceeeneeeensees 5 5 SyncBox status and Error Messages casi ates ssc sais 2 ota nates Sut jecaeielitealssadsanadivendarays ieckrna Uh naues 5 6 SyMeC Box Outputs e o ieee cota cs eas cova Bese cds eka cata Ses as E a Gea Na RT Aaa hug to aa cn ta AE EEEE 6 6 1 MCE Fiber Optic Outputs Manchester Bit Stream Components 0 0 0 0 eeeeseeeceeneeeeeeeeeeeeeaes 6 6 1 1 25 MH Clock CIK25M annan ae a ues wanes arden ane a 6 6 1 2 Address Zero ouank aen n E A a N ae a ae 6 6 1 3 Data Valid Vinten Cnn cso octets Soe cae ont lel eh ioe ao cata eel clan 6 6 2 Data Valid Output To FTS and Polarimeter ccc eccceccceseceesceeeeceseceeceeeeeeseeceaeeeeeeeeeeeseees 7 6 3 Spare RS 485 5MHz NRZ OUipusts 05 c acncassaedacss aiacecisueurss eqaneaosgandaessasosacesesauedostueaes taaecenese 7 6 4 Front Panel LEDS esac acs io E O OR E E E E a Gi T T SyncBox INPUTS ipae apaa n EEE ERR E ap eco ea te gents cas tenrgenngecaness i 7 1 Commands and Status Serial IO sssesenneeseesseeseesessseesseseessessessrsseessessesseessessrssseeseserssesseseess T ad Data Valid Inp t DV RES jni E a i 7 Tad Reset B tt n ssec tanana an e a a EE a A e a i yi 8 lt Other Box Inputs And O tP ts posie aia R E R AEO a aa eee 7 8 1 MCE Power Supplies Status inputs s sssessessesseseessesseesresseesesssseesresrsstessesrrssessessrssresseene 7 8 2 MCE Power Supplies Ena
3. ACDCU ey arn eae cman manny Ja ane lane H fa accus 5 fa AcDcuT ee ee ee A 1 1 Command IO Processor Commands are sent to the SyncBox by a 9600 baud RS 232 link to an Atmel AT89C5131A M which is a version of the 80C51 single chip 8 bit microcontroller Input command variables are checked by the Command Processor and loaded one byte at a time into the Sync Generator CPLD over programmed IO connections with eight bits for data and an eight bit address POWER RESET DV ERROR FREERUN g 1 2 Sync Generator CPLD Generation and distribution of the Manchester bit stream the Data Valid signal etc is done by firmware in an Altera MAXII CPLD Px oe Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 2 Command Summary h Help List these commands List current SyncBox parameters and status rln set Row_Length to n n 1 to 4095 nrn Set Num Rows to n n 1 to 63 rt Switch to RTS _ Mode frn Switch to FreeRun Mode with a count of n n 1 to 4095 ifn omitted then use previous n or default value fon Set Frame Sequence Number counter to n n 0 to 27 1 go Enable Manchester and Data Valid outputs st Stop Disable Manchester and Data Valid outputs re Reset all to defaults dpa Disable all ACDCU power units dpu n Disable ACDCU power unit n n 0to7 epu n Enable ACDCU power unit n n 0to7 pof Get ACDCU_ onoff control byte ps Get ACDCU statu
4. CE ACDCUs give enabled disabled information This can be checked with the ps command which will reply with an ASCII hex encoded version of the ACDCU status byte Synco gt ps ACDCU Status 0X7B STe Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 8 2 MCE Power Supplies Enable Outputs 8 3 8 4 10 11 Eight outputs to drive enabling optocouplers in the MCE ACDCUs Spare Opto TTL Input A One bit optocoupler isolated input to the Command Processor is available This input is ignored in this version Spare TTL Out and TTL In These connect to the Sync Generator Module Inthis version TTL Out will get a NRZ version of the 25MHz synchronizer bit stream information TTL In is not used Updating The Command Softwware If you want to modify the command software you will need the Keil uVision3 IDE See the Keil website www keil com for details Loading the uVision3 output hex file into the AT89C5131A M is done using the USB port and the Atmel Flip utility FLexible In system Programmer which can be downloaded from the Atmel website www atmel com Flip is a Java application so you will also need the Java Run time Environment On the SyncBox PCB with power applied To reprogram BLJB or to get the bootloader to restart so that you can download new code the PSEN and RESET switches must be held down while the USB connector is inserted Reset is then r
5. Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 Sync Box User s Guide Revision History Rev 1 b RJ July 07 2006 Draft Rev 1 c RJ Oct 25 2006 Rev 1 d RJ Dec 8 2006 updated block diagram Rev 1 1 MA Jun 7 2007 added document number and revision history For SyncoCmd V Ic and firmware SC2 SyncBox 6c Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 Table of Contents Io SyncBox SUNMA vanie t A gt Salanig taeda E cel tala told bean due N an et ta cetal mieten 3 A Command 1O Processors cic annn ana a a tected gules a i Aaa lea aes ae is 3 2s Syn Generator CPLD a haa wales Coreen lal die sauces elec a a slay a n ese een ones ni 3 2 Command SUMMA snene n Nees Aa hee E we Raia tia ee ta aie 4 3 Command Communications Set Up sssicsscecaeatviedice dead aatcssasts ablated diem daatcineenaeniaus 4 4 Command Inp t Variables eepo eoi ssgec E aaiesdatiebs uses e E E aa 5 4 1 Syne Length Period Countess corset cat ceate seven ess ales E aE en EEA EE e Gas ea ales 5 4 1 1 Row_Len period count default 64 J 000aooonoooeesseessensseesseessseessessesseesseressseesseese 5 4 1 2 Num_Rows count default 41 0 0 ec cceneecsseeeceeeeeceeeeceeeeeceeeeecseeecsneeeesaeees 5 4 2 RTS Mode or FreeRun Mode default FreeRun 0 0 ce ec cececeteceseeeeeeeesceceueceeeeeeeeeesees 5
6. ble Outputs ccscccssccsssscssccseccesccsssscssccssccesscesnsseseccssacesncesnnsens 8 S3 Spare Opto T TLINP T roet enn pions n o E O A a T eect ues 8 84 Spare T Te Out amd TDi irran eenn aa ea a date aa A E RE ate E aaes 8 9 Updating The Command Softwware ssesessseesseseeeseessesetesesseestesesstestestessteseesrsseeseseessessessest 8 10 Updating The Sync Generation Firmware i 23 290360ssv ceca ec esa EAs 8 11 Power And Environmental Specifications ccccccssccssccsssceessecsseceeceseeeescecseeceaeeseceeeaeecsaeeneeeaes 8 UDO References rniret a toute a opecd eta e r A baiatioge E A aaa ty 9 Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 1 SyncBox Summary The SyncBox distributes Address Zero and Data Valid information to the eight MCE Clock Cards to synchronise their data collection functions It is controlled by a Command Processor with connections to a CPLD all located on the same PCB User commands are input to the Command Processor via RS 232 The CPLD generates a serial bit stream which is Manchester encoded with a 25 MHz clock and contains information for occurrences of Address Zero Data_Valid and also a Frame Sequence Number OPT O TTL IN DV SPARE1 DV SPARE2 5 mn z a MCES FO Ts MCE MCE Manchester Bit MCE Stream Outputs COMMAND 10 RS 252 RaTx S eee To POL DV OUT RS 485 TTL ___ BOX EDGE To MCE
7. e MCE 4 1 1 Row_Len period count default 64 Row_Len is settable from 1 to 4094 and counts cycles of Clk_25M 4 1 2 Num Rows count default 41 4 2 4 3 Num Rows is settable from 1 to 63 and counts cycles of Row_Len Output is Addr_ Zero The sync box does not take into account MCE start rows other than zero RTS_Mode or FreeRun_Mode default FreeRun The commands rt and fr nnnn switch between RTS Mode and FreeRun Mode In FreeRun Mode DV_ RTS is ignored FreeRun_Mode DV period count default 47 When in FreeRun_Mode the sync box generates it own Data_Valid by down counting occurrences of Addr_ Zero from a command settable number between 1 and 4095 When the count goes to zero it outputs a FreeRun_DV and re loads to repeat the count If N lt 1 an error will be reported If N is omitted the default or previous value is used If the sync box is in RTS_Mode FreeRun DV output is ignored SyncBox Status and Error Messages Status Output Format Mancho Enable ON DV_Mode FreeRun_DV FRUN_COUNT 47 Row_Len 64 Num_Row 41 ACDCU _ onoff 0X00 Some Error Messages Synco gt xx WHAT xx Unreconized command Synco gt rl 9999 TOO BIG 9999 Command parameter too large Synco gt rl0 TOO SMALL 0 or too small Synco gt rl xx WHAT xx could not parse the parameter value Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version
8. eleased followed by PSEN In Flip Click on the Target Device icon and select AT89C5131 Make sure that BLJB is unchecked so that the user program will always start after a reset Get the hex file File gt Load HEX File Click on the USB icon and open the UBS connection Click on the Run button and wait while the programming sequence completes Click on the Start Application button Updating The Sync Generation Firmware Power And Environmental Specifications Power supply Lamda RWS15A input voltage range 85 to 265VAC 47 to 440Hz Power inlet filter Corcom 1EEJ1 is rated 1A 250VAC max 50 60Hz Operating temperature range 0 to 30 C or better Time base stable to 50 PPM or better over temperature range 8 Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 12 References 1 Timing and response to Data Valid Pulses dv_timing pdf M Halpern 2005 08 11 2 MCE Interfaces SCUBA2 Rev2 pdf x MCE User s Manual x Atmel 89C5131AM data sheet x Atmel 8051 Microcontrollers Hardware Manual x Altera MAXII Device Handbook
9. s byte Notes 1 Row Length x Num Rows must be gt 250 2 For the SyncBox Row Length is counted in cycles of 25MHz 3 Command Communications Set up Sending commands to the SyncBox can be done from a PC running Windows by using HyperTerminal Start HyperTerminal using the file Synco Com ht or set HyperTerminal as follows COM Port 9600 baud 8bits no parity 1 stop bit no flow control Emulation VT100 Character set ASCII Backspace key sends Ctrl H Space Ctrl H Append line feeds to incoming line ends More than one command may be put on a single input command line up to a maximum of 12 tokens commands arguments and 80 characters For repeated use this string of commands and arguments could be put into a one line only text file Physics and Astronomy Dept Ron Johnson UBC 6 6 2007 12 12 PM SCUBA 2 Project SC2 ELE S589 502 Version 1 1 4 Command Input Variables 4 1 Sync_Length Period Count In the Sync Generator CPLD Row_Len and Num_Rows count functions are combined into a single 18 bit counter but are still settable independently as defined in the next two sub sections To allow time for the output of the 5MHz Data_ Valid information the minimum Sync_Length permitted will be 250 If Row _Len x Num Rows lt 250 an error will be reported The SyncBox counts Sync_Length in cycles of 25MHz and it is assumed the Row_Len value it receives has been scaled appropriately to match the counting done in th
10. sion 1 1 6 2 Data Valid Output To FTS and Polarimeter 6 3 6 4 7 1 7 2 7 3 8 1 This is a buffered version of DV_RTS or FreeRun_DV if the SyncBox is in FreeRun Mode The DV output for FTS or Polarimeter use will be about usec wide active low and is delayed to occur at the next Addr_Zero when the manchester bit stream Data Valid and Frame Sequence Number are output Both outputs have an RS485 and a TTL output Spare RS 485 5MHz NRZ Outputs There are two spare RS 485 only outputs which are used for a 5MHz NRZ and clock version of the Data Valid information DV Sparel has the 5MHz clock output and DV_Spare 2 has the NRZ DV information stream NOTE the 5Mhz output contains only the DV info stream but not the occurrences of Addr_Zero between DVs Front Panel LEDs FreeRun Mode This LED is on when the SyncBox is in FreeRun Mode DV Error When two or more DV occur during a Sync_Length count the DV_Error LED will be turned on this can only occur when in RTS Mode The LED is turned off at the next Addr_Zero SyncBox Inputs Commands and Status Serial IO One RS 232 IO connection See Command Communications Set up Data Valid Input DV_RTS Data_Valid RS 485 input from RTS Any falling edge will be taken as a DV signal Reset Button Resets all control states and parameters to the default startup values Other Box Inputs And Outputs MCE Power Supplies Status inputs Eight inputs driven from optocouplers in the M
Download Pdf Manuals
Related Search
Related Contents
Husqvarna 115 24 05-95 Blower User Manual SA9000 acquisitions livres adultes septembre 2014 Manual - Tramontina 6,000W Shop Heater 20140102_UAT Kids digital camera_quotation_to OZEOL Copyright © All rights reserved.
Failed to retrieve file