PSoC™ 5, 3 & 1 Forum Discussions
hi every one i have a problem whit a memory eeprom , I have done work this memory : http://www.atmel.com/images/atmel-8535-seeprom-at25320b-640b-datasheet.pdf
agree to the application note : http://www.cypress.com/documentation/application-notes/an51234-getting-started-spi-psoc-1
the problem is that now I want to run this one and I can not write because apparently I can read
http://www.atmel.com/images/atmel-8832-seeprom-at25m02-datasheet.pdf
I do not know why
I am new to Cypress, trying to get a UDB I2C master to work. I have successfully fetched the device ID from my test I2c slave device, an ADXL345 accelerometer. However I have two problems:
1) Most of the time, the address that the I2C master puts on the bus right after the start bit is to address 1. With enough resets of the debugger, the I2C master will occasionally get the correct 0x53 address on the bus. When that happens, the slave responds correctly and data makes it into my buffer, and all return values are zero.
2) Even if the address was correct in #1, the final stop bit of the 2nd cycle (the I2C read) will hang on this line in the I2C_MasterSendStop function: while(I2C_WAIT_STOP_COMPLETE(I2C_CSR_REG)). I don't see the STOP bit on the scope either. If I put in a breakpoint before the function and then single step, I see the STOP condition on the scope and it completes.
For #1, what do I need to do to get the I2C Master ready to go to work on the correct address all of the time?
For #2, do I need to check a flag before I call on the I2C_MasterSendStop function?
Complete project attached. Code snippet from main follows:
Show Less
#include <project.h>
uint8 buffer[10];
uint8 results[20];
void ReadRegs(void)
{
uint8 i=0;
results[i++] = I2C_MasterClearStatus(); // This was added but didn't help
results[i++] = I2C_MasterSendStart( 0x53, 0 ); // start write
results[i++] = I2C_MasterWriteByte( 0x0 ); // Register 0
//results[i++] = I2C_MasterSendStop(); // Commented out, switched to Restart but didn't matter
results[i++] = I2C_MasterSendRestart( 0x53, 1 ); // Turnaround for next cycle
buffer[0] = I2C_MasterReadByte( 1 ); // Read 1 byte
results[i++] = I2C_MasterSendStop(); // stop - This never completes at full speed
while (1)
;
}
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
I2C_Start();
ReadRegs();
}
Hello, I'm curious if there exists an I2C F-RAM component for the PSoC5 LP similar to the one for the PSoC4? I am using a Cypress FM24256 unit. If not I can always develop a driver from scratch using a I2C master component; however, it would be nice if that were already done .
With that in mind how much of the existing code on the psoc4 component is re-usable for the psoc5lp?
Thanks,
Show LessI am using CY8C4124LQI-443 Psoc 4100 family in my project. I need to use emulated eeprom. There is an example in psoc. But I have problem when I use. I want to read the data written on eeprom after restart the system.
I use this command CY_GET_REG8(adress); or Data = (*((uint8 *) (adres)));. Data read is 0.
What is the problem of this? Can anyone explain the detail of this? (I think after I close the system, Data written is deleted by the microcontroller.?)
Thanks for helping.
Show LessHi,
I am unable to program my PSoC 5LP on my CY8CKIT-001 development kit. When I set the Vdd switch to 3V, D1 is on but when I set it to 5V D1 starts flashing. I used a multimeter to check the voltage values and Vin is 12 V, 5V pin is 0, and Vdd is 0 and 3.3V pin is 0.3V. I'm not sure what happened? Any suggestions?
Ida
Show Lesshi,
I have a problem with uart_writetxdata().I have attached the code. The problem is UART is not able send all the digit as per the code.
the first line in for loop print four times on serial terminal. I have attached a pic of serial terminal.
Thanks in advanced
Show LessDear All,
I am trying to implement a PI controller for a power converter. Attached is the schematic diagram of the analog part that I want to implement on PSoC-5LP.
The problem is that PI's opamp output is -ve and opamps in PSoC do not support a -ve voltage.
Any help in this regard would be appreciated.
Hello Everyone,
I have recently updated my psoc 3.3 to psoc 4 and then i checked my already working program in the posc creator 4 it not even working wt all just it make the device turn off immediately i dont able understand can anybody please tell me why this is happening do i need make any changes in the psoc creator 4
any help would be greatly appreciated
Thank you
prabhu
Show LessHi
I am trying to interface ESP-12E (NodeMCU) with PSoC 5LP. This module has reset pin, which is called nRST. It is an Active Low. This pin is already driven using a circuit in NodeMCU (see attached image). I also want to drive this as well from PSoC 5LP. My requirement is when PSoC drives it Low, it will stay low irrespective of NodeMCU state and when PSoC is in HighZ mode NodeMCU can drive this pin. I have shown my idea in attached image. Is it fine if I use this schematic and PSoC output in open drain drive low mode? If not, what should be solution if I want to drive nRST using PSoC and NodeMCU as well.
Show LessI have been given a task of interfacing the accelerometer ADXL 345 to PSoc5....But there is no one to guide me.....I have problems in writing code for it....n also would like to know how to interface it.....Pls do help me!!!!
Show Less