- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear All,
CY8CKIT-050 PSoC® 5LP Development Kit is based on CY8C5868---(67 MHz). Is there any other development kit which is based on CY8C5888---(80MHz)? (except CY8CKIT-059).
Solved! Go to Solution.
- Labels:
-
ispn:39618:1:0
-
l1:314:1:0
-
PSoC5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Third party kits with PSoC5LP chip are available. Please have a look at link:https://www.sparkfun.com/products/13229
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Third party kits with PSoC5LP chip are available. Please have a look at link:https://www.sparkfun.com/products/13229
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. Actually, they are in the lack of LCD and POT and many other useful resources.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello can you help me someone?
I have PSOC 5 LP and I would like try SPIM comunication. I used the SPIM block and I sent clock to the 1MHZ and 11bit word. After that I conected the logic probe to the pins on kit (without peripheral) and I sent 0b10101010101 mesage. The problem is in peaks on CS (SS) and RX and TX (the probe 3 is CS and probe 2 is clock and 0-MOSI and 1 - MISO)
Can you help me someone where can be problem?
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include <project.h>
uint8 pocVzSawtooth = 250;
uint16 delickaOutSawtooth = 0; // inicializace delicky kmitoctu pro výstupní sawtooth
uint32 fOsc = 77000000;
uint16 fsin = 6700; // frekvence pily Hz
uint8 temp = 0;
void nastavGenPily(uint16 fSin);
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
Opamp_Start();
WaveDAC_Start();
SPIM_1_Start();
for(;;)
{
/* Clear the transmit buffer before next reading (good practice) */
SPIM_1_ClearTxBuffer();
temp = SPIM_1_ReadTxStatus();
/* Ensure that previous SPI read is done, or SPI is idle before sending data */
if(temp & (SPIM_1_STS_SPI_DONE | SPIM_1_STS_SPI_IDLE))
{
SPIM_1_WriteTxData(0b10101010101);
CyDelay(1);
}
}
}
/* [] END OF FILE */
void nastavGenPily(uint16 fSin)
{
// Nastaveni generatoru sinusovky a bileho sumu
delickaOutSawtooth = fOsc / (fSin*pocVzSawtooth); // vypocet honoty delicky pro generovani sin prubehu o frekvenci fSin [Hz]
Clock_sawtooth_SetDividerValue(delickaOutSawtooth);// nastaveni hodin pro generator sinusovky
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A pitfall is the select line, which is automatically taken low when a byte is sent. When the buffer is empty it is taken high again. This can lead to interface errors when the byte sequence is not provided fast enough resulting in ss-line glitches.
A way out is to control an own ss line: before a complete transaction starts, set the line low, when finished return to high again. Use the Pin_Write() API for that.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Helo BOB,
thank you very very much !!! Perfect it is working well now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great! You are always welcome, Michal.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
😄 but when i connect AD5206 digital potenciometer so It doesn't work. I think that the problem is in timing the falding edge on SS because delay betven SS falding edge and clock (CLK) is not carry when i use handcontrol SS using:
ss_1_Write(0);
SPI_WriteTxData(data);
while(!(SPI_ReadTxStatus() & SPI_STS_SPI_DONE));
ss_1_Write(1);
Do you have some idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to your data sheet, there is no required maximum time between the falling flank on SS and the start of transmission. The only requirement is that CLK is low when idle (and this needs to be configured correctly).
(Actually SPI has no maximum timing requirements on the sending side, since it relies on SS and CLK flanks only. It just needs some minimum setup times).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Difficult to guess, please provide a workspace bundle.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot find something wrong.
Only question not answered yet:
Does the SPIM start transferring a 16 bit word with D15 or D10 when the number of bits is set to 11?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found than the word is 11bit in datasheet. (show timing diagram). I will try measure the real bits using logic analyzer tomorrow in school.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What about my question? Haha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You did not ask a question, Haha!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We don't have any other kit to recommend you other than 059 and HIMA's suggestion as of now.
Thanks
JOBIN GT