Skip to content
Snippets Groups Projects
Commit 3e1388f8 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Added SWV binary output.

parent 798434db
Branches
Tags
No related merge requests found
......@@ -584,7 +584,12 @@ void swv_experiment(int16_t start, int16_t stop, uint16_t step, uint16_t pulse_h
while ((dacindex <= dacindex_stop && direction == 1) || (dacindex >= dacindex_stop && direction == 0)){
tc_clear_overflow(&TCF0);
printf("%u %ld %ld\n\r", dacindex, forward, reverse); //data output
//data output
printf("B\n");
send_data_uint16(dacindex);
send_data_int32(forward);
send_data_int32(reverse);
printf("\n");
while (!tc_is_overflow(&TCF0)){ //convert continuously until tc overflow - datum is last collected point
while (ioport_pin_is_low(IOPORT_CREATE_PIN(PORTD, 5))); //wait for next valid datum
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment