beautypg.com

Sw1~sw16: key pad, Sw17: power, Reset1: reset – Solvline Eddy DK User Manual

Page 32

background image

Eddy DK Programmer Guide

32

2.4.2.6. SW1~SW16: Key Pad

Key Pad of DK board are consisted with the 4x4 matrix. GPIOs are set to Input mode to read the Key value. and Key

2, 4, 6, 8 also have the ▲(UP), ▼(DN), ◀(LEFT), ▶(RIGHT) direction function for LCD menu.

P10-P17

4x4 Key matrix

I/O

PB20

First Row line

IN

PB21

Second Row line

IN

PB30

Third Row line

IN

PB31

Forth Row line

IN

PC20

First Column line from left

IN

PC21

Second Column line from left

IN

PC22

Third Column line from left

IN

PC23

Fourth Column line from left

IN

2.4.2.7. SW17: Power

In order to power up, pull up this switch.

2.4.2.8. Reset1: Reset

Pin name

Function

Discription

I/O

PC16

nRESET

Polling Input signal continually from External Reset

key, implement as below with checking the constant

time of "Low."

Less than 5 seconds: General reset function.

More than 5 seconds: Factory Default function.

IN