Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[51] SPI interface to a ADC and data acquisition into matlab

Status
Not open for further replies.

ammar652

Newbie level 4
Joined
Sep 11, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Germany
Activity points
1,320
Hi,
I am using a 12-bit ADC for analog to digital conversion. The ADC itself supports SPI interface and i need to use a microcontroller to make this interface. Finally the digital data needs to be brought in MATLAB?
I am toltally new to microcontrollers so i have some basic questions:
a. Which microcontroller should i use?
b. Is there any other intermediate block needed to interface microcontroller with Matlab?
c. To get final data acquisition into Matlab,is it required to make another SPI interface in Matlab to read data from microcontroller?
Thanks a lot,
 

Any micro that can fit your code and have one USART and one SPI is enough. Matlab interfaces to microcontroller through USART. You need MAX232 between microcontroller USART and PC (Matlab). ADC interface using SPI.
 

if you want controller to interface with adc you can try controller having SPI protocols otherwise if you want to read data from inbuilt ADC then you can try with PIC controller and PIC controller provide much wider range can suite you application.
 

Thank you all.
I have selected Atmel Attiny 13 microcontroller for this application.
Can anyone please guide me that for UART interfacing with microcontroller do I need to make some code in Microcontroller as well or only in Matlab. (I am new to this thing so could be a easy/stupid question for someone.)
Help would be appreciated.
 

If you are an absolute beginner to microcontroller, use an Arduino board.

With Arduino, creating a program is very easy since there are built-in libraries for handling complex tasks like reading/writing to the SPI and serial port.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top