PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I use CY8CKIT-59 and I try to use printf() as demonstrated in CE210741, but instead to send characters back to terminal, I save them before into a buffer.
So I receive from terminal 4 bytes (0xac, 0x0d, 0x00, 0x00) - the value of 3500 in decimal.
Then I calculate the number from the buffer:
TimerPeriod=rx_buffer[0]+256*rx_buffer[1]+65536*rx_buffer[2]+16777216*rx_buffer[3]
Then I send back a confirmation message back to terminal:
printf("Test printf function. long:\"%ld\"\r\n", TimerPeriod);
On terminal I receive the number 172 in decimal (0xac) which is wrong
If I exercise in front of that:
UART_PutString("Received from UART:");
UART_PutChar(rx_buffer[0]);
UART_PutChar(rx_buffer[1]);
UART_PutChar(rx_buffer[2]);
UART_PutChar(rx_buffer[3]);
UART_PutString("\r\n");
I get not only the proper values stored in rx_buffer, but magically prinf functions works well too. I get 3500 instead of 172.
I have the heap space set to 0x300.
I attach for your convenience the archived project.
Can anybody offer some help?
Thanks.
Show LessHey i'm making a color sensor with a TCS3200, and i was wondering how to change a pin from high to low and low to high though the code? hope you can help
Show LessHello,
Please tell me how to implement a simple I2C slave application.
I want to make a I2C slave application using PSoC 5LP.
Attaching project is a simple I2C slave project file.
Connecting PSoC with I2C Master with two pullup registers, I monitored signal line by the oscilloscope.
No signal was founded and slave status was always 0.
The I2C master was working when I connected another I2C slave module.
Thank you.
Show LessI am seeking help selecting PSoC device for BLDC motor control application, sensor less with LIN interface. Could someone point me to appropriate reference design or MCU and driver part numbers to achieve this.
Thanks,
Abhijit
Show LessI'm using this 10 DOF IMU board from dfRobot (https://www.dfrobot.com/wiki/index.php/10_DOF_Mems_IMU_Sensor_V2.0_SKU:_SEN0140) for a project I'm working on. I have set up i2c communication with two of the four sensors successfully, but for some reason I cant get the communication to the gyroscope and compass to work. Both just NACK when written to (I'm using a logic analyzer to check the communications). I have checked and rechecked the code, and cant see any mistakes, or issues. I have also tried powering the IMU with 5 V instead of the 3.3 from cy8kit, the situation did not improve. I'm beginning to think the senors are bad. Can anyone suggest any further trouble shooting and/or look over my code for a sanity check?
I have also attached the datasheets for both no communicating sensors.
Thanks in advance
Show LessHello, I'm looking for some example code on I2C Slave write to an I2C Master. I found an example:
https://community.cypress.com/thread/34177?q=Help%20with%20I2C%20Slave%20Write
But the example project is not complete when I loaded it into PSOC Creator.
I was looking at the EZI2C datasheet and the I2C Master/Mulit-Master/Save documents and I don't see a function that the Slave would use to write to a buffer to be send back to a Slave. If anyone has some example code or any helpful comments please let me know
Respectfully,
Joe
Show LessHi All,
I want to measure a current ( the load is uknown (changes)) and a voltage, such that I can make a maximum Power point calculation. Is it possible to use a DAC, for the current and a ADC for the Voltage? If yes, how should I configured it.
Thanks.
Show LessHello,
I need help for adc reading of 16 channel.
In which what i need to use ADC mux? Here i attached the snap short and also which ADC i need to use for that? ADC seq or else? I am using PSOC 5lp, kit-050
Show Less