This widget could not be displayed.
Not applicable
Oct 21, 2015
02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 21, 2015
02:12 AM
Hi.
Is there a nice way to read Clock Counts on Tricore 1767?
I read about CCNT, but it looks like TC1767 doesn't use it.
How do i use the STM?
Or how do I set the Analog Input/Output to Output and do pin toggeling to measure with an oscilloscope?
Thanks
edit: I only got a Miniwiggler, so no big debugging possibility as with Lauterbach
Is there a nice way to read Clock Counts on Tricore 1767?
I read about CCNT, but it looks like TC1767 doesn't use it.
How do i use the STM?
Or how do I set the Analog Input/Output to Output and do pin toggeling to measure with an oscilloscope?
Thanks
edit: I only got a Miniwiggler, so no big debugging possibility as with Lauterbach
- Tags:
- IFX
2 Replies
This widget could not be displayed.
Not applicable
Oct 27, 2015
05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 27, 2015
05:18 AM
can no one help me with that? it's quite urgent :eek:
Nov 27, 2015
06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 27, 2015
06:46 AM
Hi rckr,
Probably you already found a solution, but maybe others can benefit from the following. You can consider making use of the system clock, as demonstrated by the example below:
#include
#include
#include "sieve.h"
int main(void)
{
unsigned long dt, t = clock_msec();
StartOS(ERATOSTHENES); /* sieve primes using TASKING RTOS */
dt = clock_msec() - t;
printf("ms = %lu\n",dt);
return 0;
}
The tools take care of everything. Only thing you need to do in addition is to enter the oscillator frequency in the startup configuration menu of Eclipse IDE and check the "initialise clocks per sec" checkbox. The library also contains prototypes clock_usec() and clock_usec_fast() depending on the accuracy you're after.
Best regards,
Henk-Piet Glas
Technical Product Specialist
Probably you already found a solution, but maybe others can benefit from the following. You can consider making use of the system clock, as demonstrated by the example below:
#include
#include
#include "sieve.h"
int main(void)
{
unsigned long dt, t = clock_msec();
StartOS(ERATOSTHENES); /* sieve primes using TASKING RTOS */
dt = clock_msec() - t;
printf("ms = %lu\n",dt);
return 0;
}
The tools take care of everything. Only thing you need to do in addition is to enter the oscillator frequency in the startup configuration menu of Eclipse IDE and check the "initialise clocks per sec" checkbox. The library also contains prototypes clock_usec() and clock_usec_fast() depending on the accuracy you're after.
Best regards,
Henk-Piet Glas
Technical Product Specialist
This widget could not be displayed.