-
1. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
BoTa_264741 Mar 31, 2019 5:59 PM (in response to yuchc_2322796)yuhua,
The DDS24 component was implemented entirely in PLD. It consumes about 75% of the UDB resouces on P4200 when only single output is enabled (no phase output). Unfortunately, the 6 remaining macrocells are not enough to implement quadratures.
The solution is not to use DDS24 component, but to use similar (but simpler) component DDS32. It has less features (no phase output), but it implemened entirely in UDB datapath, and in result, leaves plenty of macrocells avaialble for quadrature pair output generation. The project and DDS32 component are attached. I also noticed that on P4200 component has some issues: it runs OK in 24-bit mode, but not in 8-, 16- or 32-bit (no issues on PSoC5). Hope that 24-bit resolution is enough for your application. The DDS32 component datasheet is not available at this moment, so for general description please refer to DDS24 datasheet.
-
2. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
BoTa_264741 Apr 28, 2017 7:23 PM (in response to yuchc_2322796)yihua,
regarding you other question " I wish to use a 3.0 MHz clock source for DDS24, and it divided from external crystal 24.0 MHz on PSoC 4 BLE pioneer kit, Have I any chance to implement?".
-I can't draft an example for you, as I have no XTAL on my P4200 board (it is not BLE-enabled). Your question is not DDS32-related, but rather Pioneer-BLE kit related. I suggest to post separate question in PSoC4 BLE forum (e.g. "How to derive a 3MHz clock from XTAL on Pioneer BLE board?".
-
3. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
yuchc_2322796 May 8, 2017 3:57 AM (in response to yuchc_2322796)Hi, Odissey,
Thank for your help! It is workable. I notice this implement with some different with DDS24 project, it added a new "reset" pin, I guessed " it will be reset accumulator to 0 if we need to change a new frequency.", DDS24 project was not support this function, thus, it will generate waveform follow the last timing, it will not restart a new one. Is my guess correct ?
How can I control the "Reset" by software control ?
Thanks a lot. -
4. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
epr_1639216 May 8, 2017 7:51 AM (in response to yuchc_2322796)When you are referring to controlling the "Reset" by software control, I assume you mean:
Setting the Pin high/low with software. Simply set the pin high or low using the cypress API functions for Pin control.
-
5. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
yuchc_2322796 May 9, 2017 12:26 AM (in response to epr_1639216)Pratt,
You mean to use pin high or low ( \Cypress\Logic\Logic High '1' or Logic Low '0' ), it is permanent setting. I have tried to set logic 1 / 0 that its behavior looks like to Disable / Enable the component in this example, I can not watch the behavior of "reset" is meet my requirement or not. Because it can not be controlled dynamically.
Thanks.
-
6. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
yuchc_2322796 May 9, 2017 6:11 PM (in response to BoTa_264741)Odissey,
Sorry, bother you to reply this question. I got the solution for Clock already. Thanks.
-
7. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
BoTa_264741 May 10, 2017 9:07 AM (in response to yuchc_2322796)yuhua,
sorry for late reply, I don't get notifications on this thread. Bringing "reset" pin HIGH will reset DDS32 accumulator to 0. To do this using SW call, attach a ControlReg of width 1, set it to PULSE mode, attach a BUS_CLK to it for sincronization and call API command to make a single cycle pulse:
ControlReg_1_Write(1);
-
8. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
yuchc_2322796 May 10, 2017 9:07 AM (in response to BoTa_264741)Odissey,
Thanks for your reply, Please attach example files, I think that it is difficult to me for understanding and implement function. Or, please point it where can I find it.
ControlReg_1_Write(1); // --- It is not a general function.
-
9. Re: How can I handle a PSoC 5 community library DDS24 on PSoC 4 BLE device ?
BoTa_264741 May 11, 2017 7:11 PM (in response to yuchc_2322796)I attached project in the above post. Typically reset is not required. For example, changing frequency occures as soon as new value is set by SetFrequency(), reset is not required.