PSoC™ Creator & Designer Forum Discussions
text.format{('custom.tabs.no.results')}
Do any of you guys use GitHub for your PSoC Creator 3 workspace projects? What do you guys use in your .gitignore file? What files are neccissary and what are not? Not sure if I should ignore the /Generated_Source folder.
I'm currently considering using the below for my .gitignore:
Show Less.DS_Store*.cywrk.**.cyprj.**.cycdx*.cyfit*.rpt*.uvopt*.uvproj*_timing.html*.cydsn/codegentemp*.cydsn/DP8051*.cydsn/Generated_Source
Just getting started with the PSoC5LP (although I have used other devices for many years) and I'm not sure the best way to implement a state machine inside my ISR.
The situation is that I have a UART that is talking to a WiFi device that transfers 'packets' in each direction between the processor and the device. I want to set up a state machine (on the Rx side) that looks for the start of a packet, builds the packet (taking into account 'escape' values etc.) and sets a flag (for now) to indicate a packet has been received.
As the ISR code is the only thing that needs to know about the state values, buffers etc. with a couple of access functions, I would normally declare these things at the top of the ISR C file. As the ISR code is re-written by the IDE, I can see where I should put the definitions so they are maintained across the new versions. However I want to be able to initialise the state machine and typically that code whould go into the xx_ISR_Start() or xxx_ISR_Enable() functions but they do not have the code protection mechanisms in them.
The alternative is to add my own 'init' function but I cannot see how to add the declaration into the ".h" file as, again, there do not seem to be any of the code protection markers. (I could use 'extern' declarations but I think they are ugly in that I could update the header/c files and forget to update the 'extern' declaractions.)
What is the way this is supopsed to be done?
Thanks
Susan
Show LessI'm just starting out tinkering with my first PSoC project and playing with (what I'm hoping to be) the easy version of programmable logic.
Anyway, comping from a software development background I'm used to rapid edit-compile-debug cycles and tend to get frustrated when running a basic test takes more than ten seconds. Unfortunately in PSoC Creator my simple of introductory tests using a small fraction of the available resources takes several minutes to build, and the graphical designer frequently freezes up for three second stretches.
Basically I'm not certain whether this is normal or whether it is an issue with my particular installation, and I'm a little concerned about how things will scale once my design starts to grow.
Are there any options available which I ought to fiddle with? Perhaps enabling parallel/progressive builds, tweaking cache sizes/garbage collection rate or reducing the number of optimization passes for my small and slowly-clocked debug build?
Alternatively is it time to bite-the-bullet and get used to a new type of workflow and/or get myself a more up-to-date computer?
Show LessHey guys I'm working on my project with capsense & in that I wish to have different sensitivity for each snsor I use. Like I mean
- BTN1 can sense my finger without phisical touch (1mm/2mm away from BTN)
- BTN2 can sense my fingerwhen I just touch it
- BTN3 can sense my finger after the delay of 1sec & likwise.
Also I wish to try n give some sensors as a pre-requisite for another sensors, can I do that?
- untill my BTN1 is ON BTN3 will not be turned ON & likewise.
If I can then how is that? Thanks.
Regards-
Amit
Show LessIn my design have three 8 bit DACs but I need 10bit, so I decided to use the new DVDAC component.
But in my design I have only 1 free digital clock divider.
Resource Type : Used : Free : Max : % Used
============================================================
Digital clock dividers : 7 : 1 : 8 : 87.50%
So I changed one 8 bit DAC with one 10 bit DVDAC with INTERNAL CLOCK, the compilation works and now I have zero digital clock divider free:
Resource Type : Used : Free : Max : % Used
============================================================
Digital clock dividers : 8 : 0 : 8 : 100.00%
It is OK!
But if I switch the DVDAC component to EXTERNAL CLOCK, putting a clock component to supply externally the 250kHz the IDE gives me an error:
"Clock Error: (There are too many new digital clocks used in the current design. The selected device only supports '8' new digital clocks but '9' have been used.)"
And, if I put three DVDAC with the SAME EXTERNAL CLOCK, the Creator 3.0 SP" gives me the error:
"Clock Error: (There are too many new digital clocks used in the current design. The selected device only supports '8' new digital clocks but '11' have been used.)."
I think that I'm using only 8 digital clocks, because I use the same external clock for the three DVDACs.
So I think that Creator 3.0 SP2, in the case of DVDAC component, calculates in a wrong way the number of clock dividers.
It is possible to verify and eventually fix this problem?
Thanks a lot for your collaboration
Graziano G. Ravizza
Show LessI have just installed Designer 5.4 and tried to open a project given to me by someone else which has part CY8CTST242. The project will not open. When I open a new project and look for the part, it is not in the list. Are there files available which can be added to the 5.4 install to allow this part to be used?
Show LessHi to all, can anyone tell me why to use the external resistors (one of the PSoC's pin is assigned for that)?
on what base does that pin is chosen & how does its presence or absence affects the operations.
Thanks & Regards-
Amit
Hello everyone
I'm doing a project where i want to communicate with a I2C device but i'm having problems.
I still very new to the psoc creator and psoc4 board, so maybe it's just a small thing.
The I2C sensor is a light to digital converter and the datesheet is here:
dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/LightImaging/TSL2561.pdf
There is even a hook up guide for the device, sadly it's for arduino.
learn.sparkfun.com/tutorials/tsl2561-luminosity-sensor-hookup-guide
So the first thing i have done is connected the sensor with 3,3V/GND and SDA and SCL
In PSoC creator i have made a I2C component made is as master and last wrote a main file (attached in this topic).
But here does all the fun stops. As i read in the datasheet the I2C adress is 0x39
and the first thing i do is using the function mastersendstart, but nothing happends if i look at the oscilloscop
I then found out that the device is in a power-down state during startup and i have to write something special to wake it up
"After applying VDD, the device will initially be in the power-down state. To operate the device, issue a command to access the CONTROL register followed by the data value 03h to power up the device. At this point, both ADC channels will begin a conversion at the default integration time of 400 ms. After 400 ms, the conversion results will be available in the DATA0 and DATA1 registers. Use the following pseudo code to read the data registers:"
As i read, i have to send the value 0x03 and a command to acess the contral register, but what command is that? Do i have send these to the device before the mastersendstart and what command should i use?
How do I acess the Data0 and Data1 register with a psoc?
I really need some help 🙂
Show Less