AN 717: Nios II Gen2 Hardware Development Tutorial

ID 683615
Date 9/22/2014
Public
Document Table of Contents

1.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 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 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 processor to the s1 port of the interval timer.