system-console: control timing of multiple commands (wait/pause?)
Hello,
I am using batches of commands sent together on the system-console interface. I do need to be able to control the timing of the commands (the device appears to need a very short pause in between each).
1) Is there a pause 1us or X clock cycles, or similar command available that can be sent from the system-console?
In the documentation, I could only find executor_wait_for but it requires a handle (don't have one) and the unit is unclear.
Example of commands sent. The SPI here is tripping and needs a couple extra clock cycles between each write.
master_write_16 {/channels/local/m/master_1} {0x200183a2} {0x049a}; master_write_16 {/channels/local/m/master_1} {0x20018458} {0xe5a7}; master_write_16 {/channels/local/m/master_1} {0x200185a8} {0xba4d};
system-console 12.1
Or is there a better way to do large SPI read/writes (100s at a time?)
2) I can't manage to solve what seems to be a very simple problem. The following code works when I call rreg2 but not rreg.
# TCL script for system console: proc rreg {master addr} { foreach a $addr { rreg2 $master $a } } proc rreg2 {master addr} { puts "master_read_16 $master $addr 1;" master_read_16 $master $addr 1; }
Example:
#This works: rreg2 /channels/local/m/master_1 0x20010200 #This does not work: rreg /channels/local/m/master_1 0x20010200
Could you point me to the right direction?
Thank you