Файл: Embedded system development and labs for ARM (R. Muresan, 2005).pdf

ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 13.06.2025

Просмотров: 2336

Скачиваний: 4

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

Embedded Systems Development and Labs; The English Edition

small (about several hundred ohms), a low level is gained at EXINT2, which generates an interrupt signal to the MCU. The MCU causes Q2, Q4 to be opened and Q1, Q3 to be closed through controlling I/O ports. AIN1 reads X-axis coordinates, then closes Q2, Q4, and causes Q1, Q3 to pass. AIN0 reads Y-axis coordinates. When the system reaches the coordinate value, Q4, Q2, Q3 are closed, Q1 is opened and the system returns to its original state and waits for the next touch. TSP occupies 44B0X external interrup-EXINT2, as well as 4 general I/O port (PE4-PE7).

VDD

PE5

Q3

VDD

AIN1

PE4

TSPX+

Q4

AIN0

TSPY+

TSPY-

EXINT2

PE7

Q1

R

TSPX-

PE6

Q2

VDD

Figure 2-22 TSP Circuit Module

12. 4x4 Keyboard Circuit

As shown in Figure 2-23, a 4 x 4 matrix keyboard port is extended on the board. This keyboard can work in interrupting mode or scanning modes. 4 data wires act as rows and 4 address wires act as columns. Row wires are connected through resistances to high level, and connect the output signal with MCU’s interrupt EXIT1 through the AND gates of 74HC08. Column wires are connected through resistances to low level. When some key is pressed down, row wires are pulled down to low level, which causes the EXINT1 input to become low and interrupt MCU. After the interruption, the pressed key can be found by scanning the rows and columns of the keyboard. Chip 74HC541 is selected by chip select signal nGCS3. This assures that MCU does not read the row wire’s information when the keyboard is not used.

44

Embedded Systems Development and Labs; The English Edition

R200

U100

U101

10K R201R202R203

14

VCC

GND

7

10K 10K 10K

74HC541

GND

L3

12

13

11

10

6Y

6A

Y8

GND

L2

10

11

12

9

A4

5Y

5A

Y7

A8

L1

8

9

13

8

A3

4Y

4A

Y6

A7

L0

6

5

14

7

A2

D7

3Y

3A

Y5

A6

4

3

D3

15

6

A1

L3

1N4148

2Y

2A

Y4

A5

2

1

D2

16

5

D8

1Y

1A

R205

Y3

A4

D1

17

4

L2

1N4148

Y2

A3

74HC17

R204

10K

D0

18

3

L1

Y1

A2

D9

4*4KEYBOARD

10K

NGCS3 19

G2

A1

2

1N4148

20

1GND

VDD33

VCC

G1

L0

1

2

U13B

D10

3

1N4148

4

74HC087

74HC08

4

5

U13C

10

6

6

EXINT18

5

7

9

8

14

11

13

CON7

12

VDD33

U13D

74HC08

R35

R36

R37

R38

4.7K

4.7K

4.7K

4.7K

VDD33

Figure 2-23 Keyboard Interface Circuit Diagram

13. Power Supply, Reset, Clock Circuit and JTAG Port

The development board is powered by a 5V DC regulated power supply. Two on board chips produce constant voltages of 3.3V and 2.5V voltage for the I/O and the ARM core, respectively. There is a Reset button on the development board. You may press down this button to reset the system. The real time clock is generated by connecting MCU to an external 32.768KHz crystal oscillator and power supply circuit. The JTAG connection electric circuit is shown in Figure 2-24. It is 20 pins standard JTAG connection circuit.

JTAG20

2

1

VDD33 VDD33

4

3

TDI

TDI

6

5

TMS

TMS

8

7

TCK

TCK

10

9

GND

12

11

TDO

TDO

14

13

nRESET

nRESET

16

15

GND

18

17

20

19

R52

R53

R54

R55

10K

10K

10K

10K

VDD33

Figure 2-24 JTAG Interface Circuit Diagram

14. Switches and Status Indicate Lights

SW1 is the power switch of the entire development board. When the switch is in the “USB Power” position, the development board is powered through USB; when the switch is in the “EXIPOWER” position, the

45


Embedded Systems Development and Labs; The English Edition

development board is powered by the power supply. D3 is the power-indicating lamp, which lights if the board is powered. Moreover, the Ethernet port also has 4 status indicating lamps, which are: D5 for connection; D6 for data receiving; D13 for data transmitting; D14 for auto-testing passed.

15. User Testing Area

The development board has a solder point matrix area for the users to do testing or circuit extension during the process of using the Lab system or software development.

2.3.2 Hardware Reference for Software Design 1. Chip Select Signals

The usage of Embest chip select signal is shown in Table 2-1.

Signal

Connection or Component

NGCS0

FLASH

NGCS6/NSCS0

SDRAM

NGCS1

A20

A19

A18

0

0

0

CS1

USB

0

0

1

CS2

Solid state hard disk (SSHD)

0

1

0

CS3

IDE

0

1

1

CS4

1

0

0

CS5

1

0

1

CS6

8-SEG

1

1

0

CS7

ETHERNET

1

1

1

CS8

LCD

Table 2-1 Chip Select Usage

(1)Chip Select Signal

(2)Chips or Extent Modules

(3)Solid-state Hard Disc (Nand Flash)

(4) 8 Segments LED

2.Peripheral Address Allocation

The Lab System’s peripheral access address setting is shown as in Table 2-2.

46


Embedded Systems Development and Labs; The English Edition

Table 2-2 Peripherals accesses address settings

Peripheral

CS

CS register

Address space

FLASH

NGCS0 BANKCON0 0X0000_0000~0X01BF_FFFF

SDRAM

NGCS6 BANKCON6 0X0C00_0000~0X0DF_FFFF

USB

CS1

BANKCON1 0X0200_0000~0X0203_FFFF

Solid-state Hard Disc

CS2

BANKCON1 0X0204_0000~0X0207_FFFF

IDE(IOR/W)

CS3

BANKCON1 0X0208_0000~0X020B_FFFF

IDE(KEY)

CS4

BANKCON1 0X020C_0000~0X020F_FFFF

IDE(PDIAG)

CS5

BANKCON1 0X0210_0000~0X0213_FFFF

8-SEG

CS6

BANKCON1 0X0214_0000~0X0217_FFFF

ETHERNET

CS7

BANKCON1 0X0218_0000~0X021B_FFFF

LCD

CS8

BANKCON1 0X021C_0000~0X021F_FFFF

NO

USE

NGCS2 BANKCON2 0X0400_0000~0X05FF_FFFF

KEYBOARD

NGCS3 BANKCON3 0X0600_0000~0X07FF_FFFF

NO

USE

NGCS4 BANKCON4 0X0800_0000~0X09FF_FFFF

NO

USE

NGCS5 BANKCON5 0X0A00_0000~0X0BFF_FFFF

NO

USE

NGCS7

BANKCON7

0X0E00_0000~0X1FFF_FFFF

2. I/O Ports

The I/O port A-G pin definitions are listed in Table 2-3 to Table 2-9.

Table 2-3 Port A

Port A

Pin function

Port A

Pin function

Port A

Pin function

PA0

ADDR0

PA4

ADDR19

PA8

ADDR23

PA1

ADDR16

PA5

ADDR20

PA9

OUTPUT(IIS)

PA2

ADDR17

PA6

ADDR21

PA3

ADDR18

PA7

ADDR22

PCONA access address: 0X01D20000

47


Embedded Systems Development and Labs; The English Edition

PDATA access address: 0X01D20004

PCONA reset value: 0X1FF

Table 2-4 Port B

Port B

Pin function

Port B

Pin function

Port B

Pin function

PB0

SCKE

PB4

OUTPUT(IIS)

PB8

NGCS3

PB1

SCLE

PB5

OUTPUT(IIS)

PB9

OUTPUT(LED1)

PB2

nSCAS

PB6

nGCS1

PB10

OUTPUT(LED2)

PB3

nSRAS

PB7

NGCS2

PCONB access address: 0X01D20008

PDATB access address: 0X01D2000C

PCONB reset value: 0X7FF

Table 2-5 Port C

Port C

Pin function

Port C

Pin function

Port C

Pin function

PC0

IISLRCK

PC6

VD5

PC12

TXD1

PC1

IISDO

PC7

VD4

PC13

RXD1

PC2

IISDI

PC8

INPUT *

PC14

INPUT *

PC3

IISCLK

PC9

INPUT *

PC15

INPUT *

PC4

VD7

PC10

RTS1

PC5

VD6

PC11

CTS1

(*) – string mouce

PCONC access address: 0X01D20010

PDATC access address: 0X01D20014

PUPC access address: 0X01D20018

PCONC reset value: 0X0FF0FFFF

Table 2-6 Port D

Port D

Pin function

Port D

Pin function

Port D

Pin function

48


Embedded Systems Development and Labs; The English Edition

PD0

VD0

PD3

VD3

PD6

VM

PD1

VD1

PD4

VCLK

PD7

VFRAME

PD2

VD2

PD5

VLINE

PCOND access address: 0X01D2001C

PDATD access address: 0X01D20020

PUPD access address: 0X01D20024

PCOND reset value: 0XAAAA

Table 2-7 Port E

Port E

Pin function

Port E

Pin function

Port E

Pin function

PE0

OUTPUT(LCD)

PE3

RESERVE

PE6

OUTPUT(TSP)

PE1

TXD0

PE4

OUTPUT(TSP)

PE7

OUTPUT(TSP)

PE2

RXD0

PE5

OUTPUT(TSP)

PE8

CODECLK

PCONE access address: 0X01D20028

PDATE access address: 0X01D2002C

PUPE access address: 0X01D20030

PCONE reset value: 0X25529

Table 2-8 Port F

Port F

Pin function

Port F

Pin function

Port F

Pin function

PF0

IICSCL

PF3

IN SSHD

PF6

out(*)

PF1

IICSDA

PF4

out *

PF7

IN(bootloader)

PF2

RESERVED

PF5

out(*)

PF8

IN(bootloader)

(*) – solid state hard drive (SSHD) PCONF access address: 0X01D20034 PDATF access address: 0X01D20038 PUPF access address: 0X01D2003C PCONF reset value: 0X00252A

Table 2-9 Port G

49