To: | |
---|---|
Subject: | Re: [ts-7000] TS7200 + TS9700 |
From: | Christos Eleftheriadis <> |
Date: | Mon, 5 Dec 2005 11:46:48 +0100 |
Hello Cliff, I am using the TS9700 with the TS7200... Accordning to the pdf on the files section the Base address is 0x11C00000 for both platforms (7200 and 7250) and this the base address I use in my programs I am running NetBSD and I have achieved around 38Ksps Are you running Linux ? I think that all the includes are the same so this litle prog can run directly Maybe you can post your maximum sampling speed... below is a small program that reads the ADC ch0 for 25000 times and then prints the first 10 results --------------------------------------------- #include <stdio.h> #include <fcntl.h> #include <sys/time.h> #include <sys/mman.h> #include <stdlib.h> #include <unistd.h> int main(){ unsigned long i; int k; int bit_7; volatile unsigned short *RESULT_REG; volatile unsigned char *base; volatile short *iptr; iptr = (short *)malloc(sizeof(unsigned short)); int fd = open("/dev/mem", O_RDWR); base = mmap(0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x11C00160 ); i = 0; bit_7=0; RESULT_REG = (unsigned short *)(base + 0x02); // two byte read printf("Start loop\n"); *base = 0x00; while ( i < 25000 ) { do { bit_7 = *base & 0x80; } while (bit_7 == 0); iptr[i] = *RESULT_REG; *base = 0x00; i++; } printf("End loop\n"); k = 0; while ( k < 10){ fprintf(stdout, "%1.13f\n", iptr[k]*0.0006103515625); k++; } return(0); } On 12/4/05, Cliff Blackburn <> wrote: I am trying to get the Analog TS9700 Board to interface with my TS7250 Arm board but have hit a wall. YAHOO! GROUPS LINKS
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] arm-linux-g++ problems???, ld_ts7200 |
---|---|
Next by Date: | [ts-7000] Re: New board from embeddedARM., PeterElliot |
Previous by Thread: | [ts-7000] TS7200 + TS9700, Cliff Blackburn |
Next by Thread: | Re: [ts-7000] TS7200 + TS9700, Cliff Blackburn |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU