Shop OBEX P1 Docs P2 Docs Learn Events
Function for Propeller that duplicates SX "ANALOGIN"? — Parallax Forums

Function for Propeller that duplicates SX "ANALOGIN"?

eagletalontimeagletalontim Posts: 1,399
edited 2009-11-21 17:33 in Propeller 1
Is there a propeller function that duplicates the ANALOGIN command with the SX chip? I have already designed my entire program in SX and it works correctly, but since the SX will soon be history, I need to convert everything over. Thanks!

Comments

  • KyeKye Posts: 2,200
    edited 2009-11-21 16:38
    No, there is not. You'll need to download the propeller chip Apnote 001 counter thingy from the download page and se the ADC code there.

    There may also be some code in the obex for doing analog in stuff, or in the propeller library in the IDE.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • eagletalontimeagletalontim Posts: 1,399
    edited 2009-11-21 17:33
    Since there is no function to duplicate that, I need some help with the RCTIME function in the BS2_Functions.spin that I downloaded from here. What I am trying to accomplish is to successfully read a vehicle's Throttle Position Sensor. The output voltage at full throttle is 5v. I have no idea how to wire up the propeller chip to accept this kind of voltage and read it based on a 0% to 100% scale. Since most of the help sections don't have examples of wire connections and resistors to use, I have no idea where to start. Any help is greatly appreciated!
Sign In or Register to comment.