PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
I want to use the WDT interrupt in wdt counter 0 and WDT reset in wdt counter 1 but after initialize, it will go to infinite loop can't reset.
If I just enable EDT interrupt in wdt counter 0, it will no problem. Below is my config code of the watchdog timer
CySysWdtDisable(CY_SYS_WDT_COUNTER0_MASK);
while (CySysWdtReadEnabledStatus(0));
CySysWdtWriteMode(CY_SYS_WDT_COUNTER0,CY_SYS_WDT_MODE_INT);
CySysWdtWriteMatch(CY_SYS_WDT_COUNTER0,WDT_INTERVAL_1MS); // WDT interval Timer = 1msec in counter 0
CySysWdtWriteClearOnMatch(CY_SYS_WDT_COUNTER0, 1u);
CySysWdtWriteCascade(CY_SYS_WDT_CASCADE_NONE);
//Enable WDT counter 0
CySysWdtEnable(CY_SYS_WDT_COUNTER0_MASK);
CySysWdtWriteMode(CY_SYS_WDT_COUNTER1,CY_SYS_WDT_MODE_INT);
CySysWdtWriteMatch(CY_SYS_WDT_COUNTER1,WDT_1S); // WDT Timer = 1sec in counter 1
CySysWdtWriteClearOnMatch(CY_SYS_WDT_COUNTER1, 1u);
CySysWdtWriteCascade(CY_SYS_WDT_CASCADE_NONE);
//Enable WDT counter 1
CySysWdtEnable(CY_SYS_WDT_COUNTER1_MASK);
// Lock WDT registers
CySysWdtLock();
I'm trying to get a 3x9 touch pad going with a .6mm plastic holding case.
The the touch pad works perfect without any case and the default values. When I add the case and use the touch tuner to change the noise threshold and sensitivity I get what looks like good results on the touch tuner. It detects a finger touch and shows it on the graph. But, when I go back into the touch pad code with the updated parameters the touch pad isn't detecting a touch. There is a CheckIsAnyWidgetActive() call to move the code into a detecting state which gets the current touch pad position, but this is always returning a 0. Therefore, no position measurements are being returned.
I'm confused why I would see a touch position in the tuner graph, but the code isn't detecting the touch pad being active. Is there another parameter that this function call looks at to determine if the the widget is active?
-Brendan
Show LessHi All,
I have a temperature sensor prototype that samples every second and store the data into a memory which has capacity 1 MB. Stored data will then be transmitted by CYBLE-022001-00 module. My question is, how many connection events to deliver all those data? I need the number of connection event in order to calculate power consumption in connection mode.
Thank you.
Best regards,
Daryanto
Show LessHi,
I start scanning with 's' cap entry in example #12 "Central and Peripheral" project. The red led in the kit is on indicating Pioner kit is scanning as Central.
Then, I set my Galaxy S4 smartphone as visible during 2 min. but pioner kit device is not able to detect S4.
Any idea why not detect it ?
Thanks in advance.
Asier.
Show LessHi,
I am using the BlueTooth Pioneer kit with the PSoC 4 board and using the AN92854 application note. I am running the BLE_CapSense project and not getting anything near the current predicted. I do not have an aperture type DVM. I have a 10Ω resistor across J15 and have a scope and the DVM across it. Both reading mV. The DVM averages the current to board and would represent the load seen by a batter. We have capacitors in the CKT to handle the BLE transmissions but the average current with give us ~ battery life.
With the application running (and seen by CySmart) using 4000 ms advertisements, I see about 9.3 mV across the resistor or 0.93 ma. I can see the advertisement current spikes on the scope But the average current is the problem, it is nowhere close to the < 10 µ amp shown in the appnote.
Is this what I should expect for the average current in this application ? On the scope I see the advertisement for about 6.4 ms spaced at 4 second intervals. I has a peak of about 500 mv or 50 mA.
The hardware we want to build with this, we hope to run from a 2032 cell (240 mAh) for 6 months for a year. Am I totally wrong in measuring it this way ?
Thanks for the help.
--jim schimpf
Show LessHello everybody,
I am new to PSOC 4 BLE and to Bluetooth in general and because we will use in the future the products from cypress I want to learn as much as possible. In one of the first test projects that I was working on in order to measure some parameters of the board I hit a problem regarding the ADC Seq. I am not able to put the code here(even if it is a test one) because of copy right issues but I will explain the project and how I conclude that the problem is with the ADC.
At the core the project has the examples from application note AN92584 : http://www.cypress.com/documentation/application-notes/an92584-designing-low-power-and-estimating-battery-life-ble
In the design (.cysch) I have the following: a RTC, a Pin for LED(SW), the ADC SAR and of course the BLE.
The BLE is Peripheral, Server and has a custom service with a big characteristic of 80 char values.
The RTC: is configured to generate an interrupt at every 32 seconds and uses the WCO Low Power and the Timer 2 WDT2.
The ADC SAR: has 4 input pins sets to (P3.0, P3.1, P3.2, P3.3) set as high impendence analog, VRef is internal 1.024 volts, single ended negative set to Vref, free running, Clock frequency 1kHz all using A clcks, INJ is not check as enabled.
The app should to the following: init ADC, and Disable the IRQ for ADC, init RTC; Process BLE events updates the characteristic of BLE and notify, and as a code for the RUN part of AN92584 do the following:
ADC_StartConvert();
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
ADC_StopConvert();
Then read all 4 adc chanels , process the values, and go to Deep sleep if possible(depending on the BLE). Every time the RTC elapses(32s) the above 3 lines of code + the reading of the adc and processing the value are executed.
I have observed that the ADC blocks at IsEndConversion and never exits. Why? I hope you will explain me if what I was doing is ok. It is a best practice to start and stop the ADC after each conversion + disable its interrupts? Are the pins for Analog correct set?
In all the examples that I saw the first 2 lines of code was executed before the infinite loop and then only the get result was called, but I do not need to have the ADC converting all the time but only at 32 s. Should I use the trigger mode and maybe someone can explain how?
I want to mention also that the code was tested without the ADC and it behaves ok, I can read the characteristic(of course I cannot see if it is correctly modified since the adc is not working), it enters correctly the sleep modes. the RTC sends correctly the interrupt at 32 s.
Thank you very much and hopefully I was clear in my text!
Show LessHi,
I have purchased CY8CKIT-040 which comes with color pallete. I am to run LED blink application.
My primary goal is to evaluate Tunner and understand how to play with different tuning parameter. So I am trying the tunner GUI with CY8CKIT_080_CapSense_I2C project. I am able to build the project properly but whenever I start the TUNNER GUI i get error message as "Read Operation failed: Check I2C bus Connection"
I have Checked schematic, the I2C connection is there between processor and PSOC, but still I2C communication is failing. I have gone through old thread with similar problem and made sure to follow them as well.
Please help.
Ultimately, I want to this with my custom board, so thats later goal first to get this working. I have also purchased Kit-Prog.
Thanks
Pankaj
Show LessHi all
I want to know hardware considerations for capsense proximity sensing using only one wire. In datasheet it is given for button , slider etc.
Which parameters i should look for proximity sensing using only one wire. Is there necessity of Cmod Csh_tank Cint for proximity sensing using only one wire
http://www.cypress.com/file/46081/download
i am reffering the above pdf
Show LessDear fellows,
I prepared a beacon style project with a CY8C4247LQI-BL483 with Deep Sleep feature, basically implemented as in AN92584, things were running as expected.
The final version ships on CYBLE-224110 so once I had the material on my desk I upgraded the project as needed and there is a problem with Deep Sleep: it looks like the processor does not wake up correctly after a few cycles. If I prevent the code from going to (deep)sleep things are OK.
As the project is pretty tricky on some aspects I wanted to make sure Deep Sleep was correctly handled so I used the Advertisement sample code from AN92584, changed the target to match my hardware and added a software serial component to log what is going on. Things are not OK as the processor seems to be stuck after some sleep cycles
I attached the project for simplicity sake.
Does somebody see where I am mistaken ?
Thanks a lot for you kind help, sorry for any things I have done wrong in this post as this is my first one.
Maximilien.
Show LessCan we use I2C component in PSoC 4 BLE to scan the I2C-bus for devices? This can be done in Arduino using beginTransmission follows by endTransmission and check for a return value (http://playground.arduino.cc/Main/I2cScanner). Thanks for your help in advance.
Show Less