Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

3.6.5.5.5. Add the Interval Timer

Most control systems use a timer component to enable precise calculation of time. To provide a periodic system clock tick, the Nios® II HAL requires a timer. To add the timer, perform the following steps:

  1. On the IP Catalog tab, expand Processors and Peripherals, expand Peripherals, and then click Interval Timer.
  2. Click Add.
    The Interval Timer parameter editor appears.
  3. Click Finish return to the Platform Designer System Contents tab.
    The interval timer instance appears in the system contents table.
  4. In the Name column, right-click the interval timer and click Rename.
  5. Type sys_clk_timer and press Enter.
  6. Connect the clk port of the clk_0 clock source to the clk port of the interval timer.
  7. Connect the clk_reset port of the clk_0 clock source to the reset port of the interval timer.
  8. Connect the data_master port of the Nios® II processor to the s1 port of the interval timer.