#26 Support for 10F22x

closed
Roy Rankin
None
5
2009-04-27
2009-04-06
Rhodri James
No

Hi!

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.

Discussion

  • 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

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

     
  • Roy Rankin
    Roy Rankin
    2009-04-17

    Rob,

    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.

     


Anonymous


Cancel   Add attachments