beautypg.com

Chapter 6. user circuitry, Switches, Leds – Renesas SH2/7137 User Manual

Page 11: Potentiometer, Serial port

background image

Chapter 6. User Circuitry

6.1. Switches

There are four switches located on the CPU board. 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, Pin 70(*)

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 E10A debugger.

IRQ0, Pin 46

(Port B pin 2)

SW2*

Connects to an IRQ line for user controls.

IRQ1, Pin 45

(Port B, pin 3)

SW3*

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

The option is a pair of 0R links. For more details on option links, please refer

to Sec 6.6.

IRQ2, Pin 44

(Port B, 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)

Colour

Microcontroller Port Pin Microcontroller

Pin Number

LED0

Green

Port D0

40

LED1 Orange

Port

D1 38

LED2 Red

Port

D2 37

LED3 Red

Port

D3 35

Table 6-2: LED Port

6.3. Potentiometer

A single turn potentiometer is connected to channel AN8 (PF8) of the microcontroller. This may be used to vary the input analogue voltage

value to this pin between AVCC and Ground.

6.4. Serial port

Serial port SCI2 is connected to the standard RS232 header. Serial port SCI0 can optionally be connected to the RS232 header. The

connections to be fitted are listed in the Table 6-3.

9