PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
I work with the SPi Master Version 2.40.
First I enable the internal IRQs for RX Fifo not empty and Tx Byte complete with the configuration tool (schematic view) and everything works fine, the IRQs are fired as I exspect it.
Then I use the API function SPIM_DisableRxInt() and start the test again, but the Rx IRQ still fires.
Then I use the API function SPIM_SetRxInterruptMode(0u) with the parameter 0 to disable the RX IRQs and as exspected the RX IRQ is disabled.
So my question is why the API function SPIM_DisableRxInt() does not disable the RX IRQs ?
Thank for your help.
Show LessHi all,
I am trying to create a beacon type device that advertises some data once every few seconds.
How do I disable the advertisement timeout?
The General Discoverable Mode in the BLE_v1_10.pdf states:
General Discoverable Mode – In this mode, the device should be used by devices that need to be discoverable continuously or for no specific condition.
But one can't disable the advertisement timeout.
Maybe I'm missing something. Should I restart the advertisement from the CYBLE_EVT_TIMEOUT event?
Thank you,
Errol
Hi,
I did some Googling about finding the index of a pointer in an array and tried to implement it in my code. I have been having an issue with it.
The following code attempts to catch an overflow of the buffer by using the pointer index and does not work:
ptrdiff_t index = dmxReadPtr - DMXbuffer;
// If data ready, read data
while(UART_DMX_ReadRxStatus() & UART_DMX_RX_STS_FIFO_NOTEMPTY)
{
if(index < DMX_SIZE)
{
*dmxReadPtr++ = UART_DMX_ReadRxData();
}
else
{
UART_DMX_ClearRxBuffer();
}
}
The following uses an integer to index the array, and works correctly:
// If data ready, read data
while(UART_DMX_ReadRxStatus() & UART_DMX_RX_STS_FIFO_NOTEMPTY)
{
if(place < DMX_SIZW)
{
DMXbuffer[place] = UART_DMX_ReadRxData();
}
else
{
UART_DMX_ClearRxBuffer();
}
place++;
}
Does it have something to do with the data type of ptrdiff_t? If so, how can I evaluate this expression?
Thank you,
Tom
Is it possible, if the external device can be taken apart to find the correct connections to monitor, that the psoc 4 pioneer kit could be used to monitor that signal and do something from that?
Basically looking to see if i could use my pioneer kit to monitor a fish feeder and notify when it fed the fish..
Not looking for anything fancy, like this one:
just want to know that it did its job when it was suppose to, now maybe after getting that setup, i add all the bells and whistles, but short i just want something to tell me it worked. Going on a trip for a week and want to make sure everything is working while we are out..
thanks..
Show LessI have successfully used the iDAC on psoc5.
I was wanting to see what speed I could get out of the PSoC4.
I am trying to get the iDAC routed out of the PSoC 4, and I can't find the iDAC referenced in the pin map of the Data sheet.
I tried routing iDAC0 through P4[0], after looking at the analog tab on the CY8C4245AXI-483 44-TQFP, but I get a "no valid route exists," even though iOut appears to go through that crossbar switch.
The funny thing is that the data sheet, PSoC4_PSoC_4200_Family_Datasheet_001-87197_0D_V-2.pdf does not list an iDAC in any pinout connection. There is no schematic for the Cy8CKIT-049-42xx quick start kit. I finally found a couple of caps tied to some pins P4[2] and P4[3], but P4[2] also fails. The component name is IDAC_P4_v1_0. My PSoC creator 3.22 was just updated with SP1 today. maybe that broke it?
Any suggestions? routing info below:
Analog Routing ...
Info: apr.M0021:
Failed to route net "Net_322".
Error: No valid route exists
Ports: analog_term
iout
Sources: CSIDAC0.iout
Targets: USERIO P42(0)
(App=cydsfit)
Info: apr.M0021:
Failed to route net "\ADC_SAR_Seq_1:Net_2020\".
Error: No valid route exists
Ports: analog_term
vplus
Sources: USERIO P20(0)
Targets: SARADC0.vplus
(App=cydsfit)
Error: apr.M0003: Unable to find a solution for the analog routing. (App=cydsfit)
Show Less
Hi all,
I am having two nos PSoC4 Prototype Board (4200) In that i am trying to implement SPI Master - Slave communication.
Board 1 - Added SPI Master Blocks and keep reading the data in a while.
Board 2- Added SPI Slave Blocks and keep sending the data.
anyone have idea in this how do i can make it work?
Thanks,
Ashok r
Show LessHi all,
I am sending message from GSM 900 module attached to PSoC 4 Pioneer kit. But I am not getting proper message that I configured in my code. Please help me out. My workspace file is attached here.
Show LessIs there a way to use the PSoC as digital Bus Buffer / Switch?
I have 2 (optional 4) 8Bit (optional 12Bit) width input ports and would like to route them to 1 (optional 2) output port(s) and switch between them.
I tried the analog multiplexer component, but since I have are digital signals and it wouldn't hurt to buffer (refresh) them I wonder if there is a better solution.
Hello everyone,
I'm interfacing an SSD1322 OLED controller in 4-wire (SPI + D/C#) mode. I need to be able to set the D/C# signal high or low depending on whether I'm sending a command byte or a data byte, but I don't see a way to tell that the SPI transmitter is empty so I can correctly manipulate the D/C# signal
With the UDB SPI Master this is easy to do, but unfortunately I do not have enough UDB left over to use a UDB based SPI Master.
I also do not see a specific timing chart (unlike the UDB SPI Master implementation) where I can see exactly where the SCB in SPI Master mode will assert or negate the SS# signal, so I can't tell if there is an opportunity for me to look at the SCB hardware registers, alter the D/C# signal and send the next byte before the SS# signal is negated. Unfortunately the SCB documentation is fairly poor in general.
In order to work around these issues I could tell the SCB component that there is no SS# signal, then claim the pin with a standard Pin component and manipulate it directly. Unfortunately again, the API has no way of doing this, and I don't see way to do it with direct register access, either. I tried assigning a Pin component to the SS# pin but then the fitter tries assigning the SCB SS# signal anyway and bombs out because there are no other available pins. I don't want to have a "useless" SCB-controlled pin, so that option is out as well. I believe this is a bug in the fitter though and not in the SCB itself.
So... I seem to be stuck. I guess a possibility is to use the SCB in unconfigured mode. Has anyone used that before for SPI operation and could share any tips they have?
Show Less