Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > T1OUT abnormal waveform.

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



T1OUT abnormal waveform.
Moderator:
RSKV

Post Reply
Follow this topic



T1OUT abnormal waveform.

franz1280 posted on 14 Dec 2011 7:43 PM PST
Member
3 Forum Posts

I'm using T1OUT alternate function of PORTE. Im trying to generate a waveform using the one CLKOUT of pulse of T2OUT within a time period.

The problem is that the waveform is halting for several microseconds. A group pulses appear at my oscilloscope with gaps of several microseconds where it should not stop all (continuous).

My  settings - CLKCOUT is 12 MHz, CLKOUT/12, TL1 = 5, TH1= TL1 and mode 2 Timer 1. 

Starts for 30 pulses and no pulses for several microseconds and another group of pulses each and so on.

Do I have any problem with my waveform or the FX2 cannot sustain continuous pulses for a long time period?




Re: T1OUT abnormal waveform.

Gayathri posted on 16 Dec 2011 05:27 AM PST
Cypress Employee
428 Forum Posts

 Hello,

 

I checked using the timer1 and configured that in mode2 as you had mentioned in your post. CLKCOUT is 12 MHz, CLKOUT/12, TL1 = 5, TH1= TL1 and mode 2 Timer 1

It is working fine. I was able to see aa continuous pulse train in T1OUT with a period of 250us.

I did not understand what you meant by: "Im trying to generate a waveform using the one CLKOUT of pulse of T2OUT within a time period." Was the T2OUT mentioned by mistake instead of T1OUT?

Regards,

Gayathri



Re: T1OUT abnormal waveform.

franz1280 posted on 19 Dec 2011 09:38 PM PST
Member
3 Forum Posts

im sorry. Actually im using both T1OUT and T2OUT. i think there is some interrupt i triggered that i didn't notice.

My code looks roughly like these:

TD_poll()

{

  if(!(EP2468STAT&bm4EMPTY))

{

.

.

.

else if(EP4FIFOBUF[n]==0x02)

{

TCON |= 0x50;

T2CON |= 0x04;

}

.

.

.

.

}

}

 



Re: T1OUT abnormal waveform.

Gayathri posted on 20 Dec 2011 03:55 AM PST
Cypress Employee
428 Forum Posts

 Hello,

 

Can you attach your entire project file, or atleast paste the codes relevant to the timers, so tha we can have a better understanding of what you are trying to do.

 

Regards,

Gayathri






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.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20