32
SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika Development tools - Books - Compilers LV18FJ Users Manual With useful implemented peripherals, plentiful practical code examples and a broad set of add-on boards (Serial Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN, RTC, RS-485, etc.), MikroElektronika development boards make fast and reliable tools that can satisfy the needs of experienced engineers and beginners alike. ICD mikro IN-CIRCUIT DEBUGGER ICD mikro IN-CIRCUIT DEBUGGER 3 in 1 Software and Hardware solutions for Embedded World SUPPORTED SUPPORTED Serial Ethernet Serial Ethernet USB 2.0 IN-CIRCUIT PROGRAMMER USB 2.0 IN-CIRCUIT PROGRAMMER

Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

MikroElektronikaDevelopment tools - Books - Compilers LV18FJ

User’s Manual

With useful implemented peripherals, plentiful practical

code examples and a broad set of add-on boards (Serial

Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN,

RTC, RS-485, etc.), MikroElektronika development

boards make fast and reliable tools that can satisfy the

needs of experienced engineers and beginners alike.

ICDmik

ro

IN-CIRCUITDEBUGGER

ICDmik

ro

IN-CIRCUITDEBUGGER

3 in1

Software and Hardwaresolutions for Embedded World

SUPPORTEDSUPPORTED

SerialEthernetSerial

EthernetUSB 2.0

IN-CIRCUITPROGRAMMER

USB 2.0

IN-CIRCUITPROGRAMMER

Page 2: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

10. Graphic LCD connector allows easy connection of GLCD.

11. 70 buttons allow control of every pin on the microcontroller.

12. Buttons to select high/low state of the pins.

13. See all the signals -each pin has a LED.

14. On-board Ethernet socket.

15. Switches on the SW2 turns on/off the LEDs on ports. Select port

to connect LEDs to. These switches are used to disconnect all

LEDs from MCU pins.

16. Set LCD contrast according to display characteristics.

17. Set GLCD contrast according to display characteristics.

18. On-Board peripherals are connected to the microcontroller

via switches.

19. Enabling/disabling ethernet connection to MCU.

20. Reset circuit - if the reset button is pressed MCU will start execut

ing from the beginning of the program.

21. MikroElektronika’s MCU card.

LV18FJ

KEY FEATURES

1. External power supply 8-16 V AC/DC.

2. Choose between external and USB

power supply.

3. Very fast and flexible on-board USB pro

grammer. The key feature is expandabili-

ty. By downloading new software, you will

be able to program new MCUs in coming

years.

4. DS1820 temperature sensor allows to

measure temperature with 0.5°C accu-

racy.

5. Two RS232 ports for communication with

PC or another microcontroller.

6. 16-channels for MCU Analog-to-Digital

Converter.

7. MMC/SD Multimedia card socket.

8. Jumpers to select default logic state of

the appropriate pins.

9. LCD connector allows easy connection of

LCD in 4-bit mode.

Width 250 mm 9.84 Inches

Height 210 mm 8.27 Inches

Development board dimensions

Page 3: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 33page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

CCOO

NNTT

EENN

TTSS

CONNECTING THE SYSTEM page 4

INTRODUCTION page 5

Power Supply page 10

On-Board USB 2.0 programmer page 11

Jumpers page 7

Switches and their functions page 6

MCU sockets page 8

Pushbutton switches page 15

Graphic LCD page 18

LCD 2x16 in 4-bit mode page 19

RS-232 Communication page 20

CONTENTS

DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6

Serial Ethernet page 22

MMC/SD Connector page 28

Direct port access page 26

MCU A/D Converter Support page 25

LEDs page 13

MikroICD debugger page 12

Digital Thermometer page 24

Page 4: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

44page

CCOO

NNNN

EECC

TTIINN

GG TT

HHEE

SSYY

SSTT

EEMM

The development system box contains a development system, product CD, USB cable,

RS232 cable and this manual.

First of all, take the system out of the box. Unpack the USB cable and connect it to the PC.

Do not connect it to LV18FJ yet.

Install the PICFlash programmer. Start the installation from the product CD:

CD_Drive:\zip\lv18picflash.zip

Open the folder CD_Drive:\zip\drivers and run installation for the appropriate operating sys-

tem. Do not connect LV18FJ until the installation is finished.

Connect USB cable to LV18FJ. Run and use LV18PICFlash.exe as explained in the docu-

ment ‘lv18PICFlash with mikroICD support’ CD_Drive:\pdf\lv18picflash_manual

After these four steps your LV18FJ is installed and ready for use. You can now read a pro-

gram from the chip or load an example from the product CD.

CONNECTING THE SYSTEM

Step no.1

Step no.2

Step no.3

Step no.4

Page 5: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 55page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

IINNTT

RROO

DDUU

CCTT

IIOONN

The LV18FJ development system is a full-featured development board for Microchip’s low

voltage microcontrollers. It is designed to allow students and engineers to easily test and

explore the capabilities of low-voltage microcontrollers. It also allows low-voltage micro-

controllers to be interfaced with external circuits and a broad range of peripheral devices,

making it possible for the user to concentrate on software development.

Figure 1 illustrates the development board. There are identification marks beside each com-

ponent on a silkscreen. These marks describe connections to the microcontroller, operation

modes and provide additional information. Since all relevant information is provided on the

board there is almost no need for additional schematics.

INTRODUCTION

Figure 1. LV18FJ development board

DEVELOPMENT

BOARDDEVELOPMENT

BOARD

LV18FJLV18FJ

Page 6: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

66page

SSWW

IITTCC

HHEE

SS SWITCHES

The LV18FJ development board features a number of peripherial devices. In order to enable

them before programming, the appropriate jumpers or switches have to be properly set.

Switches are devices that have two positions - ON and OFF, which having the role to estab-

lish or break connection between two contacts. The LV18FJ development board has three

groups of switches.

The first group, SW1, is used to enable SPI communication for interfacing with MMC/SD

multimedia card. It is also used for RS-232 communication.

Switches of the SW2 are used to enable LEDs connected to ports. For example, if the switch

enabling PORTB is OFF, all PORTB LEDs will be turned off.

Switches of the SW3, SW4 and SW5 are used for controlling output port pins by

enabling/disabling them.

Switch is ON

Switch is OFF

1 ON

43

25

87

6Figure 2.

Group of 8 switches

Switch 2 is ON, other

switches are OFF

Page 7: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

Jumpers, like switches, can break or establish connection between two points. Under the

plastic cover of a jumper there is a conductive contact which establishes connection when

the jumper is placed over two pins.

For example, the jumpers J9 and J10 are used to connect or disconnect ethernet leds to the

RA0 and RA1 pins, respectively. In order to establish a connection, the jumper should be

placed over two contacts.

Jumpers are commonly used as selectors between two possible connections via three pin

connector. As illustrated in Figure 4, the connector in the middle can be connected to the left

or right pin, depending on the jumper’s position.

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 77page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

JJUUMM

PPEE

RRSS

Figure 3.

Figure 4.

Jumper as a switch

Jumper as a

multiplexer

JUMPERS

Jumper is ON

Jumper is OFF

Left lineis selected

All lines aredisconnected

Right lineis selected

Page 8: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

88page

MMCC

UU SS

OOCC

KKEE

TTSS

LV18FJ is delivered with the PIC18F97J60 64-pin microcontroller. User can remove this

chip and fit a different microcontroller into MCU socket.

MCU SOCKETS

There is a white line around MCU socket

which outlines the proper position of the

MikroElektronika Card.

Be sure that the upper left corner of the card

with label LV18FJ MCU CARD maches the

upper left corner of the outlined image

with the same label.

Figure above illustrates MCU Socket before

placing the MikroElektronika card.

Figure 6 on the right illustrates MCU Sock-

et with properly placed MikroElektronika

card.

Figure 5. MCU’s socket

Figure 6. MCU placed on socket

Page 9: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 99page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

MMCC

UU SS

OOCC

KKEE

TTSS

RC1

1 ON

43

2

PORTE

SW2

58

76

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

VCCVCC

RA

1

OSC2/CLK0

VCC

X110MHz

C122pF

C222pF

PORTE

RE1 RE1

PORTE

VCC

J19J1CN17

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

10K

Re

se

t

100n

VCC

R30

C17

K88

PIC18F6XJ11

PIC18F6XJ16

Microcontroller’s pins are routed to various peripherals as illustrated in Figure7. All ports

are directly connected to Direct Port Access connectors. Such connectors are normally used

for connecting external peripherals to the board or for providing digital logic probes for test-

ing and measuring.

All ports are connected to LEDs, push-button switches and pull-up/down resistors, which

allow easy monitoring and testing of digital pin state .

Some pins are connected to other peripherials such as DS1820 temperature sensor, RS-232

communication, 7-segment displays, LCD etc.

System connectionFigure 7.

Page 10: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

1100page

PPOO

WWEE

RR SS

UUPP

PPLLYY

LV18FJ has two kinds of power supply- regulated supply from the USB cable (default) or

external power supply. In case of the USB power supply, the system should be connected to

PC using the USB programming cable, while the power supply selection switch should be

set in the right-hand position.

In case of the external power supply, the LV18FJ board produces +5V using an LM7805

voltage regulator. The external power supply can be AC or DC. Power supply voltage can

be in the range of 8-16V and the power supply selection switch should be set in the left-

hand position. Figure 8 illustrates USB and external power supply connectors.

GND

Vin Vout

CON2

8-16V (AC/DC)

+

E17470uF

C15100nF

1

2

1

2

REG47805

DB18280C1500

CN11

VCC

CN10

VC

CG

ND

D-

D+

USBProgrammer

Connector

USB 2.0USB 2.0

FP1

C6100nF

5V

3

5V

1 2 3

Power selection switch

EXT USB

C14100nF

E18470uF

POWER SUPPLY

USB and power supply connectorsFigure 8.Figure 9. Power supply selection switch

USB

connector

External power

supply connector

POWER SUPPLY

SELECTABLE

POWER SUPPLY

SELECTABLE

Figure 10. Power supply schematic

Page 11: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1111page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

OONN

--BBOO

AARR

DD UU

SSBB

PPRR

OOGG

RRAA

MMMM

EERR

ON-BOARD USB 2.0 PROGRAMMER

There is no need to use external equipment

during programming, as the LV18FJ devel-

opment system has its own on-board USB

2.0 programmer.

All you need to do is to connect the system

to PC using the USB cable. Then, load your

program into the microcontroller via the

PICFlash programming software supplied

with the board.

VCC

USB LINK

TO PERIPHERALSON DEVELOPMENT BOARD

80

51

Fla

sh

On

-Bo

ard

US

Bp

rog

ram

me

r

1K

POWER

1K

VCC

MULTIPLEXER

R34

R35

USBDP

USBDN

CN8

VC

CG

ND

D-

D+

USBProgrammer

Connector

C6100nF

VCC

FP1F.BEAD

USB 2.0USB 2.0

RSTbut

10

K

Reset

10

0n

VCC

R3

0C

17

K88

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

PIC18F6XJ11

RA

1

OSC2/CLK0

X110MHz

C122pF

C222pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ16

Figure 11. On-Board USB programmer

Figure 12.Programmer schematic

Note: After programming, the programmer will reset MCU automatically.

USB 2.0

IN-CIRCUITPROGRAMMER

USB 2.0

IN-CIRCUITPROGRAMMER

Page 12: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

1122page

IINN--CC

IIRRCC

UUIITT

--DDEE

BBUU

GGGG

EERR

mikroICD is a highly effective tool for Real-Time debugging on hardware level. The

mikroICD debugger enables you to execute a program on the LvPIC microcontroller and

view variable values, Special Function Registers (SFR) and EEPROM while the program is

running.

Start Debugger [F9]

Run/ Pause Debugger [F6]

Toggle Breakpoint [F5]

Run to cursor [F4]

Step Into [F7]

Step Over [F8]

Flush RAM [F2]

Stop Debugger [Ctrl+F2]

mikroICD can be used within any of MikroElektronika’s compilers for LvPIC (mikroC,

mikroBasic or mikroPascal). You just have to select the appropriate build type (Release or

ICD Debug), build the project, program the MCU, select the appropriate debugger

(mikroICD Debugger) and that’s all.

Note: For more information on how to use mikroICD debugger please refer to the

mikroICD documentation “mikroICD User’s Manual”. You can also find it within the

Help documentation inside any of the compilers mentioned above.

The mikroICD debugger uses the PICFlash programmer to communicate with the compil-

er and supports common debugger commands:

mikroICD (IN CIRCUIT DEBUGGER)

ICDmik

ro

IN-CIRCUITDEBUGGER

ICDmik

ro

IN-CIRCUITDEBUGGER

Figure 13. On-Board USB programmer

Page 13: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1133page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

LLEEDD

ss

Light Emitting Diodes (LEDs) are the most commonly used components, usually for dis-

playing pin’s digital state. LV18FJ has 70 LEDs connected to the microcontroller’s PORTs.

LEDs

Figure 14. Light Emitting Diodes

Each group of eight LEDs can be enabled or disabled using the SW2. Figure 14 illustrates

the connection between LEDs and PORTB on the microcontroller. A resistor is used in series

with the LED to limit the LED's current. In this case the resistor's value is 1K.

Page 14: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

1144page

LLEEDD

ss The LEDs are enabled when the corresponding switch on the SW2 is on. When enabled,

LEDs will display the state of the corresponding microcontroller pin; otherwise the LEDs

are always off, no matter what the port state is, as no current can flow through LED.

RN2

1

2

3

4

5

6

7

89

8x1K

PORTA

PORTB

PORTC

PORTD

PORTE

PORTF

PORTG

PORTH/J

1 ON

43

25

87

6

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0

X110MHz

22pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

LEDs ON

RB0

RB1

RB2

RB3

RB4

RB6

RB5

RB7

MULTIPLEXER

On Board Uprogramme

10

K

Re

se

t

10

0n

R3

0C

17

K88

VCC

PIC18F6XJ11

PIC18F6XJ16

22pF

Figure 15. LED schematic

Page 15: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1155page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

PPUU

SSHH

BBUU

TTTT

OONN

SSWW

IITTCC

HHEE

SS

10K

Reset

100n

VCC

R30

C17K88

80

51

Fla

sh

On

-Bo

ard

US

Bp

rog

ram

me

rRE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0

10MHz

22pF 22pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ11

PIC18F6XJ16

LV18FJ has 70 push buttons which can be used to

change states of digital inputs on the microcon-

troller's ports. There is also one switch that acts as

a RESET. Reset switch is shown in Figure 16.

PUSHBUTTON SWITCHES

Figure 18. Pushbutton switches

Figure 16.Reset switchFigure 17. Reset switch

Page 16: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

1166page

PPUU

SSHH

BBUU

TTTT

OONN

SS

WWIITT

CCHH

EESS

VCC

PA0

PA1

PA2

PA3

PA4

PA5

PA6

PA7

PB0

PB1

PB2

PB3

PB4

PB5

PB6

PB7

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

PD0

PD1

PD2

PD3

PD4

PD5

PD6

PD7

PORTA PORTB PORTC PORTD

0V while buttonis pressed

+5V while buttonis pressed

J1

10K

Re

se

t

100n

VCC

R30

C17

K888

05

1F

las

hO

n-B

oa

rdU

SB

pro

gra

mm

er

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ11

PIC18F6XJ16

Figure 19.

Buttons schematic

The connection between buttons and PORTA, PORTB, PORTC and PORTD is shown in

Figure 19. Jumper J1 determines whether a button press will bring logic zero or logic one to

the appropriate pin.

When button is released, pin state is determined by the pull-up or pull-down port jumpers.

In the example shown in Figure 19, J1 is connected to +5V, therefore a button press will

bring logic one to the appropriate pins.

Page 17: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1177page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

PPUU

SSHH

BBUU

TTTT

OONN

SS

WWIITT

CCHH

EESSIn Figure 20 the J16 jumper

is set to pull-up, therefore

when the button is released,

pull-up resistor pulls the

microcontroller’s PB5 pin to

+5V.

By pressing the button, the

port pin is connected to

ground (J1 is in the GND

position).

Thus, only when the button

is pressed the microcon-

troller will sense a logic

zero; otherwise the pin state

will always be logic one.

In Figure 21 the J16 jumper

is set to pull-down, therefore

when the button is released,

pull-down resistor pulls the

microcontroller’s RB5 pin to

0V.

By pressing the button, the

port pin is connected to +5V

(J1 is in the VCC position).

Thus, only when the button

is pressed the microcon-

troller will sense a logic one;

otherwise the pin state will

always be logic zero.

RB5

PORTBpull-up

0V while pressed

vcc

J16

vccJ1

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ11

PIC18F6XJ16

pull-down

5V while pressed

vcc

PORTB

vcc

J16

RB5

J1

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ11

PIC18F6XJ16

Figure 20.

Figure 21.

Button with pull-up resistor

Button with pull-down resistor

Page 18: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

1188page

GGRR

AAPP

HHIICC

LLCC

DD 11

2288XX

6644

GRAPHIC LCD

A graphic LCD (GLCD) allows advanced visual messages to be displayed. While a charac-

ter LCD can display only alphanumeric characters, a GLCD can be used to display mes-

sages in the form of drawings and bitmaps. The most commonly used graphic LCD has the

screen resolution of 128x64 pixels. The GLCD’s contrast can be adjusted using the poten-

tiometer P6 placed to the right of the GLCD.

P6 10K

Vee

Vo

ContrastAdjustment

D5

D4

D3

D2

D1

D0E

R/WR

S

LE

D-

Vo

LE

D+

VC

C

Ve

e

GN

D

RS

T

CS

2

D7

CS

1

D6

1 20

R5

VCC

10

K

Re

se

t

10

0n

R6

C8

T39

VCC RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

VCC

10MHz

PIC18F6XJ11

PIC18F6XJ16

22pF 22pF

Figure 23. GLCD schematic

Figure 22.

GLCD

GRAPHIC LCD

CONNECTOR

ON-BOARD

GRAPHIC LCD

CONNECTOR

ON-BOARD

Note: Do not connect LCD and GLCD at the same time because they share the same data

and control pins.

Page 19: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 1199page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

LLCCDD

22XX

1166

A standard character LCD is probably the most widely used data visualization component.

Usually, it can display two lines of 16 alphanumeric characters, each made up of 5x8 pix-

els. The character LCD communicates with the microcontroller via a 4 bits. The connection

to the microcontroller is shown in Figure 25. where there are only four data lines. It is

important to know that the LCD should be placed or removed from LV18FJ board only after

the power is turned off.

LCD 2X16 IN 4-BIT MODE

D7

D6

D5

D4

D3

D2

D1

D0E

R/WR

S

VE

E

VC

C

GN

D

P210K

ContrastAdjustment

1

VCC

10

K

Reset

10

0n

R6

C8

T39

A K

VCC

mikroElektronika

2x16 LCD Display

VCCR13

10MHz

22pF

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

PIC18F6XJ11

PIC18F6XJ16

22p

Figure 24.

Figure 25.

LCD 2x16 in place

LCD 2x16 in 4-bitmode schematics

2x16

CONNECTOR

ON-BOARDON-BOARD

LCDCONNECTOR

2x16LCD

Note: Do not connect LCD and GLCD at the same time because they share same data and

control pins.

Page 20: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

2200page

RRSS

--223322

CCOO

MMMM

UUNN

IICCAA

TTIIOO

NN

RS-232 COMMUNICATION

RS-232 communication enables point-to-point data transfer. It is commonly used in data

acquisition applications, for the transfer of data between the microcontroller and PC. Since

the voltage levels of the microcontroller and PC are not directly compatible with each other,

a level transition buffer such as the MAX232 must be used.

Figure 26. RS232 connectors

In order to provide a more flexible system, the microcontroller is connected to the MAX232

through switches on the SW1. In order to use it, switches 1 and 2 or 3 and 4 on the SW1

must be enabled. Both RS232 modules can be used at the same time.

ENABLEDENABLED

RS232RS232

Page 21: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2211page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

RRSS

--223322

CCOO

MMMM

UUNN

IICCAA

TTIIOO

NN

MA

X2

32

C1+

VS+

C1-

C2+

C2-

VS-

T2OUT

R2IN

VCC

GND

T1OUT

R1IN

R1OUT

T1IN

T2IN

R2OUT

1

2

3

4

5

6

7

8

16

15

14

13

12

11

10

9

U6

Rx

Tx

E910uF

E1010uF

E1110uF

E1210uF

VCC

1 5

6 9

6 9

1 5

1 2 3 4 56 7 8 9

CN8SUB-D 9p

RS232CON

RS232CON

CONNECTMCU TO PC

Receivedata (Rx)

SendData (Tx)

CONNECTPC TO MCU

SERIALCABLE

PC

1 ON

43

25

87

6

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0

10MHz

22pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

10K

Reset

100n

R30

C17

K88

VCC

SW1

2

PIC18F6XJ11

PIC18F6XJ16

RC6

RC7TX

RX

Figure 27. Connection between microcontroller and PC

Page 22: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

2222page

SERIAL ETHERNET

Ethernet is the most common Local Area Network (LAN) technology in use today.On the

top of the physical layer, Ethernet stations mutually communicate by sending data packets

to each other. Each Ethernet station is assigned a single 48-bit MAC address used to speci-

fy both the destination and the source of each data packet.

Figure 28. Serial Ethernet

Note: Make sure to select the proper voltage level depending on the MCU Card attached to

the LV18FJ development board.

Improper voltage level can damage development system or Serial Ethernet chip!

Note: Both jumpers J9 and J10 must be connected.

SSEE

RRIIAA

LL EE

TTHH

EERR

NNEE

TT OO

NN BB

OOAA

RRDD

SUPPORTEDSUPPORTED

SerialEthernetSerial

Ethernet

Page 23: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

10n

C8

10n

C7

R3651

R3751

R3851

R3951

1

3

2

7

6

8

TD+

CT

TD-

RD+

CT

RD- A1

A2

K1

K2

12

109

11

RJ45

VCC3.3

FP2FERRITEBEAD

CN9

LD91

LD90

RE1RE0RB0RB1RB2RB3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

TPIN+TPIN-

RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RD

0R

D1

RD

2V

dd

Vss

RB

IAS

TP

OU

T+

PIC18F66J60

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

TP

OU

T-

PIC18F67J60

Vss

PLL

VD

DP

LL

Vss

TX

VD

DT

X

VDDRX

VSSRX

10MHz

22pF 22pF

10

K

Reset

10

0n

R3

0C

17

K88

VCC

J10

J9

RA1

RA0

R40

R41

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2233page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

Figure 29. Serial Ethernet schematic

SSEE

RRIIAA

LL EE

TTHH

EERR

NNEE

TT OO

NN BB

OOAA

RRDD

Page 24: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

Easy8051A User’s Manual MikroElektronikaDevelopment tools

2244page

DDSS

11882200

DDIIGG

IITTAA

LL TT

HHEE

RRMM

OOMM

EETT

EERR

DS1820 digital thermometer is convenient for envi-

ronmental temperature measurement, having the tem-

perature in the range of -55°C to 125°C with +/-0.5°C

accuracy. It must be properly placed in the 3-pin sock-

et provided on LV18FJ, with its rounded side to the

right edge of the board (see Fig. 30) otherwise the

DS1820 could be permanently damaged. DS1820’s

data pin can be connected to either RD0 or RD1 pin,

which is determined by the jumper J2.

J2

VCC

R410K

GND

DQ

DQ line isconnected to RD0

DQ line isconnected to RD1

DQ line isconnecteddis

-55 C

125 C

VCC3.3

VCC3.3

DS1820

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

PIC18FXXXX

RA

1

OSC2/CLK0

10MHz

22pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

10K

Reset

100n

R30

C17

K88

VCC

22pF

There is a mark in theshape of a half-circlefor proper orientationof DS1820 sensor.

DS1820 DIGITAL THERMOMETER

Figure 31.

Figure 30.

DS1820

DS1820 schematic

Page 25: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2255page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

MMCC

UU’’SS

AA//DD

CCOO

NNVV

EERR

TTEE

RR SS

UUPP

PPOO

RRTT

LV18FJ microcontrollers have built-in A/D

Converter. For the purpose of accessing the

ADC there are 4 potentiometers available on the

development board, each connected to four dif-

ferent A/D inputs. A detailed scheme is shown

below.

MCU A/D CONVERTER SUPPORT

Figure 32.A/D Converter

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

10K

Re

se

t

100n

VCC

R30

C17

K88

P3

P4P2

P1

RF6

RF5

RF4

RF3

RH7

RH6

RH5

RH4

RA3

RA2

RA1

RA0

RF2

RF1

RF0

RA5

VCC3.3

VCC3.3

PIC18F6XJ11

PIC18F6XJ16

Figure 33. 4.096 reference voltage schematic

Page 26: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

2266page

DDIIRR

EECC

TT PP

OORR

TT AA

CCCC

EESS

SS

These connectors can be used for system expansion with external boards such as Serial

Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN, RTC, RS-485 etc. Ensure that on-

board peripherals are disconnected from the microcontroller when an external peripheral is

attached to the board. The appropriate jumpers and switches must be set for this purpose.

The connectors can also be used for attaching logic probes or test equipment.

All microcontroller input/output pins can be accessed via connectors placed along the right

side of the board. For each PORT there is one 10-pin connector providing VCC, GND and

eight port pins.

DIRECT PORT ACCESS

Figure 34.

Direct port accessconnectors

Figure 35.

Example of how to connect exter-nal peripheral with flat cable

Page 27: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2277page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

DDIIRR

EECC

TT PP

OORR

TT AA

CCCC

EESS

SS

PB4

PB6

PB0

PB2

PB5

PB7

PB1

PB3

HEADER 5x2

CN16

8

9

6

7

4

5

2

3

1

2

3

1J16

Pull-up line isconnected

All linesare disconnected

Pull-down lineis connected

RN16

RPACK8/98x10K

VCC

VCC

PORTB

RE1RE0RG0RG1RG2RG3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

RB0RB1RB2RB3RB4RB5RB6

VssVddcore

RB7RC5RC4

RF

1E

NV

RE

GA

Vdd

AV

ss

RA

3R

A2

RA

0V

ss

Vdd

RA

5R

A4

RC

1R

C0

RE

2R

E3

RE

4R

E5

RE

6R

E7

RD

0V

dd

Vss

RD

1R

D2

RD

3R

D4

RD

5

RA

1

OSC2/CLK0

10MHz

22pF

OSC1/CLK1

RC3RC2

RC

6R

C7

RD

6R

D7

10K

Reset

100n

R30

C17

K88

VCC

22pF

PIC18F6XJ11

PIC18F6XJ16

Figure 36.

PORTB connection

Page 28: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

2288page

MMC/SD (Multimedia Card)

MMC/SD card is used as a storage media for a portable device, in a form that can be easily

accessed by PC. For example, a digital camera uses MMC/CD card to store image files.

Microcontroller on the LV18FJ development board comunicates with MMC/SD via SPI

communication. The on-board connector enables users to easily access MMC/SD card from

the microcontroller.

In order to enable MMC card, switches 5, 6, 7 and 8 on the SW1 must be turned on, as

shown at figure 38. By doing that, SPI communication lines (SCK, MISO and MOSI) are

connected to the microcontroller and CS line is turned on.

Figure 37. MMC Card

MMMM

CC//SS

DD ((

MMUU

LLTTIIMM

EEDD

IIAA CC

AARR

DD))

MMC/SDMASS STORAGE

MMC/SDMASS STORAGE

SUPPORTEDSUPPORTED

256MB

Page 29: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D 2299page

USBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s ManualMikroElektronikaDevelopment tools

Operating voltage of the MMC Card is 3.3V DC.

3.3V power supply voltage regulator (MC33269DT-3.3) are used for the adjusting MMC

card voltage level.

MMMM

CC//SS

DD ((

MMUU

LLTTIIMM

EEDD

IIAA CC

AARR

DD))

7

6

5

43

2

1

CN6

MMCCARDDout

GND

SCK

+3.3VGND

Din

CS

1 ON

87

65

43

2

VCC3.3

VOUT

VINGND

VCC

3

1 2

REG2

VCC3

E710uF

MC33269DT-3.3

C8100nF

RE1RE0RB0RB1RB2RB3

RG4

RF7

MCLR

RF6

Vss

Vdd

RF5RF4RF3RF2

TPIN+TPIN-

RB4RB5RB6

VssVddcore

RB7

RC3

RC4

RF

1E

NV

RE

GA

Vd

dA

Vss

RA

3R

A2

RA

0V

ss

Vd

dR

A5

RA

4R

C1

RC

0

RE

2R

E3

RE

4R

E5

RD

0R

D1

RD

2V

dd

Vss

RB

IAS

TP

OU

T+

PIC18F66J60

RA

1

OSC2/CLK0OSC1/CLK1

RC3

RC2

RC

6R

C7

TP

OU

T-

PIC18F67J60

Vss

PLL

VD

DP

LL

Vss

TX

VD

DT

X

VDDRX

VSSRX

10MHz

22pF 22pF

10

K

Re

se

t

10

0n

R3

0C

17

K88

VCC3.3

RD2

SCK

SDO

SDI

CS

VCC3.3

R11R9R10R1210K 10K 10K 10K

VCC3.3

VCC3.3

VCC3.3

RC5RC4RC3

VCC3.3

Figure 38. MMC Card schematic

Page 30: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L DUSBwith 2.0 PROGRAMMER

LV18FJ

LV18FJ User’s Manual MikroElektronikaDevelopment tools

3300page

NO PART OF THIS MANUAL, INCLUDING THE PRODUCT AND SOFTWARE

DESCRIBED IN IT, MAY BE REPRODUCED, TRANSMITTED, TRANSCRIBED, STORED

IN A RETRIEVAL SYSTEM, OR TRANSLATED INTO ANY LANGUAGE IN ANY FORM OR

BY ANY MEANS, EXCEPTING THE DOCUMENTATION KEPT BY THE PURCHASER FOR

BACKUP PURPOSES, WITHOUT EXPRESSED WRITTEN PERMISSION OF

MIKROELEKTRONIKA COMPANY.

PRODUCT WARRANTY OR SERVICE WILL NOT BE EXTENDED IF THE PRODUCT IS

REPAIRED, MODIFIED OR ALTERED, UNLESS SUCH REPAIR, MODIFICATION OR

ALTERATION IS AUTHORIZED IN WRITING BY MIKROELEKTRONIKA.

MIKROELEKTRONIKA PROVIDES THIS MANUAL “AS IS” WITHOUT WARRANTY OF

ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDED, BUT NOT LIMITED TO

IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY OR FITNESS FOR A

PARTICULAR PURPOSE.

IN NO EVENT SHALL MIKROELEKTRONIKA, ITS DIRECTORS, OFFICERS, EMPLOY-

EES OR DISTRIBUTORS BE LIABLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL OR

CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING DAMAGES FOR LOSS OF

BUSINESS PROFITS AND BUSINESS INFORMATION, BUSINESS INTERRUPTION OR

ANY OTHER PECUNIARY LOSS) ARISING FROM ANY DEFECT OR ERROR IN THIS

MANUAL OR PRODUCT, EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE

POSSIBILITY OF SUCH DAMAGES.

SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED

FOR INTERNATIONAL USE ONLY, AND ARE SUBJECT TO CHANGE AT ANY TIME WITH-

OUT NOTICE, AND SHOULD BE CONSTRUED AS A COMMITMENT BY MIKROELEK-

TRONIKA.

MIKROELEKTRONIKA ASSUMES NO RESPONSIBILITY OR LIABILITY FOR ANY

ERRORS OR INACCURACIES THAT MAY APPEAR IN THIS MANUAL, INCLUDING THE

PRODUCT AND SOFTWARE DESCRIBED IN IT.

PRODUCT AND CORPORATE NAMES APPEARING IN THIS MANUAL MAY OR MAY NOT

BE REGISTERED TRADEMARKS OR COPYRIGHTS OF THEIR RESPECTIVE COMPA-

NIES, AND ARE USED ONLY FOR IDENTIFICATION OR EXPLANATION AND TO THE

OWNERS’ BENEFIT, WITH NO INTENT TO INFRINGE.

Second edition

October 2007

Page 31: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

Exte

rna

l p

ow

er

su

pp

ly

8-1

6

V

AC

/DC

.

Very

fast

and

flexib

le U

SB

2.0

pro

gra

mm

er.

DS

18

20

te

m-

pe

ratu

re s

en

-

so

r ca

n b

e

co

nn

ece

d t

o

PC

6 o

r P

C7

pin

.

RS

23

2

co

mm

un

ica

-

tion p

ort

s.

AD

In

pu

ts o

n

pin

s

GLC

D c

ontr

ast

Ch

oose b

etw

een

exte

rnal or

US

B

po

wer

supply

.

Re

se

t circuit

Bu

tto

ns

to

se

lect

hig

h/lo

w

sta

te

of

the

pin

s.

LC

D c

onnecto

r

allo

ws e

asy c

on-

ne

ction o

f LC

D

in 4

-bit m

ode.

LLVV1188FFJJ

AV

R

8051

AR

M

PIC

68H

C08

PSoC

COMPIL

ER

SB

O

OK

SDEV.

T

OO

LS

Mak

ing

itea

sy

Serial

with

Ethernet

LV18FJ

Tu

rns O

N o

r O

FF

the

LE

Ds o

n

PO

RTA

, P

OR

TB

,

PO

RT

C e

tc.

Socket

for

mik

roE

lektr

onik

a

MC

U c

ard

DDeevveellooppmmeenntt tt

ooooll ff

oorr MM

IICCOO

CCHH

IIPP PP

IICC MM

CCUU

ss

Ju

mp

ers

to

sele

ct

defa

ult

logic

sta

te o

f

the

appro

pri-

ate

pin

s.

Buttons f

or

sim

u-

lating p

ins h

igh

sta

te o

r lo

w s

tate

MikroElektronika

TToooollss--CC

oommppiill

eerrss--BB

ooookkss

wwww

ww..mm

iikkrrooee..cc

oomm

Serial

eth

ern

et

so

ck-

et.

MM

C/S

D m

ultim

e-

dia

ca

rd s

ocket.

LC

D c

ontr

ast

GLC

D c

onnecto

r

Page 32: Development tools - Books - Compilers User s Manual...Jumpers, like switches, can break or establish connection between two points. Under the plastic cover of a jumper there is a conductive

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

MikroElektronika

Software and Hardware solutions for Embedded World

If you are experiencing problems with any of our

products or you just want additional information,

please let us know. We are committed to meeting

every need of yours.

Technical Support :

[email protected]

If you have any question, comment or business pro-

posal, please contact us:

E-mail: [email protected]: www.mikroe.comForum: www.mikroe.com/forum/