The RL78/G15 Fast Prototyping Board has 12 Digital input pins and 11 Digital output pins.
When using digital IO, pinMode() must first be called to set the specified pin to operate as an input or output.
Using pin3 as an input.
pinMode(3,INPUT);
val=digitalRead(3);
Using pin4 as an output.
pinMode(4,OUTPUT);
digitailWrite(4,HIGH);
The pins corresponding to digital I/O are as follows.
Digital input pin
Digital output pin
memo
0-4, 7, 13-16, 18, 19
0, 1, 3, 4, 7, 13-16, 18, 19
-
2-2. Analog IO(Analog Input)
The RL78/G15 Fast Prototyping Board has 3 analog input pins.
Analog input signals are A/D converted and the resulting digital values are returned.
To use analog input, use analogRead() to specify the analog pin name and read the data.
analogReference(INTERNAL) and analogReference(EXTERNAL) is not supported.
Use A0 pin
val=analogRead(A0);
The pins corresponding to analog input are as follows.
Analog input pin
memo
A0, A1, A2
-
2-3. PWM
The RL78/G15 Fast Prototyping Board has 1 PWM output pin.
To use PWM output, use analogWrite() to specify the pin name and duty, and generate PWM output.
To change the PWM output pulse frequency, use analogWriteFrequency() to set the frequency, then use analogWrite() to generate PWM output.
The range of frequencies that can be set with analogWriteFrequency() is 500 Hz to 8 MHz, and analogWrite() cannot control the duty ratio in detail at high frequencies.
The pin corresponding to PWM output are as follows.
PWM output pin
memo
3
-
2-4. Serial(UART)
The RL78/G15 Fast Prototyping Board has 1 serial (UART) channel.
The default transmit buffer size when using each channel is 32 bytes.
The default receive buffer size when using each channel is 32 bytes.
The pin assignments of the channels are as follows.
Channel
Transmit pin
Receive pin
memo
Serial
-(P00)
-(P01)
Connect to Micro USB port via USB-Serial Converter when J14 is open-circuit
2-5. Wire(I2C)
The RL78/G15 Fast Prototyping Board has 1 wire (I2C) channel.
The pin assignments of the channels are as follows.
Channel
Data pin
Clock pin
memo
Wire
19(SDA)
18(SCL)
-
2-6. Interrupt
The RL78/G15 Fast Prototyping Board has 3 external interrupt pins.
The correspondences between external interrupt numbers and pins are as follows.
Interrupt No.
Interrupt pin
memo
0
0
-
1
2(SW)
-
2
3
-
2-7. Tone
The RL78/G15 Fast Prototyping Board has 3 tone output pins.
The range of frequencies that can be set with Tone() is from 500 Hz to 65535 Hz.
The correspondences between tone outputs and pins are as follows.
Tone output pin
memo
0, 3, 13
-
2-8. PulseIn
The RL78/G15 Fast Prototyping Board has 1 pulse input pin corresponding to pulseIn().
The default time before timeout is 65535 us and can be set from 2 us to 65535 us.
Measurable pulse length is 1 us to 131072 us.
Pulse measurement is not available when interrupt processing is disabled.
The pin corresponding to pulseIn() are as follows.
Pulse input pin
memo
3
-
2-9. ShiftIn
The RL78/G15 Fast Prototyping Board has 11 clock output pins and 12 data input pins corresponding to shiftIn().
The pins corresponding to shiftIn() are as follows.
Clock pin
Data pin
memo
0, 1, 3, 4, 7, 13-16, 18, 19
0-4, 7, 13-16, 18, 19
-
2-10. ShiftOut
The RL78/G15 Fast Prototyping Board has 11 clock output pins and 11 data output pins corresponding to shiftOut() and shiftOutEx().
The pins corresponding to shiftOut() and shiftOutEx() are as follows.
Clock pin
Data pin
memo
0, 1, 3, 4, 7, 13-16, 18, 19
0, 1, 3, 4, 7, 13-16, 18, 19
-
2-11. LED
The RL78/G15 Fast Prototyping Board has two LEDs mounted on it.
The pins connected to the LEDs are as follows.
Name
pin
memo
LED1
7
-
LED2
4
-
2-12. User Switch
The RL78/G15 Fast Prototyping Board has one user switch.
The pin connected to the user switch is as follows.