You are on page 1of 13

P78 Module Hardware Manual and Reference Design

P78 Module Hardware Manual


and Reference Design
VersionV4.2

SHENZHEN COMPARE ELECTRONICS CO., LTD.


Datai Building, Sanwei Industry Area,Xixiang Town,
Baoan District, Shenzhen 518126, China
TEL0755-29063503
Web:www.szcompare.com

FAX0755-29063506
ZIP code:518126

P78 Module Hardware Manual and Reference Design

Document modification record

Version

Release time

Revision note

V1.0

2014.01.09

First draft

V2.0

2014.03.21

Elicit code

V3.0

2015.07.02

Elicit TF card port

V4.1

2015.09.18

overall optimization

V4.2

2016.3.20

Circuit optimization

P78 Module Hardware Manual and Reference Design

Catalog
1

Introduction........................................................................................................................................................ 4
1.1

P78 Product appearence.......................................................................................................................... 4

1.2

P78 Main features.................................................................................................................................... 4

P78 Specifications............................................................................................................................................ 5

3 Extemal interface description......................................................................................................................... 5


3.1 PIN out definition.................................................................................................................................... 6
3.2

Power supply..............................................................................................................................................8

3.3

USB port..................................................................................................................................................... 8

3.4

UART port................................................................................................................................................... 8

3.5

I2C port..................................................................................................................................................... 9

3.6

I2S port..................................................................................................................................................... 9

3.7

TF card port............................................................................................................................................ 10

3.8

Bluetooth port........................................................................................................................................ 11

3.9

SPI port................................................................................................................................................... 11

3.10

Ethernet port ...................................................................................................................................... 11

3.11

Indicator light.................................................................................................................................... 12

3.12

Factory reset........................................................................................................................................ 12

3.13

GPIO port................................................................................................................................................13

3.14

Pin reuse................................................................................................................................................13

P78 Module Hardware Manual and Reference Design

1 Introduction
P78 is a 2.4G wireless communication module, based on MTK MT7620A solution of Shenzhen Compare
Electronics Co., Ltd. P78 series module designed abundant external interface and the powerful
software supporting platform, can proceed the secondary development. And support multiple external
device, meet different requirement.

1.1 P78 Product appearance

1.2 P78 Main features


Support IEEE802.11B/G/N2T2R300 Mbps transmission rete, USB port support I2S portcan
built-in audio decoder ICoptional, support I2C port, support PCM

port, support 8 GPIO ports,

support 2 UART ports. Can application for: WIFI smart socket, WIFI audio box, industrial control,
ip camera, smart home control center.

P78 Module Hardware Manual and Reference Design

2 P78 Specifications
Product feature

Description

Item No.

P78

Standards

802.11 b/g/n, WPA, WPA2, WMM, WMM-PS, WHQL, Cisco CCX

Wireless security

WEP 64/128 bit, WPA, WPA2, 802.1x, and 802.11i, Cisco CCS V1.0, 2.0 V3.0 compatibility

I/O PIN

Dip34

Frequency

2.42.4835GHz

Channel

1-14(optional USA Norm, EN, Japanese Norm

Modulation Type

11nOFDM with PSK, BPSK, 16-QAM, 64-QAM11gOFDM11bCCK, DQPSK, DBPSK

Transmission rete

802011n: Max 300Mbps

Receive Sensitivity

double row SMT

130M -65dBm@10% PER; 108M-65dBm@10% PER; 54M-65dBm@10% PER; 11M-87dBm@8%PER;


6M-90dBm@10% PER; 1M-90dBm@8% PER

transmission distance

Indoor farthest 30m, outdoor 80mDepend on the different environment

RF power

20dBmMax

Antenna Gain

Need the external antenna.

Working Voltage

DC 3.3V 0.2V

Dimension

34mm*40mm

Operational

Working temperature-20 to 75
Storage temperature-40 to 85

environment

full speed operate current:550 mA Max current 1A

Storage humidity5%-95%

3 Extemal interface description


P78 series module provide the external ports as below:
Port

Descriptions

Power input

3.2V 3.4V DC power input (recommended value 3.3V

USB

Support USB2.0 Full speed/High speed pattern

UART0

2 lines serial port async communnication fromatused for


debugging software.

UART1

Standard 4 lines serial port async communnication fromat , the


max transmission rete to 4 Mbps

I2C

Can extend control bus, support master/slave pattern

GPIOs

Multiple programmable GPIO portused for device and function


extend.

I2S

Digital voice interface


5

P78 Module Hardware Manual and Reference Design


LAN/WAN

Ethernet port 1LAN1WAN or 2LAN

Antenna port Used for antenna connect and rf performance test.

3.1 PIN out definition


P78 series module provide connect method for double row pin, as below pic3-1. Thereinto, pin1~34
defines common used function pin outpin 35~68 provide extend function pin out, user can select
according to yourself requirement.
Photo 3-1 P78 module TOP VIEW

P78 Module Hardware Manual and Reference Design

Pin-out
1

Network name

Type

Descriptions

Pin-out Network name type


68
GPIO28
I/O

Descriptions

GND

Ground

GND

Ground

67

GPIO29

I/O

GPIO

WLNLED

I/O

Wireless indicator light

66

GPIO24

I/O

GPIO

65

GPIO27

I/O

GPIO

GPIO

UART_TXD1

I/O

UART 1 send data

64

GND

Ground

UART_RXD1

I/O

UART 1 receive data

63

GPIO26

I/O

GPIO

LINK0

I/O

network interface 0 indicator light

62

GPIO25

I/O

GPIO

LINK4

I/O

network interface 4 indicator light

61

GPIO23

I/O

GPIO

UART_CTS1

I/O

UART 1 Clear To Send

60

GPIO0

I/O

GPIO

10

GPIO22

I/O

Used for factory reset

59

GND

Ground

11

GND

Ground

58

GND

Ground

12

PADP

I/O

USB+

57

BT_WACT

I/O

13

PADN

I/O

USB

56

BT_ACT

I/O

14

TXOM4

I/O

network interface 4 send data-

55

BT_AUX

I/O

15

TXOP4

I/O

network interface 4 send data+

54

BT_STAT

I/O

16

RXIM4

I/O

network interface 4 receive data-

53

BT_ANT

I/O

17

RXIM 4

I/O

network interface 4 receive data+

52

GND

Ground

18

TXOM0

I/O

network interface 0 send data -

51

GND

Ground

19

TXOP0

I/O

network interface 0 send data+

50

GND

Ground

20

RXIM0

I/O

network interface 0 receive data-

49

SD_CMD

I/O

21

RXIM 0

I/O

network interface 0 receive data+

48

SD_D3

I/O

22

1.8VD

Output 1.8V

47

SD_D2

23

I2S_CLK_

P
I/O

Audio output right channel

46

SD_CLK

P
I/O

24

I2S_WS

I/O

Audio output left channel

45

GND

25

HPOUTFB

Decode IC external connect GND

44

SD_CD

I/O

26

I2C_CLK

I/O

I2C clock

43

SD_D1

I/O

27

I2C_SD

I/O

I2C data

42

SD_D0

I/O

28

I2S_SDO

I/O

I2S data output

41

SD_WP

I/O

29

I2S_SDI

I/O

I2S data input

40

GND

30

UART0_RX

I/O

Debug UART receive

39

SPI_MISO

I/O

31

UART0_TX

I/O

Debug UART transmit

38

SPI_MOSI

I/O

32

UART_RTS1

I/O

UART 1 request transmit

37

SPI_CLK

I/O

33

VCC

3.3V input

36

SPI_CS1

34

VCC

3.3V input

35

GND

Ground

Ground

Ground

P78 Module Hardware Manual and Reference Design

3.2 Power supply


VCC input current power supply may reach more than 2A, suggest use power supply that more
than 2A. Recommend use LDO or switching power supply that current output more than 2A, and shunt
capacitor in the power port of module.

Reference circuit as Below:

3.3 USB port


P78 ,module have a standard USB2.0 port support High speed 480 Mbpsand Full peed(12 Mbps)
two speeds. Can work in HOST pattern and DEVICE pattern.
Reference circuit as Below:

3.4 UART port


P78 provide a group 2 line UART port, as below:

P78 Module Hardware Manual and Reference Design

Pin-out
30
31

Name

Type

Description

UART_RXD0
UART_TXD0

I
O

UART Receiver
UART Transmit

P78 UART0 for debuggingoutput to print information.


P78 provide a group 4 line UART port , as below:

Pin-out
5
6
9
32

Name

Type

Description

UART_TXD1
UART_RXD1
UART_CTS1
UART_RTS1

O
I
I
O

UART Receiver
UART Transmit
UART Receiver Allow
UART Transmit Request

P78 UART1 support standard async communnication fromat(start bit, stop bit, parity bit ),
support DMA operate Direct Memory Access, the max

Transmission rete

4Mbps. P78 also support 8 line

UART, right now the UART_RIN1UART_DSR1UART_DCD1 UART_DTR1 this 4 signals must be through I2S to reuse
and gain. Please see 3.9 pin-out reuse.

3.5 I2C port


P78 provide a group I2C port, as below:

Pin-out
26
27

Name

type

Description

I2C_CLK
I2C_SD

I/O
I/O

I2C Clock
I2C DATA

P78 module provide I2C port, port level 3.3V, support multiple external device, such as sensor,
controller, FM module, LCD, keyboard port etc.

3.6 I2S port


P78 provide a group I2S port, as below:
Pin-out
23
24
28
29

Name
I2S_CLK_
I2S_WS
I2S_SDO
I2S_SDI

Type

Description

I/O
I/O
I/O
I/O

I2S serial clock


I2S field selection
I2S data output
I2S data input

P78 Module Hardware Manual and Reference Design

Those signals provide to external codec chip, connection as below:

3.7 TF card port


P78 provide a group TF card port, as below:
Pin-out
49
48
47
46
44
43
42
41

Name
SD_CMD
SD_D3
SD_D2
SD_CLK
SD_CD
SD_D1
SD_D0
SD_WP

Type
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O

Reference design as below:

10

Description

P78 Module Hardware Manual and Reference Design

3.8 Bluetooth port


P78 provide a group bluetooth port, as below:
Pit-out

Name

Type

57
56
55
54
53

BT_WACT
BT_ACT
BT_AUX
BT_STAT
BT_ANT

I/O
I/O
I/O
I/O
I/O

Description

3.9 SPI port


P78 provide a group SPI port, as below:
Pin-out
39
38
37
36

Type

Name
SPI_MISO
SPI_MOSI
SPI_CLK
SPI_CS1

Description

I/O
I/O
I/O
I/O

P78 module have 2 groups SPI port, SPI0 for module internal FLASH to storage system firmware. SPI1
can circumscribed SPI FLASH.

3.10 Network port


P78 provide 2 network port, as below:

Name

Type

Description

TXOM4
TXOP4
RXIM4
RXIM 4
TXOM0
TXOP0
RXIM0
RXIM 0

I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O

Network port 4 data transmitNetwork port 4 data transmit+


Network port 4 data receiveNetwork port 4 data receive+
Network port 0 data transmitNetwork port 0 data transmit+
Network port 0 data receiveNetwork port 0 data receive+

Pin-out
14
15
16
17
18
19
20
21

Network port 0 and network port 4 can be WAN or LAN, can set through software. Such as use for 2
LAN or 1 WAN 1 LAN.
Connection can refer to below pic:

11

P78 Module Hardware Manual and Reference Design

3.11 indicator light


P78 provide indicator light port, as below:
Name

Type

WLNLED

I/O

Wireless indicator light

LINK0

I/O

Network port 0 indicator light

LINK4

I/O

Network port 4 indicator light

Pin-out

Description

Reference as below:

3.12 Factory reset


P78 factory reset defined as below:
Pin-out
10

Name

Type

Description

GPIO22

I/O

Used for factory reset

Factory resetdefault is connect low level to factory reset.


12

P78 Module Hardware Manual and Reference Design

3.13 GPIO port


P78 provide GPIO port, definition as below:

Name

Type

Description

GPIO28
GPIO29
GPIO24
GPIO27
GPIO26
GPIO25
GPIO23
GPIO0

I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O

GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO

Pin-out
68
67
66
65
63
62
61
60

P78 default 8 GPIO ports, as above pic. If need more GPIO port, just can through other ports
to reuse, for example UART1 reuse for GPIO port, set corresponding register in the software, will
be realize. Please see the 3.14 pin reuse.

3.14 Pin reuse


P78 support pin reuse, UART1 and I2S can reuse for PCM or GPIO. Set UARTF_SHARE_MODE register
through software to get it. As below:
3b011
I2S
UARTF
UART_RXD1

3b001
PCM
UARTF

3b010
PCM
I2S

3b000
UARTF

3b100
PCM
GPIO

3b101
GPIO
UARTF

3b110
GPIO
I2S

3b111
GPIO

PCMDTX

PCMDTX

UART_RIN1

PCMDTX

GPIO#14

GPIO#14

GPIO#14

PCMDRX

PCMDRX

UART_DSR1

PCMDRX

GPIO#13

GPIO#13

GPIO#13

PCMCLK

PCMCLK

UART_DCD1

PCMCLK

GPIO#12

GPIO#12

GPIO#12

PCMFS

PCMFS

UART_DTR1

PCMFS

GPIO#11

GPIO#11

GPIO#11

I2S_SDI

UART_RXD1

I2S_SDI

UART_RXD1

UART_RXD1

I2S_SDI

I2S_SDO

UART_CTS1

I2S_SDO

UART_CTS1

UART_CTS1

I2S_SDO

I2S_WS

UART_TXD1

I2S_WS

UART_TXD1

UART_TXD1

I2S_WS

I2S_CLK

UART_RTS1

I2S_CLK

UART_RTS1

UART_RTS1

I2S_CLK

UART_CTS1
UART_TXD1
UART_RTS1

GPIO#10
GPIO#9
GPIO#8
GPIO#7

13

GPIO#10
GPIO#9
GPIO#8
GPIO#7