PSoC™ 5, 3 & 1 Forum Discussions
To all,
This may be an obvious question. I'm a bit new in USB CDC programming. However my study and empirical experiments have not make it obvious.
I want to use a callback ISR for reading incoming data using the USBUART. I can get USBUART_SOF_ISR_ExitCallback() to do what I want. It works however ...
It polls at a 1ms rate. Is there another ISR that can be enabled to process input data from the host at a much lower polling rate?
In my current USBUART configuration the following ISRs are active:
- USBUART_SOF_ISR_ACTIVE
- USBUART_BUS_RESET_ISR_ACTIVE
- USBUART_EP0_ISR_ACTIVE
- USBUART_ARB_ISR_ACTIVE
- USBUART_DP_ISR_ACTIVE
- USBUART_EP1_ISR_ACTIVE
- USBUART_EP2_ISR_ACTIVE
- USBUART_EP3_ISR_ACTIVE
Eventually I plan to convert my IN and OUT operations for the USBUART to DMA. This should solve my issue as well. Until then, if I can implement my data input reads with a less intense ISR, it would be appreciated.
Len
Show LessHi,
We use PSoC5LP to configure the capacitive button.
Although PSoC4 has an API for acquiring sensor capacitance parameters("uint32 CapSense_GetExtCapCapacitance (uint32 extCapId)"),
It was not defined in the CSD data sheet for PSoC5LP.
Is there an API to get sensor capacitance with PSoC5LP?
Please tell us how to measure sensor capacitance with PSoC5LP.
Regards,
Show LessHello, I'm working on an small I2C program that will interface with a temperature sensor. The sensor has 8 registers that I need to read. Here is what I have so far:
TempI2C_Start(); // start the I2C Master Module
TempI2C_MasterClearStatus();
MStatus = TempI2C_MasterSendStart(TEMP_I2C_SLAVE_ADDR, TempI2C_READ_XFER_MODE);
if(TempI2C_MSTR_NO_ERROR == MStatus) // check for error
{
TempI2C_MasterWriteByte(MANUF_ID); // address: manufacturers ID from device
TempI2C_MasterSendRestart(TEMP_I2C_SLAVE_ADDR, TempI2C_READ_XFER_MODE);
TempRd_Buffer[0] = TempI2C_MasterReadByte(TempI2C_ACK_DATA); // read manufacturers ID from device
TempI2C_MasterSendStop();
}
The problem I have is after function:
MStatus = TempI2C_MasterSendStart(TEMP_I2C_SLAVE_ADDR, TempI2C_READ_XFER_MODE);
MStatus is 3 which means the last byte was NAK.
Since MStatus is a 3 the rest of the code doesn't execute. I don't understand why and hope someone can give me some help. I've uploaded my project. The function is located in the TempSensor.cpp file.
Thank you very much,
Joe
Show LessHi,
We are considering products using CapSense of PSoC5LP.
Therefore, We created 20 prototype boards..
In order to tuning, RAW count initial value (not touched) was confirmed for all substrates.
It was found that the raw count values differ if the substrates are different even with the same sensor.
For example, 13bit resolution,
Board #1, Sensor 1 : 7500 RAW count,
Board #2, Sensor 1 : 7300 RAW count (Min value),
Board #3, Sensor 1 : 7400 RAW count,
Board #4, Sensor 1 : 7700 RAW count (Max value),
and so on.
Do you know the factors that cause the initial value of RAW count to differ depending on the board?
(a) Cmod capacitor accuracy
(b) Variation of sensor capacity per board
(c) PSoC CapSense component Accuracy
I think the above factors can be considered.
Which one is particularly influential?
In this case, which RAW count should be used for tuning?
Which max value of RAW count or min value of Raw cont or average of all?
Regards,
Show Lesshave a CY8CKIT-059. I am unable to get the USBUART working. The device registers and works fine via programming port but not regular usb port. I have tried USBFS_UART example code and also other examples (for example the one on youtube). These projects build, compile and program the device fine. But once plugged in windows 10 does not show a new COM port or device. Nothing shows up in device manager and there is no sign of windows recognizing the device when plugged in via non-programming usb port. I have tried all the suggestions in the thread on CY8CKIT-50 however windows 10 still does not seem to register the device. Is there something specific with this kit that I am missing?
Show LessHi,
I have CY3295-MTK Manufacturing kit. It has CY8C3866AXI-040 mcu. Somehow I have burned the mcu while working on testing a touch device. I can find the CY8C3866AXI-040 mcu on market but I need it's firmware to work properly.
Can anyone share fw for me?
Hi,
We would like to confirm for mode of contorl registor.
Because the detailed timing is not described in the data sheet.
We understand that direct mode is output at the edge of the master clock when it is set asynchronously from the CPU.
We understand that Sync mode is output on the rising edge of the clock.
The master clock and clock are asynchronous.
Is the recognition so far correct?
Use Sync mode,
What happens if the clock input to Sync mode is synchronized to the master clock?
(a) Output in synchronization with the master clock and the clock.(Blue line)
(b) The master clock and clock can not be synchronized, so It is output at the clock after the master clock.(Red line)
(c) (a) or (b) operation, Is it prohibited to synchronize the master clock and the clock because it is metastable?
Regards,
Show Less
CY8C5888-lp096 device is not prgramming with jtag
Hello,
Anyone have experience with PSoC 5LP and SIM808?
How can I get work GPS and GSM throw one UART instead using two UART's?
I have a PSoC5LP design using two UART's with SIM800L and GPS, but now I have to use SIM808 that includes GSM + GPS in the same module with one Tx and Rx for both process .
Thanks a lot!
Francisco.
Show LessHello,
When using PSoC3 with external XTAL oscillation (MHzECO), is there any specification for a wait period until oscillation stabilization?
If there is a spec of wait period, if XTAL does not oscillate normally within that time, what happens to the operation of PSoC?
Does PSoC not work because no clock signal is provided?
Is there any way for users to know why PSoC does not boot?
Best Regards,
Naoaki Morimoto
Show Less