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