|
From: | asif siddiqui |
Subject: | Using TTC in ZCU102 |
Date: | Tue, 26 Apr 2022 20:24:59 +0530 |
#define TTC_BASE 0xFF110000U
#define TTC1_COUNTER_VALUE_OFFSET 0x00000018U
#define TTC1_COUNTER_CONTROL_OFFSET 0x0C
Before reading the TTC counter value i am resetting the register (TTC_BASE + TTC1_COUNTER_CONTROL_OFFSET ) by writing 0.
And then reading the register (TTC_BASE + TTC1_COUNTER_VALUE_OFFSET) for counter value. But the values when reading counter are not incrementing correctly and is random. Please find below the TTC counter values -
Could you please help me if the configuration of counter control is not correct ?
The counter values -
[Simulation] TTC0 Counter : 58783
[Simulation] TTC0 Counter : 62613
[Simulation] TTC0 Counter : 1072
[Simulation] TTC0 Counter : 58891
[Simulation] TTC0 Counter : 1689
[Simulation] TTC0 Counter : 63359
[Simulation] TTC0 Counter : 59341
[Simulation] TTC0 Counter : 58836
[Simulation] TTC0 Counter : 65018
[Simulation] TTC0 Counter : 2138
[Simulation] TTC0 Counter : 2853
[Simulation] TTC0 Counter : 64863
[Simulation] TTC0 Counter : 59633
[Simulation] TTC0 Counter : 62571
[Simulation] TTC0 Counter : 49843
[Simulation] TTC0 Counter : 46746
[Simulation] TTC0 Counter : 43372
[Simulation] TTC0 Counter : 46380
[Simulation] TTC0 Counter : 47573
[Simulation] TTC0 Counter : 49323
[Simulation] TTC0 Counter : 51549
[Simulation] TTC0 Counter : 53395
[Simulation] TTC0 Counter : 49658
[Simulation] TTC0 Counter : 50283
[Simulation] TTC0 Counter : 25091
[Simulation] TTC0 Counter : 31857
[Simulation] TTC0 Counter : 46708
Regards
Asif
[Prev in Thread] | Current Thread | [Next in Thread] |