juani_c 66 Posted July 22, 2012 Share Posted July 22, 2012 I've started to build a simple FM radio. It is based in a small module with a TEA5767. The code it's pretty basic for now, I'm just sending a fix frequency as part of the initial tests. #include #include "USI_I2CMaster.h" int StatusCallback(unsigned char c) { return TI_USI_EXIT_LPM; // Exit active for next transfer } void main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; BCSCTL1 = CALBC1_16MHZ; // Set range DCOCTL = CALDCO_16MHZ; // SMCLK = DCO = 1MHz /* Initialize USI module, clock ~ SMCLK/128 */ TI_USI_I2C_MasterInit(USIDIV_7+USISSEL_2+USICKPL, StatusCallback); unsigned char TxDataConfig[5] = {0x2E,0xBA,0x10,0x10,0xC0}; /*Write data, configuration register TI_USI_I2CWrite(SlaveAddress, Length, Multi, TxData) */ __disable_interrupt(); TI_USI_I2CWrite(0x60, 5, 0,TxDataConfig); __bis_SR_register(LPM0_bits + GIE); TI_USI_I2CStop(); } You'll find more information here. bluehash, RobG and Rickta59 3 Quote Link to post Share on other sites
bluehash 1,581 Posted July 24, 2012 Share Posted July 24, 2012 Good job Juani.. I like your documentation. Quote Link to post Share on other sites
kff2 22 Posted July 28, 2012 Share Posted July 28, 2012 Thanks for sharing this. A good place for buying TEA5767 is suntekstore.com -- about $10 for 10 pcs (after a $2 off coupon), or one for $2.16, with free shipping. Everything on ebay is more expensive. I ordered a couple to play with. Does anyone know of a similar chip that can also do AM? RobG 1 Quote Link to post Share on other sites
juani_c 66 Posted July 28, 2012 Author Share Posted July 28, 2012 I like your documentation. Thanks! the main reason for all that writing is just to have an excuse to write in English and practise my grammar/spelling/vocabulary etc. A good place for buying TEA5767 is suntekstore.com I haven't heard about that site, i will check it out. Is it reliable? Thanks. Quote Link to post Share on other sites
RobG 1,892 Posted July 28, 2012 Share Posted July 28, 2012 ...A good place for buying TEA5767 is suntekstore.com... Thanks for the link, didn't order FM module but I got few other things. Quote Link to post Share on other sites
kff2 22 Posted July 28, 2012 Share Posted July 28, 2012 I like your documentation. Thanks! the main reason for all that writing is just to have an excuse to write in English and practise my grammar/spelling/vocabulary etc. A good place for buying TEA5767 is suntekstore.com I haven't heard about that site, i will check it out. Is it reliable? Thanks. suntekstore.com is reliable and ships very quickly too -- about a week to the US. They also have good coupons most of the time. See http://www.retailmenot.com/view/suntekstore.com. Unfortunately, they recently introduced a $15 minimum for the 12% off coupon -- I used it for buying a bunch of small items in the past. Quote Link to post Share on other sites
kff2 22 Posted July 29, 2012 Share Posted July 29, 2012 Does anyone know of a similar chip that can also do AM? To answer my own question, there is SI4735, which can do FM/AM/SW/LW. http://www.silabs.com/products/audiovid ... 73435.aspx Digikey has them. I love their pricing structure 100 @ $16 1000 @ $2 They only have 400 in stock http://www.digikey.com/product-detail/e ... ow&cur=USD Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.