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.

problem in initilizing SPI mode while interfacing with mcp41010 digital pot in 8051

Status
Not open for further replies.

abhishekdixit

Full Member level 2
Joined
Dec 30, 2011
Messages
124
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
India
Activity points
2,182
hello,
i am using mcp41010 digital pot for controlling the volume of my audio amplifier. after reading the datasheet of the digital pot i have understood the working that how to interface that digital pot. but the problem is that i have to interface this pot with 8051 micro controller using SPI interface, now i don't know the register of SPI interface & after reading from some pdf i got some register which is used for initializing SPI interface, but when i am starting to write my program in c in keil uvision3, it does not recognize any register, so now this is the problem i am getting that i am unable to initialize my SPI protocol.
so if someone has any example or pdf regarding this problem then please help me..

Thank you,


with regards
Abhishek Dixit
 

Have you included the appropriate header file?
For example:

// Must include the appropriate microcontroller header file

#include <AT89×52.h>
 

hi btbass,
I have already included my header file, but i just want to know that apart from #include<at89x52.h>, is their any other header file which i have to include???
like#include<spi.h>
 

I don't think so?
All the regs should be defined in the include file.

Download the 'Patterns for Time-Triggered Embedded Systems' book from here for sample code. (Free!)

http://www.tte-systems.com/books/pttes
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top