Examples - Renesas DA9213 User Manual

Performance boards
Table of Contents

Advertisement

UM-PM-029
DA9213, DA9214, and DA9215 Performance
Boards
C.2

Examples

//Test DA9214
//17.03.2017
//Read registers in 2 ways
//See the equivalent results
//Read from register 0xD1 n_BUCK1_CONF_A
//for the next 10 registers
READ2 n_BUCK1_CONF_A 10
READ2 0xD1 10
//Change value of register n_BUCK1_CONF_A
WRITE2 n_BUCK1_CONF_A FF
//Read back the new configured value
READ2 n_BUCK1_CONF_A 1
//Configure the GPIO2 as output port
//Note the "_N" identifying the slave
PORTDIR GPIO2_N 1
//Set the level of GPIO2 low
PORT GPIO2_N 0
//Read back the voltage at GPIO2
PORTREAD GPIO2_N
//Set the level of GPIO2 high
PORT GPIO2_N 1
//Read back the voltage at GPIO2
PORTREAD GPIO2_N
The results are displayed in the history log, which can be viewed by selecting Setting, History Log.
User Manual
Revision 2.0
25-Feb-2022
CFR0012
34 of 37
© 2022 Renesas Electronics

Advertisement

Table of Contents
loading

This manual is also suitable for:

Da9214Da9215

Table of Contents