Hi,
Is there have any example code for the capacitive touch?
I have try to run the CTSU examples function but it is not working well
Hello Ambrose,
Which code examples did you try?
In the RL78/G16 page there are several code examples which you can try:
https://www.renesas.com/us/en/document/scd/rl78g16-capacitive-touch-evaluation-system-sample-code-rev100?r=25428046
https://www.renesas.com/us/en/document/scd/rl78-family-touch-module-software-integration-system-rev140-sample-code?r=25428046
https://www.renesas.com/us/en/document/scd/rl78-family-using-qe-standalone-ver-develop-touch-applications-fpb-board-rev100?r=25428046
https://www.renesas.com/us/en/document/scd/rl78-family-ctsu-module-software-integration-system-rev140-sample-code?r=25428046
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
I am using the FPB RL78/G16 board. I only want to test is the touch button on CAP1 and CAP2 is working. In addition, if there have a example code for CAP3-5 that will be great.
Disable them, generate code and try again.
I can build it. But is setting required to run the turning?
You can run tuning with 2 ways: UART or debugger.
If you have a debugger connected disable UART and run tuning with the debugger.
So how to run it in debugger?
Do you have a debugger connected ? If yes just follow the process on the videos.
I have connected the USB C only. I think it got debugger inside itself? Or you mean I mus use the e2 emulator?
If you are using the Fast Prototyping Board, you should select tuning via emulator.
Please follow this guide on the QE for RL78:
www.renesas.com/.../rl78-family-using-qe-and-sis-develop-capacitive-touch-applications
I have followed it few hours ago and I have a difficulties on setting the clock frequency. Are they should be 16MHz max? What is the baud rate should be and what pin I should use for UART? (I think that should be P00 and P01 am I right?)
I think section 8 explains the serial connection in detail.
Since I am using the RL78/G16 and the example is RL78/G23. I want some confirmation that I am setting it correctly.