PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
I had open the I2C component and found some interesting files, both are named TMOUT (what i guess stands for Timeout), one header and it's corresponding source file.
I found it interesting because i was trying to make the changes to avoid the while() loops inside some low level I2C functions, i found this post about it (see I2C section😞 http://www.mbedded.ninja/programming/microcontrollers/psoc/components
The problem is that i can not find those TIMEOUT files when i build the project. Any way to include those files? I'm to blink to see the enable TMOUT checkbox?
Also tried to find information about TIMEOUT_functions on the component datasheet and 5LP TRM and found nothing 😕 .
I'm using the CY8CKIT-059 kit.
Attached a screenshot of the component files and the generated files after compilation.
Carlos
Show LessHello
I try to use matrices in PSoC5. Therefore I found good basic routines to work with matrices. But I get a allocation failure when I try to allocate a 4x4 double matrix. Do anyone know what I have to improve to that?
Here the code to allocate the matrix:
/*Allocate a double matrix with subscript range m[nrl..nrh][ncl..nch]*/
double **matrix(long nrl, long nrh, long ncl, long nch)
{
long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
double **m;
/* allocate pointers to rows */
m=(double **) malloc((size_t)((nrow+NR_END)*sizeof(double*)));
if (!m) pr_error("allocation failure 1 in LINALG_dmatrix()");
m += NR_END;
m -= nrl;
/* allocate rows and set pointers to them */
m[nrl]=(double *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(double)));
if (!m[nrl]) pr_error("allocation failure 2 in LINALG_dmatrix()");
m[nrl] += NR_END;
m[nrl] -= ncl;
for(i=nrl+1;i<=nrh;i++) m=m[i-1]+ncol;
/* return pointer to array of pointers to rows */
return m;
}
Hi,
I am just beginning working with CY8CKIT-050 PSoC 5LP dev kit and I was wondering if there was an easily available shield that would allow me to add a USB or microSD port for me to write and read data from the host PC through the dev kit USB onto this extra storage space?
Thanks.
Show LessHi,
We have download the emFile SD card example from below link. After compiled we noticed that it occupied 66% of flash memory just for the SD card interface. Do anyone have the solution to reduce the flash size. We have tried to optimise the compiler but little help.
http://www.cypress.com/documentation/code-examples/ce95311-emulated-file-system-psoc-345lp
Do anyone have better solution.
Thanks
Show Lesshello dear CYPRESS community,
I need to communicate (SPI) between PSOC5 (Master) and the ADC AD7195.
I have to configure the ADC and take measurements.
Is there someone who can help me and verify my code?
I search code example for this type of ADC.
ADC Sync pin not connected, MISO connect to Dout/ready, MOSI connect to DIN, sclk connect to sclk, ss not connected.
CS connect to P1_5 port of PSOC5 ( ADC_CS)
PSOC5: 5V & VDDIO=DVDD ; ADC : 5V USB AGND = PSCOC5 GND
my 'C' code:
when I ask for ADC ID , I receive x00 instead of xA6
when I ask for ADC Status Register, I receive x00 instead of x80.
when I ask for ADC configuration Register, I receive x0000A6 instead of x000117.
when I ask for ADC mode Register, I receive x000000 instead of x080060.
Best Regards
Show LessHello
I want to use debugging feature using break point to check the values of variable used in my code. however when ever i am running code in debug mode Break point present will become watch point and my code is not halting at that point. also RUN and PAUSE is also not working. i think there is problem with debug feature setting kindly suggest. I am using Creator version 3.3.
thanks
Show LessHi all!
I would like to know HOW do I use the I2C-LCD component. I put on the schematic an ADC Delta-Sigma, with pot and the I2C-LCD but it doesn't work!
Do I have to add the I2C component too?? I'm planning to use the I2C-LCD component in future project and I did the ADC-POT-I2C-LCD to get acquainted with the I2C-LCD.
If anyone can tell me how it goes I'll appreciate it a lot.
Thanks in advance to everyone!
Edgardo Ucha
Show LessHi there
I am using CY8CKIT-042-BLE I want to convert an analog input to digital but I could not find the right component to do so. so my question is there a pin in the kit that take an analog and digital at the same time and I do not need to do any convert or is there a component that I should use to do so.
the idea of the program I am trying to build is to count pulses. a copy of the file has been attached here
thanks
Ali
Show LessHi,
I have a final project for my Microcontrollers class that is due in three weeks. I have attached the project below, and I will post my questions about the project as well. I would like to start a discussion regarding any problems I may have in the upcoming weeks, and how to best approach this project.
Questions:
1. At what point in the development process should we implement our SD Card?
------------------
2. What does the game's pseudocode look like?
------------------
3. In the project evaluation rubric, some of the Robustness criteria include "Periodically repeats moves on Tx" and "Checks row and column numbers in received frames". What do these mean?
------------------
4. How can we incorporate multiple lab projects into one TopDesign?
------------------
5. What major pitfalls are there in this project, and how can I avoid them?
------------------
6. Once I write my game logic, should I test it via USB first and then test it using the LED Display?
------------------
7. What other hardware design tools besides Eagle can I use?
------------------
8. What does a successful timeline (with weekly deadlines) for this project look like?
------------------
9. What steps is the project timeline I've posted below missing?
A. Test 4x4 display from lab5 by displaying blue, red, and green LEDS
B. Test keyboard input from lab4 by ensuring the USB outputs to the terminal
C. Test keyboard and display integration by changing the LED colors via keyboard input
D. Test game logic functions via USB print statements
E. Test game logic on the LED Display
F. Test the UART to UART link from lab3 using the C String library to parse data
G. Test the WiFi module
------------------
10. What are the biggest timesinks in this project? What aspects are easiest to finish?
------------------
11. Will this program push the limits of any hardware time constraints? (display refresh, UART)
------------------
12. Should we write separate source files for each hardware component with attached test harnesses before integrating them into a single main.c file?
------------------
13. What contents of the report should I create/outline before I start building/testing the physical system?
------------------
14. What is an example of a full data packet sent via UART?
------------------
15. What is the purpose of the SD card?
------------------
16. From the lab manual on Data Format: "The sender must transmit a packet containing the most recent move by the local player approximately once every 500 milliseconds. The receiver must ignore any duplicate moves or packets with errors (bad player ID, illegal row/column numbers, etc.)."
Would we use a combination of timers and interrupts to send/receive a packet every 500 milliseconds, and how would we test for duplicate moves or packets with errors?
------------------
17. What are some useful functions that I can create or take from the existing C libraries to expedite software creation/testing process?
Thank you for your time.
Sincerely,
Daniel