Changes between Initial Version and Version 1 of Spartan-3AN_Starter_Kit_Implementation


Ignore:
Timestamp:
Nov 8, 2013, 10:17:54 AM (11 years ago)
Author:
Eric Hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Spartan-3AN_Starter_Kit_Implementation

    v1 v1  
     1== Serial Interface Documentation ==
     2
     3
     4* [[PicoBlazeControlBlockReleaseNotes]]
     5
     6
     7== Example Serial Controlled Tests ==
     8
     9=== Test 1 - Auto Scale On ===
     10{{{
     11  $w 8 0003      Enable test mode, auto scale
     12  $w c 1000      Set measurement clock to 4ms period (in microsecond units)
     13  $w d 0100      Set phase detector period to 256 measurement clocks
     14  $w e 007f      Enable 7 bits randomness on period (0x100-0x17f random)
     15  $w 1 1000      Set delay to 25% of maximum value 16383(0x3fff)
     16  $w 2 2000      Set width to 50%
     17
     18}}}
     19=== Test 2 - Auto Scale Off - Non-Error State ===
     20{{{
     21  $w 8 0003      Enable test mode, auto scale
     22  $w c 03e8      Set measurement clock to 1ms period (hex number is in microsecond units)
     23  $w d 1000      Set phase detector period to 4096 measurement(timing) clocks
     24  $w 1 1000      Set delay to 25%
     25  $w 2 2000      Set width to 50%
     26
     27}}}
     28=== Test 3 - Auto Scale Off ===
     29{{{
     30  $w 8 0001      Enable test mode, auto scale off
     31  $w c 0014      Set measurement(timing) clock to 20 micro second period
     32  $w d 0064      Set phase detector period to 100 measurement(timing) clocks
     33  $w 1 000a      Set delay to 10 measurement(timing) clocks
     34  $w 2 000a      Set width to 10 measurement(timing) clocks (i.e. 200uS duration)
     35
     36}}}
     37=== Test 4 - Auto Scale Off - Non-Error State ===
     38{{{
     39  $w 8 0001      Enable test mode, auto scale off
     40  $w c 03e8      Set measurement clock to 1ms period (hex number is in microsecond units)
     41  $w d 06a4      Set phase detector period to 1700 measurement(timing) clocks
     42  $w 1 0000      Set delay to 0
     43  $w 2 0064      Set width to 100 measurement(timing) clocks (i.e. 100mS duration)
     44
     45}}}
     46[http://ohm.bu.edu/~pbohn/Bio_Delay_Generator/Documentation/scope_captures Scope Captures]
     47
     48== Error Cases ==
     49
     50==== Set Error if: ====
     51* 10 micro seconds < ''''timing clock period''' < 2047 micro seconds
     52* 1638 timing clocks < ''''phase detector period''' < 16383 timing clocks
     53
     54
     55== Serial Interface Registers ==
     56{{{
     57  REG   READ/WRITE
     58  0     status register
     59  1     delay_value (shutter delay, 14 bits, read or write)
     60  2     width_value (shutter width, 14 bits, read or write
     61  3     pp_delay_count (last measured phase detector period (16 bits, read only)
     62  4     cp_width_count (current width count, constantly changing)
     63  5     cp_delay_count (current delay count, constantly changing)
     64  6     scaled_delay (scaled delay value)
     65  7     scaled_width (scaled width value)
     66  8     control
     67  9     -not used-
     68  a     last measured timing clock period in us
     69  b     -not used-
     70  c     test generator- timing clock period in us
     71  d     test generator- phase detector delay period in timing clocks
     72  e     test generator- phase detector jitter mask (0 for no jitter)
     73  f     test generator- not used
     74
     75}}}
     76
     77== Board Button and Switch Assignments =
     78
     79=== Push Buttons ===
     80* Delay Increment Coarse  -- West (loc=U15)
     81* Delay Decrement Coarse  -- South (loc=T15)
     82* Width Increment Coarse  -- East (loc=T16)
     83* Width Decrement Coarse  -- North (loc=T14)
     84
     85=== Slide Switches ===
     86* Reset  -- SW0
     87* Auto Scale  -- SW1
     88* Shutter Enable -- SW2
     89* Shutter Cascade -- SW3
     90
     91=== Rotary Encoder ===
     92* TC_DIVIDER -- ROT_A, ROT_B (select timing clock freq by rotating encoder)
     93
     94== Board I/O and Pin Assignments ==
     95
     96=== Inputs: 6-pin header J18 Pins ===
     97 
     98 
     99 
     100
     101=== Outputs: 6-pin header J20 Pins ===
     102 
     103 
     104 
     105 
     106
     107=== LEDS ====
     108* LD0 -- Test Phase Detector
     109* LD1 -- Test Timing Clock
     110* LD2 -- Shutter
     111* LD7 -- Error
     112
     113