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.
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
Last edited by a moderator: