PSoC 1 SmartSense_EMC and SmartSense_EMCplus Module Initialization Special Point – KBA222962
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Version: **
Translation - Japanese: PSoC 1 SmartSense_EMCおよびSmartSense_EMCplusモジュール初期化特別ポイント- KBA222962 - Community Translated (JA)
Question:
When I use the SmartSense_EMCplus module together with a custom Rawdata Filter, the sensor gets stuck always.
Answer:
In PSoC® 1 CapSense® modules, sensor rawdata and baseline are always stored in waSnsResult[] and waSnsBaseline[] arrays. In general, both these arrays are updated after the InitializeBaselines() API is executed, but this is not true for SmartSense_EMC and SmartSense_EMCplus modules.
In SmartSense_EMC and SmartSense_EMCplus modules, waSnsResult[] remains in an unassigned state until ScanSensor() (or ScanAllSensors()) functions are executed. Therefore, if you use a custom filter in your project, execute ScanSensor() (or ScanAllSensors()) functions once before initializing the filter.
Correct code template is as follows:
/****************************************/
M8C_EnableGInt;
CapSense_Start();
CapSense_InitializeBaselines();
CapSense_ScanAllSensors();
Filter_Init(); // Initialize customize filter
……
/****************************************/
- Tags:
- [psoc1
- api
- cy7c69xxx
- cy8c20055
- cy8c20075
- cy8c20246as
- cy8c20346as
- cy8c20446as
- cy8c20466as
- cy8c20646as
- cy8c20666as
- cy8c20xx7s
- cyrf89435
- cyrf89535
- filter
- initialization
- smartsense
- smartsense_emc
- smartsense_emcplus