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 and microcontrollers <please heeeelp>

Status
Not open for further replies.

mitsaklis

Newbie level 4
Joined
Nov 14, 2005
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,328
Hi.

I am working on a project which has a pic18f452 and a pic18f252 connected through SPI. The pic18f252 is connected to a transceiver (cc1020). Dont ask me why the pic18f252 is used, but the point is that is used in order to configure the cc1020. I want to transmit data (whatever) at different frequencies and powers. This is done by configuring correctly the cc1020. All these should be done by the two microcontrollers.

Considering that I know how to configure the cc1020 (through its registers). I would like someone to help me write the software in C, or just give some code examples on how to:

-configure the whole thing
-pass the register values to the cc1020
-start and and stop the transmission
-create a loop (or something) in order to automatically transmit at different frequencies and powers
(example:
f=433MHz, Output power=10dBm
transmit and when done with this
transmit at f=433MHz, Output power=0dBm
and go on......)

At the receiver part, I want to receive the data and and somehow store the power level received

I use C and MPLAB

I would appreciate very much any kind of help.

Thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top