- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a doubt with bridge control panel code for EZI2C slave. I made a code it is collecting data but not the correct data from the cypress. example the raw count it shows is not same as the raw count in the tuner graph. I have attached the code , readings and graph.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SuKa_4300241,
You can trying to read the CapSense_dsRam data structure that is exposed to the EZI2C buffer.
You need to use the register map (CapSense component -> Export Register map as PDF). In PDF you will find the offset for each of the CapSense data. For example, in the project you shared the offset for raw counts is 0x36
So the BCP command is :
w 08 00 36 p
r 08 @0Raw0 @1Raw0 p
Chart output:
Table output:
Also to read the other Capsense data you need to use the corresponding offsets as given in the register map.
Let us know if this solves your issue.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SuKa_4300241,
Can you please send us the PSoC Creator project file used to test this?
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SuKa_4300241,
You can trying to read the CapSense_dsRam data structure that is exposed to the EZI2C buffer.
You need to use the register map (CapSense component -> Export Register map as PDF). In PDF you will find the offset for each of the CapSense data. For example, in the project you shared the offset for raw counts is 0x36
So the BCP command is :
w 08 00 36 p
r 08 @0Raw0 @1Raw0 p
Chart output:
Table output:
Also to read the other Capsense data you need to use the corresponding offsets as given in the register map.
Let us know if this solves your issue.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Thank you. I got it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI
Can you please send the code of bridge control panel to find the
Base line,Signal, IdacMod, Idaccomp, modulator clk, senseclk, finger th, noise th , neg noise th, hysterisis, debounce, lowbaselinereset, prox touch thershold, parasitic capacitance,sensce clk source.
the project file was shared on before email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SuKa_4300241,
Since you have a EZI2C connection, can you use a Tuner instead of reading separate packets in BCP if this is for debugging?
Please refer to the CapSense Component datasheet section Tuning Quick Start with EzI2C on how to set up a Tuner to read CapSense data using EZI2C.
Every CapSense data resides in specific offsets that are shown in the Register map.
I've highlighted the parameters that you want to display in the below image.
w 08 <16 bit offset> @Variable
For example to read MOD CSD Clock (Size 1 byte)
w 08 00 20 @SenseClock
To read Finger threshold (Size 2 bytes):
w 08 00 28 @0FingerThresh @1FingerThresh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bargadeesh
You mean that i have to type 'w 08 <16 bit offset> @Variable' for every variable repeatedly. I mean like
'w 08 <16 bit offset> @1Variable1 @0Variable w 08 <16 bit offset> @Variable2 '
or can i write in a single line code with all variables like 'w 08 <16 bit offset> @1Variable1 @0Variable @Variable2 '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In that case, you can use the following article How to Output PSoC 4 CapSense Data Through EZI2C - KBA224576.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
It is confusing that cant i get the data from EZI2C to bridge control panel with out I2c ?
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SuKa_4300241,
Please find the attached PSoC Creator project file, variable settings file and BCP script file and the BCP script.
To load the variable settings:
1. Open BCP.
2.Chart -> Variable settings
3. Load -> .ini file
To load BCP script ;
1. Open BCP
2. File -> Open File -> .iic file
EZI2C is a hardware block in PSoC device that works on I2C protocol.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bargadeesh
Thanks for the help. I got it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content