From 93448d22df57f97b9374296ce2bd2f07e5237423 Mon Sep 17 00:00:00 2001 From: Michael Dryden Date: Fri, 28 Mar 2014 18:25:28 -0400 Subject: [PATCH] LSV Test --- DSTAT-temp/src/main.c | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/DSTAT-temp/src/main.c b/DSTAT-temp/src/main.c index 5f686d9..f890753 100644 --- a/DSTAT-temp/src/main.c +++ b/DSTAT-temp/src/main.c @@ -128,9 +128,26 @@ int main(void){ // } // } + ads1255_setup(ADS_BUFF_ON,ADS_DR_7500,ADS_PGA_2); + +// max5443_set_voltage1(0); +// pot_exp_start(); +// ads1255_rdatac(); +// ads1255_sync(); +// ads1255_wakeup(); + + autogain_enable = 0; + g_gain = POT_GAIN_100; + pot_set_gain(); while (1){ - command_handler((char)getchar()); -// lsv_experiment(0,1000,100,2); +// command_handler((char)getchar()); + +// while (1){ +// while (arch_ioport_get_pin_level(IOPORT_CREATE_PIN(PORTD, 5))); +// printf("%ld\n\r", ads1255_read_fast24()); +// } + delay_s(1); + lsv_experiment(-1500,1499,400,2); } -} \ No newline at end of file +} \ No newline at end of file -- GitLab