PSoC™ Creator & Designer Forum Discussions
Is there a way to modify an imported CapSense component to include new variables within the CapSense_Structure.h CapSense_RAM_SNS_STRUCT? The imported CapSense component has a `$RamWidgetStruct` macro I cannot find. I also browsed the CapSense component before exporting it without success. I am relatively new to PSoC, and I have no experience with component authoring.
I have a single CapSensor application running on a CY8C4014LQI-421. I would like to make changes to the component code. I have already exported & imported the CapSense_P5_v5 _0 component into my project (V6.0 is not in CyComponentLibary). When modifications are needed, I alter the code within the Workspace Explorer Components tab. This is per http://www.cypress.com/knowledge-base-article/avoiding-changes-source-file-get-overwritten-psoc-creator
Show LessHello Cypress
I am using a Timer Counter with a clock of 1 MHz. My frequency is 20 Hz (50,000 counts). When its unitl a value it trigger an output and after it needs to change the output again. But what it is happening is that is not restarting again and Ive programmed it as continous. My interrupt is trigger just once.
here is my code of initalizing the timer:
Cy_SysInt_Init(&Triger_ISR_cfg,&TimerTreatmentInterruptHandler);
NVIC_EnableIRQ(Triger_ISR_cfg.intrSrc); /* Enable the core interrupt */
__enable_irq(); /* Enable global interrupts. */
/* Start the TCPWM component in timer/counter mode. The return value of the
* function indicates whether the arguments are valid or not. It is not used
* here for simplicity.
*/
(void)Cy_TCPWM_Counter_Init(Counter_1_HW, Counter_1_CNT_NUM, &Counter_1_config);
Cy_TCPWM_Enable_Multiple(Counter_1_HW, Counter_1_CNT_MASK); /* Enable the counter instance */
/* Set the timer period in milliseconds. To count N cycles, period should be
* set to N-1.
*/
Cy_TCPWM_Counter_SetPeriod(Counter_1_HW, Counter_1_CNT_NUM, cycleTime - 1);
Cy_TCPWM_TriggerStart(Counter_1_HW, Counter_1_CNT_MASK);
the interrupt function code:
o++;
DBG_PRINTF("Enter how many time %x\r\n", o);
/* Clear the terminal count interrupt */
Cy_TCPWM_ClearInterrupt(Counter_1_HW, Counter_1_CNT_NUM, CY_TCPWM_INT_ON_TC);
/* Toggle the LED */
if (triggerValue == TRIGGER_LOW)
{
DBG_PRINTF("TriggerValue %x \r\n", triggerValue);
triggerValue = TRIGGER_HIGH;
Counter_1_SetCounter(dutyCycleOn);
}
else
{
DBG_PRINTF("TriggerValue %x \r\n", triggerValue);
triggerValue = TRIGGER_LOW;
Counter_1_SetCounter(dutyCycleOff);
}
if (treatmentActive == ON)
{
Trigger_Write(triggerValue);
cycleCounter++;
if (cycleCounter >= 2* onCycles){
treatmentActive = OFF;
cycleCounter = 0;
DBG_PRINTF("Treatment finsih at: ");
CtsPrintCurrentTime();
DBG_PRINTF("\r\n");
}
else if (cycleCounter == 1)
{
blickControl = ON;
}
if ( blickControl == ON)
{
Treatment_On_INV();
CyDelay(100);
}
else
{
Treatment_On_Write(LED_OFF);
}
}
else
{
Trigger_Write(TRIGGER_LOW);
Counter_1_SetCounter(0);
treatmentActive = ON;
blickControl = OFF;
}
there is a method to restart the Timer?
Show LessI am having some trouble with the SPI SCB.
I have a chip which my PSoC4 is using SPI to talk to. I am in the middle of developing the SPI interface code, so I'm using a scope to instrument the SPI signals to aid in my development. The SCLK, MISO, and MOSI lines are all available on an inter-board connector, so I can connect to those easily.
However, the SS line is buried on the board, and rather than trying to attach a tiny wire, I figured I could just duplicate the SS signal out of an available GPIO pin that runs out to my connector. However, when I do that, the signal doesn't seem to get duplicated. The SS line is toggling, but the duplicate remains high, or vice versa.
My PSoC schematic has the SPI module display the pins, and I've wired up the SCLK, MISO, and MOSI lines. I have the SS line running to both the "real" SS line for the chip and another digital output pin wired in parallel with it. But only one of them ever toggles.
Why is that? How can I fix that?
Show LessI have a computer that is off our internet because we are running software that has not been risk validated. I cannot find a process to update the PSoC Creator and Programmer software on it. I am still relying on the distribution software on the CD that came with the kit.
thanks!
Show LessHey y'all,
Just picked up a CY8CKIT-059 and I've been messing around with it for a bit now. Every time I want to test my design, I have to program the device and then test externally. I would like to make a counter now, and have the count show up on an LCD screen. Problem is, I don't have an actual LCD screen handy for testing. Is it at all possible to just run the design in some kind of simulator to see if it would work or not? Thanks.
Show LessIs there a way to get a listing of all the errors and warnings shown in the code editor?
The project still compiles, and these do not show up in the Notice List, but I think they mess up the code editor's features so that it can't find things, etc. and sometimes those warnings are important, or clues to a more serious bug.
Examples:
Show Less
Following the installation of PSoc Creator 4.2, I have an error when I try to program the target:
Error: dbg.M0023: There was an error while programming the device: failed to reacquire the device
I use MiniProg3 Ver 3.05 which worked very well with PSoc Creator 4.1.
If I use the PSoC Programmer 3.28.4 program directly, the programming is done correctly.
In PSoC Creator access to the Select menu and its sub-menus is very long, see requires stopping the program by the Windows task manager?
I'm working under Windows 7 Pro SP1.
What can be done to make the programmer work under PSoc Creator 4.2?
Show LessHello everyone, I need help because I am currently doing a PLC system with a data transmission in SMBus (a Slave module and a master module). Unfortunately, I can't find a module on PSoC designer allowing me to manage this communication protocol. I found an example with a SMBus Slave, but it is not compatible with my microcontroller. So my questions are:
- Is it possible to use SMBus modules with a CY8CPLC20-48LTXI?
- If so, are there any examples that I can take back knowing that I am not very strong in programming?
Thank you in advance for your response.
Show LessDear Sir,
I installed PSoC Creator 4.2 IDE on my new notebook,
Environment:
PSoC Creator 4.2 (4.2.0.641)
Culture: English (United States)
OS Version: Microsoft Windows NT 10.0.17134.0
CLR Version: 4.0.30319.42000
Installed CyInstaller Products:
CMSIS-DAP Driver V17
CySmart 1.3
Peripheral Driver Library 3.0.1
Peripheral Driver Library 3.0.3
Peripheral Driver Library 3.0.4
Peripheral Driver Library 3.1.0
PSoC Programmer 3.27.3
PSoC Creator 4.2
Loading any PSoC6 example project, build/run is normal, but when trying to modify the clock configuration (Design Wide Resources->Clocks) failed.
Likes the picture above, default FLL is 100M, i modified to 50M then clicked "OK" button and close the window, nothing(FLL, Clk_HF0 etc.) was changed. Re-open this Edit Clock window, the FLL is still 100M. And i found all the options (both Source Clocks page, FLL/PLL page, High Frequency Clocks page, Miscellaneous Clocks page) cannot be modified. Other items in DWS such as Pins, Interrupts, System etc. are normal!
I have tried to re-install the Creator tool several times, but the problem was the same.
Show LessI still have a batch of CY8C5868AXI-LP032 but when we upgraded our Creator package to 4, this chip was no longer supported. Can we get an older version of Creator so we can use up our batch of processors? I haven't been able to find a download of Creator 3 anywhere. Can anyone help.
Show Less