PSoC™ 4 Forum Discussions
Hi All !
I am quite near to complete the GSM Project. I am not getting desired results as of now. The project which I designed, sends message to Cellular Phone when a push button is pressed. It receives message from Celllular Phone also. It displays it on LCD. Currently I am facing a problem in which I am able to send the message as many times as I press the pushbutton, but not able to receive it and display it on LCD once I send a message priorly. Please find attached my project. I request all to contribute, so we can make a GSM Module for PSoC4.
While building the project i m getting this error
Error: mpr.M0014: Resource limit: Maximum number of UDB Datapath Cells exceeded (max=4, needed=5). (App=cydsfit)
find the attached image and guide me for the solutionShow Less
I can program the UART with Hardware Interrupt, because the Rx_Interrupt pin is available in the UART component. I need help in programming I2C with interrupt, because the component does not have any hardware Interrupt pin. Please find the piece of ISR that I have written to get a byte on UART of Master and send it to the Slave by I2C:
At the end, I want to configure UART and I2C with Software Interrupt. Any reference to the explanation of Hardware and Software interrupt will be highly appreciated.
Thanks in Advance.
Good morning all,
In my project am planning to use cypress IC i.e. cy7c68013a-100axc for interfacing this with xilinx CPLD/FPGA board. Am new to cypress.
So, please tell me(link) where i will get source code, tutorials, software for cypress and what all i should take care during programming an fpga using cpress board.
I'm trying to use a timer interrupt to generate a 1/ms interrupt. I've set up a Timer component (32-bit UDB) with interrupt set for "On TC" (Timer complete I believe.) Interrupt type is "DERIVED."
The code that manages this is:
static int count=0;
SysTimer_STATUS; // dismiss interrupt
if( sysTimer == 1000 )
And within main():
while(SW1_Read()); // wait for button press to continue (gives you time to switch to a terminal window)
Output prior to SysTimerISR_Enable(); displays (on the USB/Serial) but once I push the button and proceed past that point, the system locks up. No more output and the bootloader reset (copied from one of the videos) does not work. I suspect that the source of the ionterrupt is not dismissed so as soon as the timer ISR returns it goes right back into the interrupt. I don;t understand why the SysTimerISR_Stop does not seem to execute. (Debug code.) If I don't enable the interrupt, the remaining code executes as expected.
What I want is an interrupt that can maintain a counbter that increments every millisecond. Feel free to suggest another solution, but I'm also interested in knowing why this does not work.
I can provide the whole project if desired. Would I jut zip it up? What about bootloader dependency (since this is on an -049.)
I am looking for help or advice on programming the PSoC4 for a specific counting task.
My current project is to build an accurate audio frequency counter by capturing the number of 1MHz clock pulses that occur during one or more periods of the audio signal. At low frequencies one period is enough, but at higher frequencies I need to measure over many periods to get an accurate result (a count of 50000 or more). I am using an external crystal with the PSoC4 for accuracy.
Thus I need two counter, one to capture the total count, and one to keep count of the number of input periods. Unfortunately the PSoC4 does not have enough logic resources to implement two counters that are long enough, plus the status registers needed to send the counts to the processor. So I am wondering if I can somehow utilise the SysTick timer and/or the Nested Vectored Interrupt Controller (NVIC) in the processor to directly count the number of periods. It would in effect need to capture pulses at a maximum 50kHz rate, and I'm not sure if it could handle interrupts at this rate.
So, can advise me if this is feasible? If it is, I would need some help with writing the code to handle interrupts, as this is an area where I have little experience. I always find that examples of code that performs a similar task is the best starting point, so it would be ideal if anyone can point me towards existing code samples.
I realise I could always use a "larger" PSoC part, but the PSoC4 is what I have, and I'd like to stick with it if possible.
Many thanks for any help anyone can offer.
I've a question regarding I2C communication in CY8CKIT-042 pioneer board.
What I want to do is a simple I2C communication; Write a byte and read a value from slave. It could be programmed in Arduino like below.
const int address = 0x40;
// open the serial port
// Start the I2C module
// start a transmission to the slave
// request register 0
// issue the request
// prepare to receive on byte
// wait for the data to be ready
// print the temperature
I started this program with an example project, I2cCommMaster. When I try this project with my commands and slave address, I found that the master couldn't complete write, so my program holds here;
[main.c @ line:85]
while (0u == (I2CM_I2CMasterStatus() & I2CM_I2C_MSTAT_WR_CMPLT))
/* Waits until master completes write transfer */
Could you guys help me to make this code run? I attach all my code below for your information.
Thanks for your help in advance.
I have been using the CY8CKIT-042 PSoC 4 Pioneer Kit board with PSoC Creator for some time with no problems until yesterday.
But now for unknown reason I get a Port Aquire Error.
First, during Build I get a Warning:
Warning in component: cy_boot. CY_BOOT: Function: CySysFlashWriteRow() fails to write a row of flash memory if the data to be written has a zero in the lower 32-bits of the checksum. See KBA94530 (http://www.cypress.com/go/KBA94530) for the details.
This might have been present earlier, and might be totally irrelevant. Otherwise Build is OK.
When I attempt to Program, the "Select Debug Target" panel opens (this did not happen earlier -- it always just programmed straight away.)
The panel offers only one target: KitProg/0D1A140900163400. This seems to be OK. But when I click the Port Aquire button the error message pops up, with details as follows:
There was an error attempting to run the port acquire command. This is often a result of no supported devices being attached, or a device being used by another application. Ensure that everything is properly connected, and that no other application is using the device and try again.
And programming does not take place.
The green Status LED on the board is lit and steady.
Windows Device Manager reports the three drivers associated with PSoC as all working properly.
Finally, I also have a CY8CKIT-049 PSoC 4 Prototyping Board, and this can be programmed via Bootloader Host using same USB port with no problem.
So I am stuck -- Can anyone help? Many thanks, and Happy Christmas, Ken.
[ Note: I will be away from my PC from later today 'til 29 Dec, so might not be able to respond quickly, but thought I'd get the post rolling anyway. ]Show Less
I am working on CYRF6936 transceiver module interfaced with PSoC 4 prototyping kit. I think it is one of SPI based "CYFI" radio modules housed on Artaflex AWP24S modules.
I am just 2 months old to PSoC world. I am trying to establish a basic one- way communication between two such modules with one module acting as a transmitter and the other as a receiver.
I recently raised a support ticket in MyCases in this same website asking for code to achieve the same. They instead provided me with Star Network Protocol (CYFISNP) code with HUB and NODE modules.
I went through the documentation but I'm not able to understand the exact sequence of operation of the hub and nodes. Also I'm not able to establish the desired simplex communication using the same API functions that the SNP code uses, since the "core" of the code is dissolved inconspicuously within the complexity of the protocol itself. Basically the basic radio operation is severely coupled with the protocol operation making it difficult for beginners to test the working of the CYFI radio module.
There is a sample code in the CYFISPI datasheets but it is for M8C architecture.
Also the connector on the CYFI module is not compatible with standard connector buses, which requires us to use a connector "bridge" to connect to PSoC. The exact part number of the bridge is PDC-9370. Unfortunately there is no datasheet available for this connector and hence I'm not able to figure out the exact pins to connect to PSoC.
CYRF6936-40LFXC is obsolete and it is replaced by CYRF6936-40LTXC. The radio drivers availabe are for CYRF7936 and PRoC. I am not sure if they are compatible with my part number. If they are not then I'm not able to get the correct datasheet.
Nevertheless I have managed to put a few lines of code and the "guessed" connections together but the transmitter is stuck in TX mode and receiver is stuck in RX mode. I am using character LCD for display and debug.
I have attached a few snaps of the setup and the code itself. I would be very grateful if someone can go through the code and help me get the radios talking to each other.
Thanks and regards,
Please chech the question posted here:
Many thanks!Show Less