PSoC™ 4 Forum Discussions
Hey all,
I'm working on a project involving reverse-engineering a serial bus. I want to use my PSOC 4 to listen in on a bidirectional serial line (open drain, pulled high) when the two endpoints are communicating. Additionally, I want to be able to disconnect the two endpoints and listen to them separately.
My initial impression was that I would need to use external circuitry to cut and reconnect the physical line (with a bidirectional mosfet switch or SSR), but I'm wondering if there's a way to do this internally in the PSOC? (i.e, cut the serial line and connect the two ends to pins on the PSOC, then connect them internally).
Any advice on how to do this?
Show LessHello,
I am new to PSoC4. I am trying to interface GPS http://www.progin.com.tw/mr87_en.htm with PSoC4.
I got an example at http://www.element14.com/community/message/141760/l/re-psoc-4-pioneer-kit-community-project089-gps-example#141760 . I have studied it and it works well now. The problem with it is, it shows only Longitude or Latitude or Time at one time. The output actually depends on "State" global variable in the program
uint8 State=GO_LATITUDE;
//uint8 State=GO_LONGITUDE;
//uint8 State=TIME;
Now I want to interface SD Card to log the GPS co-ordinates: Longitude, Latitude, Time and temperature sensor (LM35)output in excel sheet (or Microsoft Excel Comma Separated Values File (.csv) ). I have tried the example of SD Card at http://www.element14.com/community/thread/25517/l/psoc-4-pioneer-kit-community-project050-sd-card-example , but it actually causes file system to format.
Any help will be appreciated.
Regards,
Sarang
Hello,
I am using the PSoC 4 to communicate between 3 slaves and 1 master. I have set everything up based on the PSoC 4 SPI documentation. After testing it for a while I found that we needed to put a resistor on the slave select lines in order for it to function properly. Unfortunately, I had already ordered the PCB without a spot for these resistors.
A little bit of research indicated that the problem I have encountered is common and that using a resistor is a quick and easy fix. However, it seems there is also a way to get multi-slave SPI to work by using software, but I can't seem to figure it out. Does anybody know what I have to do to resolve this issue using software?
I can post pictures of the top design and the code if that helps.
Thanks,
Colin
Show LessOnce I realized that I hadn't blown my opamps, I resumed work on my load cell project - schematic attached. I am reading voltage values that make some sense in the context (e.g. values get proportionaly larger when more weight is placed on the cell), but the signal coming off the differential preamp is swinging wildy in value. The SAR readings are therefore swinging wildly too, sometimes even more so than their analog counterparts.
I'm too delirious to ask a more detailed question or do other research at this exact point, but since this is for a project on a tight deadline, I thought I'd at least get the conversation started.
Thanks,
Don
Show LessHello,
I have been working with PSoC4 for some time, driving a standard 2 line by 16 char LCD display, using the Character LCD Component which contains routines for the Hitachi 44780 interface. This works perfectly, with no problems.
I have now bought an OLED character display from Winstar, model WEH002002ACPP5N00001, which is a 2 line by 20 char display. This has the same pins as the LCD module, and when I hook it up and use the same code as for LCD, it ALMOST works. It displays the output, but all on one line and with line wrapped to the wrong position. So clearly it is not far from working properly.
In spite of much searching through the datasheet I cannot fathom how to get it to work fully. Does anyone know of code that has been written for such OLED displays, or how the Character LCD Component code could be modified to work with this display ?
I should mention that on the web I have seen comments that the Hitachi HD44780 controller and the Winstar OLED Controller are VERY close. Also, I have come across comments about various jumpers on the module board that can be moved to set it up for different operation modes, but am reluctant to start experimenting with these without knowing what I'm doing.
If anyone can offer advice I will be very grateful.
hi good morning hope you are well ...
I found this library for use with a pic microcontroller and want to use for psoc but I have not had much luck someone could guide me how you could do better encuanto.
thank you very much for your help.
Show LessHello everybody,
i've a problem that i managed to solve, but i couldn't understand whey the solution worked.
when i build my project i get this error
the command 'arm-none-eabi-gcc.exe' failed with exit code '1'
When i checked the output window i found this build error
multiple definition of `MY_FoundObserver'
I have 3 files main.c, my_ble.c, and my_ble.h
I used the following at the beginning of the header file to avoid any redefinitions
#ifndef MY_BLE_H
#define MY_BLE_H
#define FALSE (0u)
uint8 MY_FoundObserver = FALSE;
......
#endif
Hi,
I'm currently designing a PCB to use CapSense with a 16-pin QFN PSOC 4000, the CY8C4014LQI-421.
For better tuning at a later point I want to make sure that I can use the Capsense Tuner which I tried out with the eval kit. Do I have to consider anything special to use the tuner afterwards?
For example: I will use the progKit3 to program and debug the PSOC. Will I be able to communicate with the CapSense tuner over the SWD-Interface by using the EZI2C-Module in the topdesign? Or do I have to connect to the SDA/SCL Pins of the PSOC and use them for the tuner?
THanks for any help in advance!
Kind regards,
Stevil
Show LessI modified the ADC_Differential_Preamplifer project to work with a PSoC 4 BLE Pioneer Kit and with a load cell as shown in the attached schematic. It worked initially, reporting mVolt values between about 70 (IIRC) and 1024, which is the maximum.
I then tried to do something fancy by using the redExcite and yellowExcite pins to reverse the polarity of the excitation voltage between ADC readings, intending to subtract the reversed-polarity measurement from the normal-polarity measurement as a means to effectively double the resolution. After failing to get that to work, however, I returned to the project I saved before trying this change.
The problem is, now the first project doesn't work either. The ADC is showing no change of values when the load on the sensor changes. Checking with two DMMs, I can see that the differential voltage going into pins blueSense and whiteSense still varies consistently versus load as it always has. Measuring the voltage between Out_1 and Out_2, however, which should be exactly the same as is being fed to the ADC, reads only 0 V, occasionally drifting to -0.1 mV. Since the firmware only calculates down to values of 1 mV, it makes sense that mVolts is always equal to previousValue so that nothing is being written to the UART.
Did I fry my opamps? Fortunately, I have another kit or two on their way, but I would like to know if the opamps are, in fact, fried, or whether I have some other error in my project that I am missing. I can share the rest of the project too, if that will help.
Thanks, Don.
Show LessI'm fairly new to the PSoC architecture so I expect some frustration learing a new part. I've programmed PIC, Intel, Zilog, and Motorola microcontrollers in the past and they all have their learning curves and documentation issues. This is not a slam in any way as I'm just pointing out something that created some confusion to me when learning this device.
I'm working on a program that uses the SCB UART funtionality on a CY8CKIT-049-42xx board. so I was poking around trying to learn the register locations. I see on page 23 of the PSoC 4 Architecture TRM (Rev C 3/25/2014) that there are two SCBs. When I look at page 50 I see that the SCB registers are mapped to addresses 0x40060000-0x4006FFFF. I then go to the PSoC 4 Registers TRM (Rev A 6/25/2013) to actually look at the individual register definitions and I see the registers mapped in that address space, but there is no indication of two SCBs. So I compile a simple program in PSoC Creator and I hunted around in the include files and find that in the cydevice_trm.h file the SCB1 register address map appears to be 0x40070000-0x4007FFFF. This range is not even defined in the PSoC 4 Architecture TRM.
While I'm OK with finding this information out in a rather reverse engineering way, it would be a lot clearer if the documentation was updated to reflect the full picture especially with regards to registers in the device. I would rather not have to rely on compiled code to understand the register mappings. If I missed some errata document out there my apologies, and I would appreciate a link to it for my documentation collection.
I do like the PSoC devices though and look forward to using these devices in future projects.
Show Less