Hi, I just did the "create blinky project (e² studio)" with the Renesas Video.How can I get the same result with writing into registers?I use the S7G2.
Here are some useful macros for direct pin access.
//------------------------------------------------------------------------------// Direct pin access for Synergy://----------------------------------…
You're gonna have to download and resd the UM for your chip family(S3, 5, or 7). When the project was created, someone decided what pin the LED was on. The configuator generated code that sets that pin to an output direction with an initial setting to either high or low and the drive strength. When you toggle, that set the values to either high or low.
If you're just curious, step through the toggle code in asm mode. You'll see the register address and value written to it.
Good luck,
Larry
Hello Larry, thank you. But what do you mean with UM? I went through the S7G2 Microcontroller Group Datasheet but did not find about pin control registers. Is there another resource where I can look? Thank you for the tip with the asm mode
The User Manual for the S7G2 processor group. That describes all the functions of chip.
I looked at the User Manual for SK-S7G2 and it does not seem to be there.
Sk-s7g2 is a dev board with a s7g2 processor and it has a manual for the board. You want S7G2 Microcontroller Group User's Manual.
Here is the link to the S7G2 hardware user manual
https://www.renesas.com/eu/en/document/man/s7g2-microcontroller-group-users-manual?language=en
Refer to the I/O ports section
You can use either the PCNTR1 registers or PCNTR3 registers for controlling the level of a port pin
Good you found it so easily!
I know but the only thing I find when searching for it is a Starter Kit SK-S7G2 User’s Manual v1 Oct. 2015 with 29 pages. And the S7G2 Microcontroller Group Datasheet v1.4 Aug 2018.No Group Users Manual. Just to be sure, are we talking about this one or another?
Did you see my previous response?
A link to the Hardware User Manual was provided
But again:
You made it too easy and see what you got.