As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Changes

Jump to: navigation, search

CW308T-D2000

1,462 bytes added, 14:32, 22 February 2018
Using Board
The CW308T-D2000 is used similar to any other CW308 Target Board. It does not accept an external oscillator, instead it outputs it's own oscillator for you to synchronize to. Specific caveats here:
* Be sure to mount J3 at lowest setting which routes the "CLKFB" line to "HS1/IN".
* You'll need to configure the ChipWhisperer to use an external clock input (EXTCLK or EXTCLK x4). This is taken care of by the D2000 setup script.
* The baud rate will need to be changed - it is scaled to be 115200 at 32 MHz. Use the frequency counter to measure the actual frequency & scale baud rate appropriately. Depending on the ROM loaded the clock varies. This is taken care of by the D2000 setup script.
* The TX/RX are opposite compared to the XMEGA. This is taken care of by the D2000 setup script.
The following shows an example setup script for this board:
<syntaxhighlight lang="python">
scope.gain.gain = 45
scope.adc.samples = 25000
scope.adc.offset = 0
scope.adc.basic_mode = "rising_edge"
scope.clock.clkgen_freq = 7370000
scope.clock.adc_src = "extclk_x4"
scope.trigger.triggers = "tio4"
#TX/RX backwards from XMEGA
scope.io.tio1 = "serial_tx"
scope.io.tio2 = "serial_rx"
scope.io.hs2 = None
 
# Sample delay - you may need to increase this!
# Gives time for frequency measurement to occur in hardware.
time.sleep(0.5)
 
ext_freq = scope.clock.freq_ctr
 
if ext_freq > 10:
 
baud = (115200 / 32E6) * ext_freq
print "Based on extclk of %d Hz, setting baud to %d" % (ext_freq, baud)
target.baud = baud
else:
raise IOError("Did not detect external clock from D2000. Confirm jumpers and rerun, or increase delay before sample."
</syntaxhighlight>
== Programming ==
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu