cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

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
Reply
1 Solution
Esteemed Contributor II

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
Reply
4 Replies
Esteemed Contributor II

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
Reply
Anonymous
Not applicable

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

0 Likes
Reply
Honored Contributor II

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