beautypg.com

Chapter 6. user circuitry, Switches, Leds – Renesas RSKM16C6NK User Manual

Page 9: Potentiometer

background image

Chapter 6. User Circuitry

6.1. Switches

There are four switches located on the RSK. The function of each switch and its connection are shown in Table 6-1.

Switch

Function

Microcontroller

RES

When pressed the RSK microcontroller is reset.

RESn

SW1/BOOT* Connects to an IRQ input for user controls.

The switch is also used in conjunction with the RES switch to place

the device in BOOT mode when not using the E8a module.

INT0 Pin18

(Port 8, pin 2)

SW2*

Connects to an IRQ line for user controls.

INT1 Pin17

(Port 8, pin 3)

SW3*

Connects to the ADC trigger input. Option link allows connection to

IRQ line. The option is a pair of 0R links.

ADTRG Pin 98

(Port 9, pin 7)

OR

INT2 Pin16

(Port 8, pin 4)

Table 6-1: Switch Functions

*Refer to schematic for detailed connectivity information.

6.2. LEDs

There are six LEDs on the RSK board. The green ‘POWER’ LED lights when the board is powered. The orange BOOT LED indicates the

device is in BOOT mode when lit. The four user LEDs are connected to an IO port and will light when their corresponding port pin is set low.

Table 6-2, below, shows the LED pin references and their corresponding microcontroller port pin connections.

LED Reference (As shown

on silkscreen)

Microcontroller Port Pin function

Microcontroller Pin Number

LED0 Port

4.0

52

LED1 Port

4.1

51

LED2 Port

4.2

50

LED3 Port

4.3

49

Table 6-2: LED Port

6.3. Potentiometer

A single turn potentiometer is connected to AN0.0 (P10.0) of the microcontroller. This may be used to vary the input analogue voltage value

to this pin between AVCC and Ground.

7