The Variable LT FIFO RF sample code on TI for CC430F5137 works but it is difficult to be reused in another project because it is tightly coupled to the application code and causes some problem on the interrupt routine if the one who is reusing it is not careful enough.
I revised the code so that it can be reused and reduced most of the processing in the interrupt routine. Although not yet finish and still in progress, it is in usable state as of this writing.
Get it here.
This is my hobby and passion. :)
Showing posts with label CC1101. Show all posts
Showing posts with label CC1101. Show all posts
Thursday, December 5, 2013
Friday, September 6, 2013
Information Sharing: Starting Firmware Development using TI's SmartRF Studio (CC1101 and CC430)
SmartRF studio is a very great tool. Although it have some minor quirks, it greatly helps in generating RF configurations for chip. My current project uses CC430 chip as the transmitter and a CC1101 based chip interfaced to K60 Arm Cortex M4 as a receiver.
If you have evaluation boards, the fastest way to test it is by choosing the right SmartRF configuration (Under typical settings) and using the "Packet TX" for the transmitter and "Packet RX" for the receiver. You should be able to see the packets sent by the transmitters.
I was also able to successfully connect Evaluation modules via SmartRF04EB, and my external MCU is controlling the EVM modules. This is very useful in prototyping stage and performance feasibility study. However, I will not be discussing it here and just focus on testing of the custom boards instead.
If you will be using your own board with CC1101, make sure you always read and check the chip ID on initialization. This will give you a high chance (but not 100%) that the CC1101 is working and soldered properly. This self-check is ideal specially if the board is mass produced.
Next, if you want to start testing the Smart RF configuration with the firmware and hardware, I think that the best and fastest way to test both the firmware and hardware is by using using Continuous TX mode on transmitter and Continuous RX mode on receiver:
On Transmitter:
1. Export configurations from SmartRF Studio using Continuous TX (Unmodulated Signal) with the lowest power. For this example, we will be using -30dbm. (For CC430 chip, SmartRF studio doesn't have a drop down choice for the -30dbm, consult the Design Note DN013 Programming Output Power document from TI website).
2. Strobe SRES (Reset the chip)
3. Execute the settings (with the PATABLE).
4. Strobe TX.
5. Let the transmitter stay in TX mode ( while (1); ).
On Receiver:
1. Export configurations from SmartRF Studio using Continuous RX. (the receiver and transmitter must both have the same selected typical settings).
2. Strobe SRES (Reset the chip)
3. Execute the settings.
4. Strobe RX.
5. With the ambient level, read the RSSI register,then compute and check for the corresponding level in dbm.
6. With the conducted transmitter at -30dbm, read the RSSI register,then compute and check for the corresponding level in dbm. The reading should be near -30dbm)
With this, you may have an idea if the SPI connection and/or RF circuitry (balun,matching and filter circuit) is in an acceptable condition.
If you have evaluation boards, the fastest way to test it is by choosing the right SmartRF configuration (Under typical settings) and using the "Packet TX" for the transmitter and "Packet RX" for the receiver. You should be able to see the packets sent by the transmitters.
I was also able to successfully connect Evaluation modules via SmartRF04EB, and my external MCU is controlling the EVM modules. This is very useful in prototyping stage and performance feasibility study. However, I will not be discussing it here and just focus on testing of the custom boards instead.
If you will be using your own board with CC1101, make sure you always read and check the chip ID on initialization. This will give you a high chance (but not 100%) that the CC1101 is working and soldered properly. This self-check is ideal specially if the board is mass produced.
Next, if you want to start testing the Smart RF configuration with the firmware and hardware, I think that the best and fastest way to test both the firmware and hardware is by using using Continuous TX mode on transmitter and Continuous RX mode on receiver:
On Transmitter:
1. Export configurations from SmartRF Studio using Continuous TX (Unmodulated Signal) with the lowest power. For this example, we will be using -30dbm. (For CC430 chip, SmartRF studio doesn't have a drop down choice for the -30dbm, consult the Design Note DN013 Programming Output Power document from TI website).
2. Strobe SRES (Reset the chip)
3. Execute the settings (with the PATABLE).
4. Strobe TX.
5. Let the transmitter stay in TX mode ( while (1); ).
On Receiver:
1. Export configurations from SmartRF Studio using Continuous RX. (the receiver and transmitter must both have the same selected typical settings).
2. Strobe SRES (Reset the chip)
3. Execute the settings.
4. Strobe RX.
5. With the ambient level, read the RSSI register,then compute and check for the corresponding level in dbm.
6. With the conducted transmitter at -30dbm, read the RSSI register,then compute and check for the corresponding level in dbm. The reading should be near -30dbm)
With this, you may have an idea if the SPI connection and/or RF circuitry (balun,matching and filter circuit) is in an acceptable condition.
Subscribe to:
Posts (Atom)