Need a programmable frequency generator

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I need a programmable frequency generator to generate frequency from 20 KHz to 50 KHz. I can use FreqDivider component, if its Divider parameter is programmable. But I understand, it is not accessible from code. Please help.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may use a PWM or TCPWM component. You are free to program period and duty cycle of the outcoming signal.

Bob

View solution in original post

0 Likes
4 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may use a PWM or TCPWM component. You are free to program period and duty cycle of the outcoming signal.

Bob

0 Likes
Anonymous
Not applicable

Thanks a lot. I have used PWM component. I'll try DDS32 later for finer control.

0 Likes
lock attach
Attachments are accessible only for community members.
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

t.saha,

you can use DDS32 frequency generator with P4 to obtain output with 32-bit accuracy. Old thread on that is here

Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ? 

The the DDS32 component has no datasheet available, you can refer to the somewhat similar DDS24 component:

DDS24: 24-bit DDS arbitrary frequency generator component

Attached below is a basic DDS32 demo and DDS32 libtary (to install: Project->Dependency->Add library...)

/odissey1

DDS32_P4_basic.png