- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
Yesterday I was unable to send complete project today i make minimal project so please help me out.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You opened a new thread again, please reply to your original post.
while(!(SPIM_ReadStatus() & SPIM_STS_TX_FIFO_EMPTY));
SPIM_WriteTxData(transmitdata);
CS_Write(1u); // This will remove CS before transmission is complete
Better use
SPIM_WriteTxData(transmitdata);
while(!(SPIM_ReadStatus() & SPIM_STS_TX_FIFO_EMPTY));
SPIM_WriteTxData(transmitdata); CS_Write(1u); // Transmission complete, remove CS
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks But i use SPIM_WriteTxData(transmitdata); in read and write so i have to replace all ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I change it but still nothing is happened not showing an array
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Post your corrected project.
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
My fault, something got scewed up in this editor.
Your code (excerpt):
SPIM_WriteTxData(transmitdata); // Write a command byte
while(!(SPIM_ReadStatus() & SPIM_STS_SPI_DONE)); // Wait until data transmitted *** Try using the DONE flag
SPIM_WriteTxData(transmitdata); // *** This is a superfluid write. Deloete that
CS_Write(1u); // Transmission complete, remove CS. *** Look into eeprom datasheet for CS remaining low or not for complete transaction
CyDelay(5);
CS_Write(0u); // Taking CS low for next write
transmitdata=data;
SPIM_WriteTxData(transmitdata);// Write data byte
while(!(SPIM_ReadStatus() & SPIM_STS_SPI_DONE)); // Wait until data transmitted
SPIM_WriteTxData(transmitdata); // UNUSED EXTRA WRITE
setAddress(address); // Setting the address after sending command and data. Is this correct?
CS_Write(1u); // Transmission is still in progress. Wait for transmission done!
Change the other parts of your program accordingly.
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
What is the part number of the eeprom you use? Link to datasheet, please.
What hardware do you use, self-made? Cypress Kit?? Which one (Part number)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HIII, Shall i get code for SCB mode SPI