chipKIT® Development Platform

Inspired by Arduino™

How to use PmodAD5?

Created Mon, 17 Jun 2013 04:14:30 +0000 by yasbin20


yasbin20

Mon, 17 Jun 2013 04:14:30 +0000

hello all. I need your help on a project that includes the reading of a pressure transducer. To perform the analog-digital conversion acquired the PmodAD5 and I have no idea how to acquire the information to my chipKIT Max32. I have not much experience with microcontrollers for this reason I need help.

Anyone knows of any example using this converter for better idea.

In advance thank you for your help.

Yasbin.


majenko

Mon, 17 Jun 2013 15:36:15 +0000

According to the manual (you have read it, haven't you?)

The PmodAD5 has a 4-wire SPI communication interface.

So therefore you can use the DSPI library to communicate with it using any of the SPI ports of the MAX32.

The chip is the AD7193, and the data sheet for that is here: [url]http://www.analog.com/static/imported-files/data_sheets/AD7193.pdf[/url]

That details the SPI interface for you, including configuring the various registers, etc. Page 21 is where that information starts.

It seems to be a bit cryptic, but I think you send a communication register byte to select the register you want, then send or read the data for that register.


yasbin20

Tue, 18 Jun 2013 02:26:00 +0000

Thanks Majenko for your information I will try it now... :)