Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : (DM/MM) I2C Radio
Author | Message | ||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
I am keen to try and one of these Ebay I2C Radio But here's the crunch this seller will not ship to New Zealand Anybody keen to order one and ship it my way ? Of course I will pay for the extra postage etc.... (PayPal) PM me if willing Maybe one of you clever people is also keen to have a I2C radio :) Regards John |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi John, If you are stuck I will do that .. but the seller advertises shipping to New Zealand in his list there... click on shipping (just to the right of the description TAB... ) It is just his pull down tab that doesnt let you select NZ... Have you emailed the seller as I am not sure of AUS freight costs but it is likely to be more than the item cost to ship it to NZ. Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Mick Yip i tried the email route no go I even hit the Buy Now but at the checkout it stops because of my address This what happens when I try make the purchase Regards John |
||||
pcaffalldavis Senior Member Joined: 17/10/2011 Location: United StatesPosts: 187 |
I'm willing too, but shipping to rural Alaska is likely to take longer than to OZ and over. Let me know if you want me to do this. Auction says they only have 3 left. Pete in Hyder We're all here 'cause we're not all there. |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Is there a data sheet for this FM radio? Micromites and Maximites! - Beginning Maximite |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Jman - Did you get my PM? Micromites and Maximites! - Beginning Maximite |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi No sorry my inbox was full All clear now please resend John |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Attached with a Basic Stamp sample 2012-01-19_053757_RDA5807SS.zip John |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
PM resent! Micromites and Maximites! - Beginning Maximite |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi I have recieved the I2C radio many thanks to Rob Now I just cant seem to wrap my head around on how to use the I2C with it. The I2c address is &H11 with the following Registers that contain 16 bits Register Bit Name Function Default 15 DHIZ Audio Output 0 = High Impedance; 1 = Normal Operation 0 14 DMUTE Mute Disable 0 = Mute; 1 = Normal Operation 0 13 MONO Mono Select 0 = Stereo; 1 = Force Mono 0 12 BASS Bass Boost 0 = Disabled; 1 = Bass boost enabled 0 11 RESERVED - - 10 CLK32_INPUT_ENB 0 = Enable; 1 = Disable (select 1 if crystal is shared) 0 8:7 RESERVED - - 6:4 CLK_MODE[2:0] 000 = 32.768 kHz (used for this module) 000 1 SOFT_RESET Soft reset; set to 1 to reset. 0 0x02 0 ENABLE Power Up Enable 0 = Disabled; 1 = Enabled 0 That is a write Register So the question is how do I write to this Register and set the appropiate bits A read register is as below the Register is 0X0A Register Bit Name Function Default 15 RESERVED - - 14 STC Seek/Tune Complete 0 = Not complete; 1 = Complete Flag is set when the seek or tune operation completes. 0 13 SF Seek Fail 0 = Seek successful; 1 = Seek failure Flag is set when the seek operation fails to fails to find a channel with an RSSI level greater than SEEKTH[5:0] 0 12:11 RESERVED - - 10 ST Stereo Indicator 0 = Mono; 1 = Stereo Stereo indication available on GPIO3. 1 0x0A 9:0 READCHAN[9:0] Read Channel BAND = 0 Frequency = Channel Spacing (kHz) x READCHAN[7:0] + 87 MHz BAND = 1 Frequency = Channel Spacing (kHz) x READCHAN[7:0] + 76.0 MHz READCHAN[7:0] is updated after a tune or seek operation. 0x00000000 The timming is as this pic So i have the following Dim RegsH(8) Dim RegsL(8) I2caddr = &h11 ' RDA5807 I2C address I2CEN 100,100 ' Enable I2C I2CSEND i2caddr, 1, 1, &H0A I2CRCV i2caddr, 1, 8, RegsH(0) ? "0=ok 1=nack 2=timeout"; MM.I2C I2CRCV i2caddr, 0, 8, RegsL(0) ? "0=ok 1=nack 2=timeout"; MM.I2C For I = 0 To 7 ? I; RegsH(I) Next I For I = 0 To 7 ? I; RegsL(I) Next I This produces the following I would have assumed the results would 0's as this is the default and RegsL(array) all 255 > run 0=ok 1=nack 2=timeout 0 0=ok 1=nack 2=timeout 0 0 5 1 63 2 0 3 16 4 88 5 3 6 88 7 4 0 255 1 255 2 255 3 255 4 255 5 255 6 255 7 255 I have atached the orginal PDf and a Parallax version 2012-03-01_165913_RDA5807SS_datasheet_v1.0.pdf 2012-03-01_165943_FM_Radio_Receiver_Module_Documentation.pdf Any assistance would be greatly appreciated Many Thanks John |
||||
djuqa Guru Joined: 23/11/2011 Location: AustraliaPosts: 447 |
The two code example from Parallax.com file links Basic Stamp Example Code Propellor Code Example VK4MU MicroController Units |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Thanks for the reply I have seen those but I am still none the wiser :( John |
||||
crackerjack Senior Member Joined: 11/07/2011 Location: AustraliaPosts: 164 |
Jman, just had a brief look so I may be way off the mark, but is there not a bit of confusion in your program between bits and bytes? You are reading into a buffer of 8 bytes and then iterating over those bytes in the debug loop. Should you not be reading two bytes High and Low and then dealing with the bits as per the register? |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
CrackerJack Thats the problem you are a winner Thanks John |
||||
Print this page |