Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Introduction

This page gives an overview of scutimer driver which is available as part of the Xilinx Vivado and SDK distribution.

Source path for the driver:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scutimer

Driver source code is organized into different folders. Below diagram shows the scutimer driver source organization

scutimer
|
-- Doc - Provides the API and data structure details
|
- Examples - Reference application to show how to use the driver APIs and calling sequence
|
- Source - Driver source files


Features Supported


Controller/Driver features supported


  • 32-bit counter
  • 8-bit prescaler
  • can be used in normal mode or auto reload mode
  • Support both increment and decrement counting
  • The Timer hardware supports interrupts


Known issues and Limitations

  • none

Test cases

Polled mode example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scutimer/examples/xscutimer_polled_example.c
This example configures the timer/counter in the polled mode such that count decrements gradually, It illustrates the decrements in the counter value.
Output
SCU Timer Polled Mode Example Test
Successfully ran SCU Timer Polled Mode Example Test

Interrupt mode example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scutimer/examples/xscutimer_intr_example.c
This example initializes the timer/counter, enables auto reload mode and uses the driver in the interrupt mode.
Output
SCU Timer Interrupt Example Test
Successfully ran SCU Timer Interrupt Example Test

Changelog

2020.2

  • Updated makefile for parallel make execution and incremental build support.

2020.1

  • None

2019.2

  • None

2017.3

  • None

  • No labels