Shop OBEX P1 Docs P2 Docs Learn Events
Debug Source Code Typo - P8X32A QuickStart board + FM Radio module — Parallax Forums

Debug Source Code Typo - P8X32A QuickStart board + FM Radio module

Mike GMike G Posts: 2,702
edited 2011-12-31 20:42 in Propeller 1
FYI, the DIYPortableRadioDebug.spin file downloaded from DIY Portable Radio Code (.zip) on the product page http://www.parallax.com/Store/Microcontrollers/PropellerDevelopmentBoards/tabid/514/CategoryID/73/List/0/SortField/0/Level/a/ProductID/773/Default.aspx has some typos.

In the CON Block SDA = 0 and SCL = 1, should be SDA = 8 and SCL = 9 if the user is following the quickstart guide.
In the OBJ bock, Parallax Serial Termial should be Parallax Serial Terminal.
CON
  _clkmode = xtal1 + pll16x
  _CLKFREQ = 80_000_000      

  'SDA = 0                                    ' SDA connected to P0
  'SCL = 1                                    ' SCL connected to P1

  SDA = 8                                    ' SDA connected to P8
  SCL = 9                                    ' SCL connected to P9
  
OBJ

  FM       :   "FM Radio Receiver"           ' FM Radio Receiver Module Object                      
  Buttons  :   "Touch Buttons"               ' Touch Button object
  'pst      :   "Parallax Serial Termial"
  pst      :   "Parallax Serial Terminal"  

VAR

  byte vol                                   ' Store volume level 


PUB Main

  pst.start(57600)

  FM.Initialize(SDA,SCL)                     ' Start FM Radio object
  FM.SeekThreshold(6)                        ' Set seek threshold
  FM.VolumeSet(1)                            ' Set volume level to 1 

Thanks for the awesome product and solid code base. I have plans for the FM Radio module. Hopefully, things will work out as I expect.

Comments

  • skylightskylight Posts: 1,915
    edited 2011-12-11 08:04
    Thanks Mike, I was having problems using the code and didn't spot why.
  • Mike GMike G Posts: 2,702
    edited 2011-12-11 08:11
    Glad the info helped. Now that I think about it, I probably should have posted this in the Suggestions to Parallax forum.
  • Francis BauerFrancis Bauer Posts: 372
    edited 2011-12-30 21:59
    Can someone point me to or post the complete source spin code file for the DIY Portable Radio? It appears that the product page on the Parallax site has been removed. So far I can only find the demo code for the FM module, which does work, but I want to find the version that has the touch button code included. Thanks...
  • zappmanzappman Posts: 418
    edited 2011-12-31 03:42
    Can someone point me to or post the complete source spin code file for the DIY Portable Radio? It appears that the product page on the Parallax site has been removed. So far I can only find the demo code for the FM module, which does work, but I want to find the version that has the touch button code included. Thanks...

    Here is a link to the PDF for the DIY Radio http://www.parallax.com/portals/0/downloads/docs/prod/prop/quickstart/910-40000-DIYPortableRadio.pdf
  • Mike GMike G Posts: 2,702
    edited 2011-12-31 06:56
    The source must have been on the special deal P8X32A QuickStart page with the FM Radio. Here's the source with the debug fix.
  • Francis BauerFrancis Bauer Posts: 372
    edited 2011-12-31 20:42
    Thank you, Mike G. for posting the code zip file, it is what I was looking for...
Sign In or Register to comment.