PSoC™ 5, 3 & 1 Forum Discussions
Hi
I am testing the HID MOUSE example from PSOC and i follow the instructions:
But when I connect the kit to a computer via a USB cable plugged into the USB micro connector nothing happens. I think my computer is not detecting the USB micro connector.
Please it is very important!!
Thank you
Show LessSection 4.10 of AN72382, Using PSoC® 3 and PSoC 5LP GPIO Pins" discusses how to use an external signal to gate the analog output on a GPIO pin.
I am trying to implement this following the same exact instructions (except that the gating signal is generated internally), but I can't seem to get this to work.
I get a square wave of an appropriate frequency (dictated by my gating signal) but (a) when the gate is off the voltage is not 0V but something like 2V, and (b) changing the VDAC output does not change the signal at all.
The discussion in the application note reads:
The signal from the DSI (red) is routed to the analog switches because the port bidirectional bit and the analog global select bit are set
(yellow). The VDAC output (blue) is switched on or off depending on the logic state of the Ext_Gate signal.
I did include:
// Set P0[0] to bidirectional mode
CY_SET_REG8(CYDEV_IO_PRT_PRT0_BIE, 0x01);
But is there anything else required to set the analog global select bit?
Anything else I may be doing wrong?
Thank you!
--
Dario
Show LessHi, is a serial resistance of 22R in the USB data lines (D , D-) mandatory?
We are using the USBUART (USBFS) component in our project. It does not enumerate the same on all computers. I was wondering if anyone has seen this and if they have a possible solution?
Show LessHi can anyone tell me how to output USBFS data to Maltab? I need to convert an input signal with ADC to digital and then with USBFS output it to a digital osciloscope in Matlab.
Thanks
Show LessGetting error message when trying to load new driver "Gateway Anti-Virus Alert" What to do?
I have Segger's emFile product running with FreeRTOS on a PSoC 5LP using a dedicate SPI master. I haven't implemented locks because the hardware is not shared and so per Segger locks are not needed.
Hardware layer really only requires two calls be implemented which I have done:
static int _HW_Read(U8 Unit, U8 * pData, int NumBytes)
{
SD_Card_ClearRxBuffer();
do
{
SD_Card_WriteTxData(0xff); // Write dummy data to clock the SPI slave
while (SD_Card_GetRxBufferSize() == 0); // Wait until receive FIFO is not empty
*pData++ = SD_Card_ReadRxData(); // Read data from buffer
}
while (--NumBytes);
return 0;
}
static int _HW_Write(U8 Unit, const U8 * pData, int NumBytes) {
FS_USE_PARA(Unit);
int i;
for (i = 0; i < NumBytes; i++)
{
{
SD_Card_WriteTxData((uint8)pData);
}
}
CyDelay(1);
return 0;
}
This works OK (but slow) if I include the 1ms delay in the write call. If I remove the delay I get read and/or write error depending upon what commend is executed next. I have tried nearly every type of status check in the write, TX_FIFO_DONE (also or'd with SPI_IDLE), SPI_DONE and just about anything I can think of. BTW - the SPIM is configured to 400KHz internal clock with just the 4 byte FIFO. I have also tried larger read and write buffers to no avail.
Any help, even guesses would be appreciated.
Show LessHello,
In the sample USBFS_UART01 sample, one of the automatically generated sources is:
USBUART_episr.c
I want that my callback will be called upon an interrupt.
Should I modify USBUART_episr.c ?
I also added:
USBUART_EnableSofInt (); to main.c right after:
USBUART_Start
In general, how can I connect a specified interrupt in a device to my code ?
Thank you,
Zvika
Show LessI am not really referring to "u" in uint16, but when a value is passed to a function, it is written as this for example: ADC_SAR_Seq_1_GetResult16(0u).
Is this a Cypress thing? I know I am going to feel dumb once the answer is written but I just do not know...
Show LessI am doing handson on single ended adc. For that purpose i have used the code from psoc creator code examples which is for 16 bit resolution. But i want to do adc lcd for 8 bit resolution. I have done changes in adc - resolution bit is 8 bit, input range is 1.024 v , continue mode. In main () code, i have changed data type size from 16 bit to 8 bit. I used P6[5] port for pot. When i start to vary the pot, the values are fluctuating and after FF value by varying the pot continue it starts roll over . So my question is why this is happened? Is there any settings required to do?
Show Less