PSoC™ 4 Forum Discussions
I have multiple custom characteristics in a custom service. We will provide the user with a password that they will enter via a phone app. What is the best way to secure characteristics and make them available via a password?
Thank you
Rich
Show LessThis may have been solved before but I was unable to find the info. Here's my solution:
In trying to create a "soft switch" I connected a SPST pushbutton to a digital input pin and triggered a one shot timer with an interrupt on terminal count. The timer was set for four seconds which means the PB had to be held for four seconds before the switch would be recognized and turn on and LED (used for testing). However, I also wanted to turn it off by holding the same PB for another 4 seconds (after the PB had been released). Turning it on worked fine but it wouldn't turn off. The problem is that the one-shot timer is REALLY one shot, meaning it will only work once after the program has been started. It couldn't be reset from any API. The only way to get it to work again was to restart the program.
The solution was as simple as it could possibly be, though it took me a long time to figure it out. I simply changed the timer's run mode to Continuous instead of One-Shot, then stopped the timer in the ISR. The APIs work when the Continuous Mode is selected.
Show LessHi all,
I am trying out the Day026_HRM_DataLogger project, PSoC Creator shows Build Succeeded, but when I look at header file fram_logging.h, I see 3 errors about unknown type name uint8. But, it desn't show any errors in the Notice List. And it doesn't show in the fram_logging.c file. Has anyone seen this problem?
Show LessWhere do I find the Cypress vendor specific HCI documentation?
Hi
I am trying to read an analog signal with the SAR ADC. In the components (Analog), I plug in the analog signal wire directly to the + input of SAR ADC and use (Vss) as - input.
I am uisng external VRef (2.000 V) in the config parameter.
I am definite that I am getting analog signal from my sensor. However, my ADC reading is some random noise between 1430 - 1450.
I am using these commands:
void init()
{ADC_Start();}
void readADC()
{
ADC_StartConvert();
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
val = ADC_GetResult16(0);}
Please help me out if I am missing some commands.
Thanks
Chandra
Show Lessthe inputs of OPamps(CTBm block) in analog blocks usually is P1(*), P2(*), unfornately our PCB layouts at P3(7).TRM and other documents shows the inputs can also be AMUXBUS A or B, then connects to 3(7). How to configure it?
Always have analog routing error during the compiling.
Show Lesshi,
i have been working on Temperature Transmitter. its need very low power . so i am using Psoc-4 which has low power mode.
its work fine with RTD ..its consume only 3.2mA for full operation.
Now i also want to sense thermocouple(J-K). For use thermocouple i need amplify the signal with two opamp configuration. because SAR adc cant directly read. so i put two opamp.so right now my power consumpation is 5.5 mA which is not good for Temperature Transmitter(4-20mA). i have to make it below 3.5mA.
so how can i do it??
and
is that opamp of psoc-4 consume 1mA for its operation??
Show LessHi,
I would like to extract the HEX file that can be flashed with PSoC programmer from the generated ELF file.
Is cyelftool.exe the tool to do it?
Show LessHere is a solution to driving a 1/4 Mux from a Control Register without having to use a BUS.
There are many times in which we need to drive a mux's select input without using BUS because we want to gain access to any single bit to drive other logic. That is not possible when using BUS.
If anybody knows how to make the Mux/Dmux select inputs accept NonBus signals (ie multiple single bits) please point us in the direction of the solution. Presently we are using the below 1/4 emulation by gluing together three 1/2 Muxs. This works but it is busy and it probably wastes resources in the PSOC4.
We are having problems pasting in Schematic using FireFox ....so we have attached schematic as well.
Show LessHello,
witch is the best way to scan multiple Channel with PSoC4 4200L with Multiplexer and ADC_SAR (see picture)? With DMA?
I need a continius anf fast Scan of all 14 Channels.
Any Code Samples available?
Regards,
Michael
Show Less