Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX3 Timer

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



FX3 Timer
Moderator:
RSKV

Post Reply
Follow this topic



FX3 Timer

gd_net posted on 28 Jul 2011 8:53 AM PST
Senior Member
17 Forum Posts

Hello,

I clock the FX3 with 19,2 MHz and using the slfifosync-example.

I integrated a Timer:

#define TIMER_TICKS     1

uint32_t nInitialTicks = TIMER_TICKS;
    uint32_t nRescheduleTicks = TIMER_TICKS;
    uint32_t nTimerOption = CYU3P_AUTO_ACTIVATE;
    status = CyU3PTimerCreate(&pTimer1,TimerFunc1,nExpirationInput,
        nInitialTicks,nRescheduleTicks,nTimerOption);

The expiration_function toggles a pin.

void TimerFunc1(uint32_t nParam)
{
   nTestPin =~ nTestPin;
   CyU3PGpioSetValue(GPIO_Tbl[nPinNum-1],nTestPin );
}

With TIMER_TICKS==1 (fasted value),  i get a toggle speed of 1msec on the pin.

How can i set this timer faster?

Best regards

g.

 

 




Re: FX3 Timer

aasi posted on 01 Aug 2011 05:29 AM PST
Cypress Employee
1073 Forum Posts

The timer you're trying to use is the OS timer. 1ms is the minimum you can achieve with it.

FX3 does have a PWM with which you can achieve higher frequencies. The support for this hasn't been provided in the SDK yet. We'll be adding this support in future release. Will update the forum once it is done.

Regards,

Anand






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.