Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Generating 2.048MHz square signal with a good accuracy using psoc3

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



Generating 2.048MHz square signal with a good accuracy using psoc3
Moderator:
RKRM

Post Reply
Follow this topic



Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 03 Oct 2012 11:59 PM PST
Top Contributor
58 Forum Posts

 hi...

      Can any one please suggest the best possible way of generating a 2.048MHz square signal with 50% duty cycle with a better accuracy, using PSOC3.........do i need to use any external hardware for getting good accuracy ?




Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 03 Oct 2012 12:43 AM PST
Top Contributor
679 Forum Posts

How accuray you want it to be?

I think the psoc3 IMO is +-1%. You need to use ceramic resonator or external crystal. And crystal would be better than ceramic resonator.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 03 Oct 2012 01:20 AM PST
Top Contributor
58 Forum Posts

 may i use XRT8000 device to generate an accurate 2.048 MHz signal



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

hli posted on 03 Oct 2012 01:31 AM PST
Top Contributor
675 Forum Posts

The XRT8000is a PLL, so it needs a stable source frequency. So you might be better of by generating this from the PSoC directly. Use a crystal as frequency source. Configure the PLL to the highest possible speed.Then, use a NCO (see http://www.cypress.com/?rID=39408&cache=0 for the component) and configure it to generate the frequency you need.

How exact and stable must the frequency be? 2.048MHz is somewhat unusual.

Another way might be to get a crystal which is a multiple of 2.048MHz, and use it as clock source in the PSoC. That way, you can spare the NCO, und use a simple divider to generate your output.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

danaaknight posted on 03 Oct 2012 04:14 AM PST
Top Contributor
1773 Forum Posts

2.048 Mhz commonly used on GPS, with 10-12 accuracy requirements. You cannot

achieve this with a simple xtal placed on PSOC.

 

Note the IMO is totally inadequate for these types of accuracy.

 

Regards, Dana.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 03 Oct 2012 04:47 AM PST
Top Contributor
58 Forum Posts

 hi danaa

                i found that XRT8000 is a dual PLL chip that generate 1.544MHz (E1) or 2.048MHz (T1) if we configure it in Reverse slave mode with an input frequency of 8KHz.....

               so anyway,  we can generate 8 KHz signal accurately.........then ,why cant we use this chip to generate my 2.048MHz signal....... 

              does it have any problem in interfacing it with SPI of Psoc3 ?

here iam attaching the datasheet of XRT8000....you can go through it...... thank u.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 03 Oct 2012 04:48 AM PST
Top Contributor
58 Forum Posts

 hi danaa

                i found that XRT8000 is a dual PLL chip that generate 1.544MHz (E1) or 2.048MHz (T1) if we configure it in Reverse slave mode with an input frequency of 8KHz.....

               so anyway,  we can generate 8 KHz signal accurately.........then ,why cant we use this chip to generate my 2.048MHz signal....... 

              does it have any problem in interfacing it with SPI of Psoc3 ?

here iam attaching the datasheet of XRT8000....you can go through it...... thank u.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 03 Oct 2012 05:10 AM PST
Top Contributor
58 Forum Posts

 hi hli....

           other than 32.768MHz...i dont think the multiples of 2.048MHz crystals available in the market.......but ECO of PSOc3 will accept a maximum of 25 MHz.......so, unless the crystals less than or equal to 16.384Mz  available in the market, i cant proceed in this approach.....

     May i know, does any one from 4.096MHz, 8.192MHz, 16.384MHz crystals available in the market......

 



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 03 Oct 2012 05:54 AM PST
Top Contributor
679 Forum Posts

 If the accuracy of your 8khz signal is good enough, then the output from the XRT8000 should be Ok, but remember than there are phase noise/jitter after the PLL.

The SPI clock doesn't need to be very accurate, so there should not be problem between the Psoc3 communicating with the XRT8000.

 



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

danaaknight posted on 03 Oct 2012 06:41 AM PST
Top Contributor
1773 Forum Posts

The 8000 does not specifically state serial interface is any industry

standard, but looks like should work with SPI. You will have to

evaluate timing and API applicability.

 

Should there be some issue using SPI, simple bit banged GPIO pin

routine would suffice, given you are only sending simple commands

over the interface.

 

Regards, Dana.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 03 Oct 2012 07:02 AM PST
Top Contributor
679 Forum Posts

You can check the page 14-16 of the XRt800 specification and compare it with that on the SPI data sheet of PSOC to get the correct mode.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 04 Oct 2012 06:07 AM PST
Top Contributor
679 Forum Posts

 I think it should be mode 0, LSB first 8 bit.

But becarefull with the 1st byte as you need to send the R/W as bit0 and a0-a6 as bit1 to bit7.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

sivananda posted on 04 Oct 2012 09:34 PM PST
Top Contributor
58 Forum Posts

 hi...

            i found 4.096MHz crystal available in market............i am looking to use it as XTAL, and with the help of frequency divider i hope i can generate 2.048MHz signal................

                                                                   what do you say guys?



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 04 Oct 2012 09:47 PM PST
Top Contributor
679 Forum Posts

That should be OK.



Re: Generating 2.048MHz square signal with a good accuracy using psoc3

H L posted on 05 Oct 2012 10:37 PM PST
Top Contributor
679 Forum Posts

You don't need external divider, you can use the Filip Flop inside the PSoC3.






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