@@ -45,16 +45,15 @@ Usage
4545
4646The pinout for the PrawnDO is as follows:
4747
48- * Outputs 0-15 (labelled by default in hex 0-F) : GPIO pins 0-15, respectively.
48+ * Outputs 0-15: GPIO pins 0-15, respectively.
4949* External Trigger input: GPIO 16
5050* External Clock input: GPIO 20
5151
5252Note that signal cables should be connected to the Pico digital grounds for proper operation.
5353
5454The PrawnDO can provide up to 16 digital outputs, which are accessed via `name.outputs `.
55- Each channel is specified using the corresponding hex character (spanning 0-F for 0-15).
56- The channel string must end with a single character between 0-F to be valid
57- (i.e. `'flag 0' `, `'do 0' `, and `'0' ` are all valid channel specifications for GPIO 0 of the PrawnDO).
55+ Each channel is specified using with a string of the form `'doD' `, where `'D' ` is the GPIO number
56+ (i.e. `'do10' `, is the specification for GPIO 10 of the PrawnDO).
5857
5958An example connection table that uses the PrawnBlaster and PrawnDO:
6059
@@ -69,9 +68,9 @@ An example connection table that uses the PrawnBlaster and PrawnDO:
6968
7069 PrawnDO(name = ' prawn_do' , com_port = ' COM5' , clock_line = prawn.clocklines[0 ])
7170
72- DigitalOut(' do0' , prawn_do.outputs, ' flag 0 ' )
73- DigitalOut(' do1' , prawn_do.outputs, ' chan 1 ' )
74- DigitalOut(' do10 ' , prawn_do.outputs, ' flag C ' )
71+ DigitalOut(' do0' , prawn_do.outputs, ' do0 ' )
72+ DigitalOut(' do1' , prawn_do.outputs, ' do1 ' )
73+ DigitalOut(' do12 ' , prawn_do.outputs, ' do12 ' )
7574
7675 if __name__ == " __main__" :
7776
@@ -138,9 +137,9 @@ An example connection table using external clocks with the default frequency of
138137 PrawnDO(name = ' prawn_do' , com_port = ' COM5' , clock_line = prawn.clocklines[0 ],
139138 external_clock = True )
140139
141- DigitalOut(' do0' , prawn_do.outputs, ' flag 0 ' )
142- DigitalOut(' do1' , prawn_do.outputs, ' chan 1 ' )
143- DigitalOut(' do10 ' , prawn_do.outputs, ' flag C ' )
140+ DigitalOut(' do0' , prawn_do.outputs, ' do0 ' )
141+ DigitalOut(' do1' , prawn_do.outputs, ' do1 ' )
142+ DigitalOut(' do12 ' , prawn_do.outputs, ' do12 ' )
144143
145144 if __name__ == " __main__" :
146145
@@ -172,7 +171,7 @@ the second instruction (`do0.go_low(t)`) must be at least 5 clock cycles after t
172171.. code-block :: python
173172
174173 t = 0
175- do .go_high(t)
174+ do0 .go_high(t)
176175 t = 1e-3
177176 wait(' my_wait' , t)
178177 do0.go_low(t)
0 commit comments