Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: FreqMeasure with 1284P

  1. #1

    FreqMeasure with 1284P

    I would like to use the FreqMeasure library with the 1284P but the library has not defined that microcontroller.

    Can someone help me modify so I can use that library with the 1284P?

    The ATMEGA1284P is mounted on the Bobuino board.

    Thanks

    Bruce

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Edit util/FreqMeasureCapture.h. Maybe copy one of the other board defs as a starting point?

    If you actually get it working, maybe share the solution here, or send a pull request on github.

  3. #3
    Which input capture is used?:
    #define CAPTURE_USE_TIMER1
    #define CAPTURE_USE_TIMER2
    #define CAPTURE_USE_TIMER3

    1284P has 3 timers.

    Thank

    Bruce

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    You're going to have to research the timers, perhaps comparing to the ones on the supported boards, and figure out which pin. You have to do that part....

  5. #5
    Can I get a hint?

    I see ICP1 and ICP3 but ICP3 is also shared with the SPI buss so I want to specify the library to use ICP1.

    Is this possible?

    Thanks

    Bruce

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •