ChipFind - документация

Электронный компонент: EMDB6812

Скачать:  PDF   ZIP
R



EMDB6812
Copyright 2004, EM Microelectronic-Marin SA
1
www.emmicroelectronic.com
EMDB6812 V1.1 MANUAL
VERSION 1.0
CONTENTS
1.
INTRODUCTION ........................................................................................................................................ 2
2.
HARDWARE DESCRIPTION ..................................................................................................................... 2
2.1
PARTS.....................................................................................................................................................................2
2.2
Hardware BOARD versionning ...............................................................................................................................3
2.3
DEMOBOARD DESCRIPTION...............................................................................................................................3
2.3.1
Connector description ............................................................................................................................4
2.3.2
Demoboard Schematic ..........................................................................................................................6
2.4
SAMPLE BOARD DESCRIPTION ..........................................................................................................................7
2.4.1
SampleBoard schematic ........................................................................................................................7
2.5
Partlist......................................................................................................................................................................8
3.
HARDWARE CONFIGURATION ............................................................................................................... 9
3.1
Power-Supply ..........................................................................................................................................................9
3.2
VPP/TEST ...............................................................................................................................................................9
3.3
Port A switches........................................................................................................................................................9
3.4
Port B leds .............................................................................................................................................................10
3.5
Oscillator................................................................................................................................................................10
3.6
Programming .........................................................................................................................................................10
3.7
Reset .....................................................................................................................................................................10
4.
APPENDIX : DEMO APPLICATION ........................................................................................................ 11
4.1
Introduction............................................................................................................................................................11
4.2
Architecture ...........................................................................................................................................................11
4.2.1
Features ...............................................................................................................................................11
4.3
Function.................................................................................................................................................................11
4.4
Software ................................................................................................................................................................12
4.4.1
CPU operation Modes..........................................................................................................................12
4.4.2
Main loop..............................................................................................................................................12
4.4.3
RTC ......................................................................................................................................................13
4.4.4
Command GetTime, 0xA0 ...................................................................................................................14
4.4.5
Command SetTime, 0xA1....................................................................................................................14
4.4.6
Command SetTimer, 0xA2 ..................................................................................................................15
4.4.7
Command DisablePower, 0x80 ...........................................................................................................15
4.4.8
Command EnablePower, 0x81 ............................................................................................................16
4.4.9
Command SetPWM1, 0x82 .................................................................................................................16
4.4.10
Command SetPWM2, 0x83 .................................................................................................................16
4.4.11
Command SetOutputs, 0x84 ...............................................................................................................16
4.4.12
Command GetKeys, 0x90....................................................................................................................17
4.4.13
Command GetSVLD, 0x92 ..................................................................................................................17
4.5
HOST Application..................................................................................................................................................18
4.5.1
Setup ....................................................................................................................................................18
4.5.2
Commands...........................................................................................................................................19



EM MICROELECTRONIC -
MARIN SA
R



EMDB6812
Copyright 2004, EM Microelectronic-Marin SA
2
www.emmicroelectronic.com
1. INTRODUCTION

This document describes EMDB6812 Demoboard for EM6812 microcontroller.
This board contains a Flash EM6812 microcontroller and additional parts to evaluate EM6812 product and
test your application.
You will be able to :
-
Program with external programmer the Flash EM6812 through the dedicated In-System-Programming
connector or by On-Socket insertion mode
- Evaluate or run your application with the help of the existing components assembled on the board
(push-button, leds, buzzer, RS232 interface, switches) and open extensions (connectors, user area).
2. HARDWARE
DESCRIPTION
2.1 PARTS

The EMDB6812 is based on two PCBs :
Main board (DemoBoard 6812)
Socket for EM6812 Flash microcontroller (SampleBoard 6812)

SampleBoard
DemoBoard
R



EMDB6812
Copyright 2004, EM Microelectronic-Marin SA
3
www.emmicroelectronic.com
2.2 HARDWARE BOARD VERSIONNING
DemoBoard V1.1
SampleBoard V1.0
2.3 DEMOBOARD DESCRIPTION

PCB size : 160 mm x 100 mm
























USER AREA
Free user area (2.54 mm and 1.27 mm) with power lines (GND and VDD_IN)
S1...S6
6 Push-Buttons connected to PA0...PA5 through DIP1-8 switches
DS1...DS8
8 Low-power red leds connected to PB0...PB7 through DIP2-10 switches
BUZ1/BUZ2
Buzzers connected to PB0 through DIP2-10 switches
DIP1-8
Switches for S1...S6 connections (PA0...PA5), RX (PA6), TX (PA7)
DIP2-10
Switches for DS1...DS8 connections (PB0...PB7), Buzzers (PB0), pull-down (VPP_TEST)
BATTERY
Battery socket (2032)
U2
Socket (DIL24) for Sample Board
DS9
Low-power red led connected to EXT_VDD
S8
Switch for programming / application mode
S7 Reset
Push-Button
CON1 In-System-Programming
connector
CON2
User connections (Ground, Power, Reset, ...)
CON3 & CON4
Port A, Port B user connector
CON5
User connections (Ground, Power, Reset)
CON6
DB9 connector for RS232
CON7
Power / Reset configuration connector
CON8
External oscillator connections

U2
SOCKET
S1



...





S6
DIP2-10
LEDS /
BUZZER
SELECTION













USER AREA

DIP1-8
SWITCH
SELECTION
BUZ
2
CON5
CON7
CON3


BATTERY
CON4
CON2
BUZ
1

CON1
S7
S8




CON6
DS9
DS1




...




DS8
CON8



R



EMDB6812
Copyright 2004, EM Microelectronic-Marin SA
4
www.emmicroelectronic.com
2.3.1 Connector
description
2.3.1.1.
CON1

In-System-Programming connector (compatibility Elnec programmer ISP cable)
Header 2x5 male 2.54 mm
1 Power
VDD_IN
EM6812
VDD
supply
2 X
N.C.
No
Connect
3 In
RST_EXT External
reset
4 X
N.C.
No
Connect
5 X
N.C.
No
Connect
6 Inout
SDIO
Data
IO
program.
7 Power
GND
Ground
8 In
SCLK
Clock
program
9 Power
GND
Ground
10 Power
VPP/TESTISP VPP/TESTISP
program.
2.3.1.2.
CON2

User connector
Header 1x8 male 2.54 mm
1 Power GND
Ground
2
Power
VDD_EXT
External VDD supply
3 In
RST_EXT
External
reset
4 In
OSCIN_EXT External
OSCIN
connection
5
In
OSCOUT_EXT External OSCOUT connection
6 X
N.C.
No
Connect
7
Power
VDD_IN
EM6812 VDD supply
8 Power GND
Ground
2.3.1.3.
CON3, CON4

Port user connector
Header 2x10 male 2.54 mm
1 Power GND Ground
2 Power GND Ground
3
Inout
PA0
Port A bit 0
4
Inout
PB0
Port B bit 0
5
Inout
PA1
Port A bit 1
6
Inout
PB1
Port B bit 1
7
Inout
PA2
Port A bit 2
8
Inout
PB2
Port B bit 2
9
Inout
PA3
Port A bit 3
10 Inout
PB3
Port B bit 3
11 Inout
PA4
Port A bit 4
12 Inout
PB4
Port B bit 4
13 Inout
PA5
Port A bit 5
14 Inout
PB5
Port B bit 5
15 Inout
PA6
Port A bit 6
16 Inout
PB6
Port B bit 6
17 Inout
PA7
Port A bit 7
18 Inout
PB7
Port B bit 7
19 Power GND Ground
20 Power GND Ground
R



EMDB6812
Copyright 2004, EM Microelectronic-Marin SA
5
www.emmicroelectronic.com
2.3.1.4.
CON5

User connector
Header 2x3 male 2.54 mm
1 Power GND
Ground
2
Power
VDD_EXT External VDD supply
3 In
RST_EXT External
reset
4 Power VDD_IN EM6812
VDD
supply
5 Power GND
Ground
6 X
N.C.
No
Connect
2.3.1.5.
CON6

RS232 User connector
DB9 female
1 X
N.C. No
Connect
2
Out
TX
RS232 Transmitter output
3
In
RX
RS232 Receiver input
4 X
N.C. No
Connect
5 Power GND Ground
6 X
N.C. No
Connect
7 X
N.C. No
Connect
8 X
N.C. No
Connect
9 X
N.C. No
Connect
2.3.1.6.
CON7

Configuration connector
Header 2x7 male 2.54 mm
1 Power
GND
Ground
2 Power
GND
Ground
3 Power
VBAT
Battery
power
supply
4 Power
VDD_IN
EM6812
VDD
supply
5 Power
VDD_EXT External
VDD
supply
6 Power
VDD_IN
EM6812
VDD
supply
7 In
RST_EXT External
reset
8 In
RESET_PAD
EM6812
reset
9 Power
VPP/TEST EM6812
VPP/TEST
10 Power
VPP/TESTISP VPP/TESTISP
program.
11 Power VPP/TEST EM6812
VPP/TEST
12 Power
VPP/TESTISP VPP/TESTISP
program.
19 Power
GND
Ground
20 Power
GND
Ground
2.3.1.7.
CON8

External oscillator connector
Header 2x2 male 2.54 mm
1 In OSCOUT_EXT External
OSCOUT
connection
2 In OSCOUT
EM6812
OSCOUT
connection
3 In OSCIN_EXT
External
OSCIN
connection
4 In OSCIN
EM6812
OSCIN
connection