PSoC™ 4 Forum Discussions
Fyi I'm pretty new to these topics. Thanks in advance...
Hello,
We have questions about the UART max baud rate setting for PSoC4100S Plus.
I'm sorry, but I would like to write in Japanese from now on.
Q1: Technical Reference Manual (TRM)によるとUARTのボーレートは3Mbpsまでとあります。
データシートにはmax1Mbpsとあるのでこちらに従うことが正しいでしょうか。
Q2: ボーレートを1Mbpsに設定する方法は下記のどちらでも問題はないと考えていますが、
正しいでしょうか。
1.UARTのクロック設定を使用する場合
2.Clockコンポーネントを使用する場合
Q3: Q2で1Mbpsに設定する場合、IMO(±2%周波数偏差)でもECO(例えば8MHz ±100ppm周波数偏差)の
のどちらで十分な通信のボーレート周波数偏差が確保されますか。
(IMOの場合のボーレートは±2%の周波数偏差で、ECOの場合のボーレートは±100ppmの周波数偏差が
確保できると考えています。)
Best regards,
Yocchi
Show LessI'm able to program the board using PSoC creator and programmer. Meanwhile, if I use python given in example on psoc family 4, it gives me this random error "Program All using COM-object interface only
Failed! CMSIS-DAP/VENDOR command 0x84 returned Error or unknown status 0x82."
Anyone have any idea on how to solve it? Incase you need to look at the script, I'm attaching the file
Show LessI need to disable the bootloadable Component in PSOC Creator Debug mode.
In Release it should be enabled.
Is there a way to do this?
I tried by preprocessor / Built-in settings Disable but without success.
Show LessDear Sirs and Madams,
We have a question about HAL of I2 of PSoC4S MAX.
We are using PSoC4S MAX IMO at 48MHz.
Therefore, the I2S clock is set as follows in the source code.
/***********************************************************************/
rslt = cyhal_clock_reserve(&clock_hf, &CYHAL_CLOCK_HF);
rslt = cyhal_clock_allocate(&clock_pll, CYHAL_CLOCK_BLOCK_PLL);
rslt = cyhal_clock_set_frequency(&clock_pll, 48000000, NULL);
if (!cyhal_clock_is_enabled(&clock_pll))
{
rslt = cyhal_clock_set_enabled(&clock_pll, true, true);
}
// Change the source for the High Frequency clock to be the allocated PLL
rslt = cyhal_clock_set_source(&clock_hf, &clock_pll);
}
/***********************************************************************/
And the I2S hardware is set as follows :
/***********************************************************************/
cyhal_i2s_pins_t tx_pins = { .sck = P3_5, .ws = P3_7, .data = P3_6, .mclk = NC };
cyhal_i2s_config_t config =
{
.is_tx_slave = false,
.is_rx_slave = false,
.mclk_hz = 0,
.channel_length = 16,
.word_length = 16,
.sample_rate_hz = 18750
};
/***********************************************************************/
With the above settings, communication with a sample rate of 18.75 kHz is possible.
So I have a question.
The I2S HAL documentation states:
Calculating according to this formula,
sclk = 18.75kHz x 16 x 2 = 600kHz
(1) Sclk here is synonymous with mclk, right?
(2) Is this 600kHz automatically divided from 48MHz HAL internally?
48MHz / ( 600kHz x 8( Fixed 8x divider on sclk input of MXAUDIOSS IP ) ) = divide by 10
(3) For example, to change this 18.75kHz to 46.875kHz,
Is it ok to just change ".sample_rate_hz=1875" to ".sample_rate_hz=46875"?
46875 x 16 x 2 = 1.5MHz
48MHz / ( 1.5MHz / 8( Fixed 8x divider on sclk input of MXAUDIOSS IP )) = divide by 4
Because 46.875kHz is a frequency that can be generated by dividing down from 48MHz.
Regards,
Show LessWhen I try to export a PSoC creator bootloader project to keil MDK, it comes with the warning which says "TOOLS.INI Section'[C51]': missing 'PATH' entry!". However, it's an ARM project, with no relationship to C51. So what should I do to avoid this problem?
I have already installed the legacy pack for Cortex-M and all steps during exporting were followed by the instructions provided by the Help.
Best regards
Show Less
When I2C slave read and write buffers operation ,the index is incremented。 I can't find a function to reset the array index in the CAT2 Peripheral Driver Library of MTB.
Show LessIn PSoC Creator, I can use the function CapSense_ GetCentroidPos get the slider position. but, in modustoolbox, I found no function that can get the slider position in the Capense Middleware Library. Excuse me, which function can be used to get the slider position!
Show Less
I am learning CAPSENSE slide on the CY8CKIT-149. the routine and my owm project work normally in PSoC Creator IDE. In modustoolbox2.4 IDE, The CAPSENSE_CSD_Slider_Tuning routine work normally。 I created a project according to this routine. In the Capsense tuner, I checked, but there was no response. After debugging, I found that the function Cy_ CapSense_ Enable return value is CY_CAPSENSE_STATUS_INVALID_STATE. Why CAPSENSE fails to enable?
I am attaching project .Thank..
Regards,
Show Less