#26 Support for 10F22x



Any chance of adding support for the 10F220 and 10F222? I had a peer at the source to see if I could figure out how to hack in the ADC myself, but (a) I'm not a C++ programmer, and (b) the class relationships of the multiple-use GP pins confused me greatly.


  • Robert Pearce

    Robert Pearce - 2009-04-17

    OK, I've had a bit of a look at this. The ADC is a little different from either of the existing ones, so I think I'll need to create a new class. It should be possible to get to a more structured set of ADC classes, but maybe "here" is not where you'd start from.

    Anyway, once that ADC is done I figure it should be fairly trivial to make the 10F220 from a 10F200

  • Nobody/Anonymous

    Thanks Rob. Similarly, the 10F222 is a 10F202 with an ADC bolted on, for reference.

  • Nobody/Anonymous

    Damn. "nobody" == Rhodri there, SourceForge won't log me on properly.

  • Roy Rankin

    Roy Rankin - 2009-04-17


    I have been working on this and have adapted the a2dconverter for the 10F22x which I have working.
    I still have to resolve effects of sleep on the ADC and the ADC IO pin control. I hope to be at a point to commit my code in the next couple of days.

  • Roy Rankin

    Roy Rankin - 2009-04-20

    I have committed code for 10f220 and 10f222 to the SVN.

  • Roy Rankin

    Roy Rankin - 2009-04-20
    • assigned_to: nobody --> roy_r_rankin
  • Rhodri James

    Rhodri James - 2009-04-23

    Thanks, Roy. Joy unalloyed is now mine.

  • Roy Rankin

    Roy Rankin - 2009-04-27

    10F220 and 10F222 support finished

  • Roy Rankin

    Roy Rankin - 2009-04-27
    • status: open --> closed


Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks