PSoC™ 5, 3 & 1 Forum Discussions
hello dear colleagues,
i need to have a simple solution for detecting pulses ( f=100Hz width 800µs).
think of a monoflop with retrigger, but do not know how to implement.
must detect the absence of pulses from zerocross detector.
if pulses are detectet, normal operation
if pulses are absent, failure condition ( to be detected with 1-bit status register).
any ideas how to get this done the PSoC way ? (schematic)
Chip:CY8C3866LTI-067
Creator: 2.2
best regards Markus
Show LessI'm trying to find MORE information on the use of naming pins in PSoC1. I've read (& reread) both GPIO Demystified posts as well as AN 2094 - Getting Started with GPIO.
From what I've gathered, if I name a pin (say PB), then I can access the PORT by typing LED_1_Data_ADDR. How do I access just the PIN then to determine if it's high or low?
Right now, if "PB" is at port 1, pin 7, I read that pin by using PRT1DR & 0x80. What would I do if I want to use the name only?
AN 2094 says there's a macro for the pin mask, but doesn't give the command. Where should I look for more information so I can figure this out?
Thanks!
Show LessI am having an issue with programming using the 5-pin SWD interface. The image and device I am using are both "Production" revision of CY8C3866AXI-040. I am able to program using the 10-pin connector with SWD or JTAG with no problem. But when I use the 5-pin connector with SWD, the software detects the device as "ES1" and the image as "ES3," but both are suppose to be "Production."
Is this a software bug with the PSoC Programmer?
Program Finished at 11:54:33 AM |
| Programming Terminated
WARNING!---> | Debug mode enabled, this should be turned off from PSoC Creator before production.
ERROR!---> | The hex file was built for silicon revision ES3, but the acquired device is revision ES1.
| Use PSoC Creator to generate a hex file for the proper device.
Device set to CY8C3866AXI-040 at 11:54:32 AM | 65536 FLASH bytes
Device Family set to CY8C38xx at 11:54:32 AM |
| Automatically Detected Device: CY8C3866AXI-040
Hi Guys,
I'm working about a project but i have small problem. I want to do the child lock. When I pressed capsense button, other buttons will not work. After I pressed button again, other buttons will work. I tried to get a little bit for it, but i didn't get a result. Here is my working file. Thanks for answers.
Show LessHi! I'm trying to transfer example code (CE85976) for CY8C22545-24AXI controller(it uses SmartSense2X) into CY8C20536A-24PVXI controller(it uses general SmartSense). It needed to turn on and off 3 leds with 3 sensors. Use PSoC Designer 5.4.
The compiler tells me, that identifier "SmartSense_bScanComplete" is undeclared. Line editor doesn't know such an identifier at all. May be I can substitute it with something similiar? There is the part of the code:
while(1)
{
if(scanningFlag==SCAN_FIRST_SENSOR)
{
capSensorNo=0 ; // initializing to scan first sensor
SmartSense_ScanSensor(capSensorNo);
scanningFlag= FIRST_SENSOR_SCAN_DONE;
}
else if(scanningFlag == FIRST_SENSOR_SCAN_DONE)
{
if(SmartSense_bScanComplete & SmartSense_SCAN_COMPLETE) //checking for sensor scan is complete
{
SmartSense_bScanComplete &= ~SmartSense_SCAN_COMPLETE ; // clearing the sensor scan complete flag
SmartSense_UpdateSensorBaseline(capSensorNo); // Run baseline filter
SmartSense_bIsSensorActive(capSensorNo); // updating the SmartSense_baSnsOnMask[]
capSensorNo++; // increment to scan next sensor