Other Parts Discussed in Thread: MSP430F2274, SIMPLICITI, CC2500
The more I learn about microcontrollers, the more I realize I don't know what the hell I'm doing. So in addition to researching and confusing myself to death, I decided to ask for help here.
To begin with, I'm using the eZ430-RF2500 development tool. My goal is to use a Cirrus CS5460A energy meter chip to measure power usage and communicate that info to the MSP430F2274 on my target board via SPI. From there, I want the same functionality as the demo temperature sensor network that came with the device. In other words, I want the end device to transmit 3 bytes of power data wirelessly to the access point once per second. I will then capture the UART backchannel data with a datalogger.
Problems:
The CS5460A utilizes an SPI interface, however, so does the CC2500 on the ez430. It doesn't appear possible to use both USCI_A and USCI_B as SPI at the same time. Therefore, I will need to bit-bang an SPI interface using general IO pins. I have found canned examples of this online, but I am stumped as to incorporating them into the demo sensor network code. Why does SimpliciTI change port pin settings, according to the comments in the demo program? Can I use any available pins or not? Why is the UCA clock the UCB STE and vice versa? That just doesn't seem very smart, so maybe I am missing something.
I thought I had more questions, and I'll probably be back later with a few more. But in the meantime, if somebody can help me write a software SPI that will work with the demo program included with the ez430-rf2500, I will be eternally grateful. I'm just inexperienced when it comes to coding (especially of the embedded variety) I guess.
Thanks,
Josh