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.

C8051F340 SPi & SMBus communication.

Status
Not open for further replies.

venkateshg

Newbie level 6
Joined
Sep 4, 2015
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Chennai
Activity points
60
Hi all,
Am using C8051F340 controller .Also attached schematics file. In that port-0 am using SPI . port1 SDA& SCL lines. In that initializing XBR and Pskip. SPI working fine,but SMBus not working. can anyone tell me suggesstion for this init is correct or wrong.

Code:
	P0MDOUT |= 0x1D;                   
   	P0 = 0xFF;
   	P1MDOUT = 0x04;              
   	P1 = 0xFF;

	XBR0     = 0x0F;               
   	XBR1     = 0x40;                    
   	XBR2 	= 0X01;	
					
   	P0SKIP = 0XC0; 
   	P1SKIP = 0XF0;
 

Attachments

  • Schematics.pdf
    137.1 KB · Views: 63
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top