Changes

CW303 XMEGA Target/Communication

799 bytes added, 13:56, 19 April 2018
Created page with "= Setting up Communication = Sets up the ability for communication with the target using the ChipWhisperer scope. == Using GUI Scripts == Within the python console run the fol..."
= Setting up Communication =
Sets up the ability for communication with the target using the ChipWhisperer scope.
== Using GUI Scripts ==
Within the python console run the following scripts in order:
<ol>
<li><code> connect_cwlite_simpleserial.py </code></li>
<li><code> setup_cwlite_xmega.py </code></li>
</ol>
== Python scripting ==
Execute these lines of code within the python console:
<syntaxhighlight lang=python>
import chipwhisperer as cw

scope = cw.scope()
target = cw.target(scope)

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 = "clkgen_x4"
scope.trigger.triggers = "tio4"
scope.io.tio1 = "serial_rx"
scope.io.tio2 = "serial_tx"
scope.io.hs2 = "clkgen"
</syntaxhighlight>