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.

SPI Communication . . . . I NEED HELP

Status
Not open for further replies.

daggerdoi

Newbie level 5
Joined
Mar 27, 2008
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
i have a problem on how to make a mikroC code in communicating my PIC16f877 and SA9904b(an Energy Meter IC).

i wanna ask for help on how to access a 10-bit register address using SPI Communication. A mikroC code

im having a project and i have difficulties making a MikroC code for it. i badly need your help..

also, i attached my project information.

help me plsss..
thanks..
God bless
 

All SPI communication can be performed in multiplies of 8 bit. The SA9904 datasheet tells exactly how to: Send 16 bit address filled up with zero high bits. Basically you store your address value to a 16 bit unsigned and transmit first upper byte (addrval >>8) and then lower byte (char)addrval.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top