An error message in the example code(CE210291_CapSense_P4_One_Button)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Tim_Shih
Level 5
Level 5
250 sign-ins 50 replies posted 50 questions asked

Dear Receiver,

I use built-in example code ( CE210291_CapSense_P4_One_Button02  ) in the PSoC Creator 4.4.

I didn't modified anything but I met a compiler error as shown in the attached file.

What's the meaning of modulation clock ?!

I re-config this parameter to 12000kHz and compiler ok.

Why default setting (24000kHz) is wrong ?!

Thank you so much.  

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I downloaded that CE and observed the same error.

Then I skimmed the datasheet of the CapSense component,

and there was the following description.

PSoC 4100/PSoC 4200: 2400 kHz or HFCLK/2, which ever is lower.

And in this case HFCLK is 24MHz, so the HFCLK/2 is 12MHz and lower.

002-Modulator_clock_frequency.JPG

moto

View solution in original post

1 Reply
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I downloaded that CE and observed the same error.

Then I skimmed the datasheet of the CapSense component,

and there was the following description.

PSoC 4100/PSoC 4200: 2400 kHz or HFCLK/2, which ever is lower.

And in this case HFCLK is 24MHz, so the HFCLK/2 is 12MHz and lower.

002-Modulator_clock_frequency.JPG

moto