element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#021 – Fractional Frequency Synthesizer
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 16 replies
  • Subscribers 28 subscribers
  • Views 1893 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#021 – Fractional Frequency Synthesizer

cy.wbz
cy.wbz over 12 years ago

Hello!


Todays example uses the PSoC 4 device to generate frequencies in the range of 0 - 450kHz with a minimum achievable step size of 0.06Hz. The tolerance on the generated frequency is +/- 1% over a very broad range of frequencies (50Hz to 450kHz). The example then uses the UART bridge to present users a menu in Hyperterminal to select the frequency.

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
    • Project Schematic
    • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • UART
  • Counter
  • Status_Register
  • Terminal one and zero
  • CyClock
  • CyPin

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

The firmware for this project focuses around presenting a user with a Hyperterminal menu with input and output selections. The user can then enter in their desired frequency to the menu selection and then see that output from the PSoC 4 pins.

 

This project interfaces via Hyperterminal using the 9600 baud rate setting. Make sure you have the echo settings enabled on the hyperterminal panel. You will be able to enter in six digits (which should be echoed). Once you have entered in the values then press the SW2 button on the Pioneer kit to enable the frequency.

image

 

Hardware Connections:

 

There are no shield connections for this example. Users must connect the UART and frequency generation connections for the example to work correctly. Please see the attached image below.

image

 

Test Your Project:

 

Once the kit is programmed connect to the Pioneer kit and launch Hyperterminal. Enter in your frequency, press the SW2 button, and then see the output. This can be verified by using an Oscilloscope or hardware that can read in frequency. See the image below for the 100Hz example.

image

I hope this example can help you out in your design.

 

Best,

Matt

Attachments:
new_skip_counter.Bundle01.zip
3175.Project Images.zip
  • Sign in to reply
  • Cancel

Top Replies

  • DAB
    DAB over 12 years ago in reply to cy.wbz +1
    Hi Matt, Thanks. I just thought it would help people realize the duality of most of these projects. Most people underestimate the needs of testing, but with a little work, you can build up an impressive…
  • DAB
    DAB over 12 years ago

    Hi Matt,

     

    Are you going to do a project where you turn the Psoc into a Frequency counter? image

     

    Another neat project, keep up the good work.

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.wbz
    cy.wbz over 12 years ago in reply to DAB

    DAB,

     

    I'll ask the Engineer to see if he can create a reverse variant on this.

     

    In a related note we are looking to expand the functionality of the PSoC 5LP through the onboard 12 pin header. The update would have a 2 channel oscope, voltmeter, waveform generator, logic and protocol analyzer in addition to the Bridging (UART and I2C) and programming/debugging functionality. We'll let you now more as we get updates.

     

    Thanks,

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DAB
    DAB over 12 years ago in reply to cy.wbz

    Hi Matt,

     

    Thanks.

    I just thought it would help people realize the duality of most of these projects.

    Most people underestimate the needs of testing, but with a little work, you can build up an impressive system test support with just a little work.

     

    I really like these posts.  Hopefully it will get people inspired to build the projects.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz

    Thanks Matt for this project.

    I tested this, but i see  much noise signal.

     

    best regards,

     

    jeuss antonio

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.wbz
    cy.wbz over 12 years ago in reply to jesusantoniocar

    Jesus,

     

    Thanks for the comment. I'm checking with the engineer and will post a reply when I hear from him.

     

    Thanks,

    Matthew Buza

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to jesusantoniocar

    Hi jesus,

     

    I am afraid if you are seeing the correct output. This shall be because of the hyperterminal configuration. Please check the hyper terminal configurations.

    Incase you find the hyperterminal settings annoying.Comment out the entire for loop and then put the below function before the for loop,

     

     

    PCounter_1_WriteCountStep(Count);

     

    Compute the count manually through the formula Count = (desired freq/0.06). Round it off to the nearest integer and put it in there.

     

    I think ,this might clear the UART and hyperterminal related problems.

     

    You should actually see a stream of pulses with duty cycle less than 25%.

     

    Thanks,

    -Ramnath

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to Former Member

    Hello Ramnath.

    Thanks for your reply. Right now i am outside from my house, i will doig the change in the project and make an update when arrive the next week.

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to jesusantoniocar

    Hello  Ramnath, Matt.

    Thanks for this project, right now i can see the signal, very good project, i made a error when select the frecuency, but i correct this , it is the video.

     

    best regards,

     

    Jesus Antonio

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to jesusantoniocar

    Hello.image

    i would  like to post the form how can i select the frecuency for this project via hyperterminal.

     

    1.open hyperterminal

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to jesusantoniocar

    2. configurate hyperterminal settings.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube