PSoC™ 5, 3 & 1 Forum Discussions
hello,
I have a control register (8 bit wide bus) in my schematic, and I want to take that bus and run it to two places. the first destination is just a straight connection bit for bit. for the other destination, I want to send the control register's upper 7 bits to the destinations lower 7 bits (a right shift, effectively) and concatenate a different wire onto the upper input.
something like:
assign destination_reg[7:0] = {single_bit , control_reg[7:1]}
such that if single_bit is 1, and control_reg was 00110101, that destination_reg[7:0] would be 10011010
what is the best way to do this in the schematic editor? I don't know how to manipulate the buses well enough. I could make 7 series-pairs of not gates (effectively a buffer), and assign the inputs to the upper bits of the control_reg bus, then assign the outputs to the lower bits of the destination_reg, but that's really messy.
Show LessHi, I'm running into some trouble with power consumption and I'm wondering if this seems like a design problem. Here's the situation:
I have a dozen copies of a custom PCBA from a well established assembly house
I have an empty project with a single pin assigned to 12.6, and the following code:
pin_SetDriveMode(pin_DM_DIG_HIZ);
CyDelay(10);
CyPmSaveClocks();
CyPmHibernate();
I expect this design to draw around a microamp in sleep, but two instances of the board fail to do that. They start out drawing 0.4 mA and slowly creep up over a period of about a minute until they're drawing 4 mA. Toggling the reset line resets the cycle. All the other boards draw less than a uA.
I discovered that if I set the drive mode to ALG_HIZ, these boards fall into line (although I do need PICU interrupts on this particular pin). There's a 200 kOhm pulldown on 12.6, and shorting the pin to ground or VDDD doesn't have any effect.
Any ideas what could be causing this? DFM things to check? Thanks in advance!
Show LessHello,
I'm currently trying to open communication to the Sparkfun Razor 9-DOF sensor which has an atmega chip onboard and outputs sensor data via UART (TX/RX). I have set up basic open communication using a UART on the Psoc 5lp (Term) and a UART connected to the TX and RX pins on the sensor (IMU).
The baud rate on the sensor is set to 57600. Tera Term and both UARTs are set to the same.
The main.c is as follows I have also posted the whole project.
////////////////////////////////////////////////////////////////////////////
#include <project.h>
uint8 Ch;
int main()
{
Term_Start();
IMU_Start();
while(1){
if((Ch=IMU_GetChar())){
Term_PutChar(Ch);
}
if((Ch=Term_GetChar())){
IMU_PutChar(Ch);
}
}
}
////////////////////////////////////////////////////////////////////////////////
The communication is there, but the output is gibberish. I see the following in Term after hitting the reset button on the sensor:
üüüüààüàüààüüüüüüüüüüüüüàüüüüüüüüüüüüüàààüàüüààüàüàüàüüààüààüüüüüààüüàààüàüüàààüüüàüüüüüààüàüààüüüüüüüüüüüüüüüüüüüüüüüüüüàààüàüüààüàüàüàüüààüààüüüüüààüüàààüàüüàààüàüüà (it looks different on tera term)
The worst part about this whole thing is that I got it working before, changed some stuff around, and can't get back there no matter what I try.
Any help is appreciated. Thanks!
Show LessI am not sure the best forum for my question. I am looking for a contract PSOC 5LP "expert" programmer that either has experience with Decawave or capable of helping port some C code from another processor to the 5LP.
The device is a RF transceiver that interfaces to micro using SPI. The SPI code appears to be running and I can read write and read registers ok in the device.
My initial application is to simply get TX to RX working based on their example code.
The TX code appears to be working (The TX sent flags etc are all being sent correctly) but the receiver is not receiving anything.
Most of the job will involve looking into my code to see what I may have overlooked.
Regards
Dave
Show LessI am trying to use the UART module to decode the SBUS signal from an RC receiver. This signal is 100KBps Even parity and 2 stop bits. It is also an inverted signal so I added a not gate on the RX input. Since I could not select 100kbuad in the uart config, I am using my own 800Khz clock.
The device does not seem to decode this signal properly. In the attached image, the top trace changes state whenever I get an interrupt for a new character. The second trace is the signal from my receiver. To see that the uart was getting a signal, I tied the input to it to another output on the psoc and that is the third trace. The last trace is just the 800Khz clock.
You will notice that the first trace changes state after the first stop bit, not the second. I am not sure if this is a symptom iof the issue or not. I get an interrupt after the first stop bt every time so it seems like the uart is locking on to the signal fine.
The first byte has the value of 0x0F. This gets decoded correctly, however, all other bytes are not correct. The second byte shown should be 0x00 but its decoded as 0xbf. The next byte is 0x37 but is decoded as 0x13.
Is there an know issues using 8E2 format?
Show LessHi,
I am having a problem with my CY8C5868LTI-LP038. The RTC does not appear to be running.
I have a bare bone project (attached) that implements a UART and the RTC for displaying a message to the console at one second intervals. This project works fine when built and ran on the dev kit I have (CY8C5868AXI-LP035 100TQFP), but I do not see RTC_EverySecondHandler_Callback() being executed when running on my custom board implementing the CY8C5868LTI-LP038.
I have verified that, when executing on each device, the XTAL 32kHz crystal is enabled. But again, this is the exact same project I am building just selecting a different device to execute it on... So I would expect it to be enabled. The ONLY changes I make are to change the UART_RX and UART_TX pins appropriately for console output (P49 and P48 respectively on custom board if that is of any relevance).
The console output is working fine on both boards and is validated through the initial print prior to entering the main loop.
Since the RTC is implemented internally and uses the internal 32kHz XTAL, I have a hard time believing it's a hardware issue with our prototype board. I have no other execution issues and have implemented several other components within the LTI-LP038 (EEPROM, I2C, SPI, Timers, ADCs, DieTemp, etc.) without issue. The only problem I am encountering is with the RTC, hence the bare bones project I created in an attempt to isolate.
Are there known issues with the RTC on the CY8C5868LTI-LP038?
Thank you
I am trying to read output from the Raspbery Pi to the Psoc (High/Low), Im doing a smart lock through bluetooth using the pi as the bluetooth compoenent. When a verified paired device is recognized i need to the pi to send out a 1 . With a DMM I am able to verify that the Pi puts out a 0,1 because it reads 3V=High and 0V=Low. When I try to read the output from the Pi thorugh an if loop, the psoc does not work.
Any ideas on whats wrong?
Show LessI'm doing a simple operation on the Cypress PSOC 5LP 59. It uses SPI to communicate with a Raspberry Pi which sends a bunch of letters, and the PSOC 5LP blinks a light after it receives a certain letter. The PSOC stores the entire array of letters.
This does not work for some reason. It works if I use a buffer of 100 letters, and the A is the 95th letter or something. It works up to 400 letters or so (though it will be slightly sporadic sometimes.) But after that point, it won't work. For a buffer size of 1000, with the first A being at the 800th letter, the LED won't turn on.
The SAME code, works with the 4200 with a buffer of 2000. So why does it not work with the 5LP? Its max array size should definitely not be 400 or so.
Show LessHello community
I have psoc 5lp and creator 4.0.
Could you tell me the steps to implement in File spi mode.
I did the instructive and did not get results.
Hello, Our project needs an external power supply of 5V given to the psoc 5lp Kit by a DC DC converter. we would need to connect a MICROUSB cable from a laptop to the kit in order to use a USBuart for communication. is there anything to modify or to add in order not to give a double Power Supply to the kit when both the external power supply and the microusb are connected to the system? thank you S&D
Show Less