Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. 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.

sissaki

New Member
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
 
I`m working on a sortof similiar problem using the I2C bus and not finding much help at all. Not sure why no responses to my post but WTH. In order to fix the p[roblem I`m rereading the I2CF spec, adjusted the clock freq to give a nice clean scope display of the clock and data lines and playing with the code till the traces match the published timing charts. If all else fails you might wanna give this approach a try.
zkt
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top