+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 4
    Points: 1,521, Level: 8

    Join Date
    Apr 2013
    Posts
    76
    Helped
    3 / 3
    Points
    1,521
    Level
    8

    Setting Counters and ISR Timer Interrupt in Arduino

    Good day to all!

    Being more familiar with PIC microcontrollers as what I have started with, now I am checking things up in Arduino I found out that even though Arduino is simpler, but it is also a poser to someone who has not used it.
    For example, In PIC, you set the FUSES and other things but I found out that they are somehow preset in Arduino.

    My question is:

    How can I apply these lines in Arduino?

    Code:
    {
        setup_counters(RTCC_INTERNAL, RTCC_DIV_4); 
        enable_interrupts(INT_RTCC); 
        enable_interrupts(global); 
    }
    I use this to set up counters in CCS C after calling:

    Code:
    #INT_RTCC
    void clock_isr()
    Thanks for your help in advance.

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 29,561, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,824
    Helped
    1114 / 1114
    Points
    29,561
    Level
    41
    Blog Entries
    9

    Re: Setting Counters and ISR Timer Interrupt in Arduino

    Since Arduino is a platform that must be compatible with several microcontroller architectures, the standard features are in fact tight facing to all ressources that each specific core have. If the feature you are looking for is not implemented in the installed IDE, look for the various libraries available in Github for example, or even at the option Sketch >> Include Library >> Manage Library>>...typing keywords to check what results most matches to your need.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



--[[ ]]--