Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 27615

Forum Post: RE: ADS122U04EVM: Possible to communicate via COM-Port

$
0
0
Thanks for the helpful answer Bob, my endgoal is to use an excelsheet to collect and show the data results. The Registers should be set by an included table. The enddata should be printed an additional table. For that purpose i want to use an makro that uses the win-api to get a communcation to the serial port. Thats an example for 20SPS, so i use a sleep time of 50ms in the continous-conversation between each data i would receive. Here is a short summary what the makro-module does: - getting data of the excel table: settings for each register (saving in a value of 1 Byte for each), getting the number of samples to receive, -initialize the communication to the serial port (port id, baudrate, paritiy, number of databits, stopbit) -sending snychro and resetcommand (&h55,&h06) then sleep 50ms -loop for 0 to 4: sending synchro an registersettings commands with &h55, &h40,&h03 for example, next iteration: &h55,&h41,&h02 and so on (the register setting are only for example like in the first &h03) -setting ads122u04 in continous-conversation-mode by sending &h55, &h08 -now loop with the number of samples that should be collected: -checking DRDY in register 3 to control if new data is available by sending &h55, &h22 -if data isn't available try again uo to 10 times -if data available send &h55, &h10 -receive data and put it into a variables (3Bytes) -sleep 50ms -print data in to a cell in the table -next iteration, up to the iteration number that is the same as the sample number to collect shutting down the ads122u04 with &h55, &h02 ; then closing the serial connection If i understand you right, then that should be possible by using for example an usb to serial adapter that includes an TTL-Uart (for example with an ft232bl). Then i have to remove the connection on the ads122u04evm that lets the tiva microchip and the ads122u04 communicate. So it should now be possible to connect the RX,TX pins from the adapter to the TX,RX marks on the EVM? In theory would it work this way? Thanks a lot, greets Jan

Viewing all articles
Browse latest Browse all 27615

Trending Articles