You are on page 1of 18

Educational Trainer manual

SI LAB BUFFER CARD

Developed by:

National Infotech, Surat

User Manual - Rev. 1.0

PREFACE
In this exiting era of embedded systems, proper understanding & practical learning of embedded
systems will enhance career prospects for the students. SI Labs Advanced 8051 Microcontroller
Kit (NIKIT-SI-51) is 100 MIPS 8051 microcontroller family. The kit comes with silicon
Laboratories C8051F120 controller Target Board, JTAG Debugger, IDE and other accessories.
On-chip MAC unit for fast calculation, on-chip 12-bit 8-channel ADC (100KSPS), on-chip 10bit DAC are other useful feature on 8051 core of this kit. A CD ROM provided with the kits
contains code examples for different peripherals.

INDEX
Chapter 1 INTRODUCTION ....................................................................................................... 4
Chapter 2 NI SI LAB CONNECTOR DETIALS ........................................................................... 5
Chapter 3 DEVELOPMENT ENVIRONMENT .......................................................................... 10
Chapter 4 SAMPLE CODE EXAMPLES .................................................................................... 17

Chapter 1 INTRODUCTION
Silicon Laboratories Buffer Card is developed by NITech (Embedded Division) for the Silicon
Laboratories C8051F12x Development Kit containing C8051F120 Target Board. A 96-pin
Expansion I/O connector is provided on C8051F120 Target Board which can be connected to
Silicon Laboratories Buffer Card using EURO 96 connector. All I/O pins of Silicon Laboratories
Buffer Card are buffered and interfacing keyboard, LCD, DI, DO, AI, AO, LED, Serial
Communication made 5 V tolerance and easy.
The main features of the SI LAB Buffer Card are listed below:
Buffered 5 V Tolerance I/O pins.
Keyboard Interfacing.
LCD Interfacing.
Serial Communication.
Analog output with adjustable gain.
Analog input
LED on Port pins.
+5 V Regulated Power Supply.

Chapter 2 NI SI LAB CONNECTOR DETIALS


JP3 POR CONNECTOR PIN DESCRIPTIONS

JP2

(OUTPUT PORT)

DESCRIPTIONS (PWM PORT)

POR

CONNECTOR

PIN

Pin#

Description

Pin @ uC

Pin#

Description

Pin @ uC

VCC (+5V DC)

VCC (+5V DC)

Open Collector Output-1

P5.0 (O)

PWM-0

P1.1 (O)

Open Collector Output-2

P5.1 (O)

PWM-1

P1.2 (O)

Open Collector Output-3

P5.2 (O)

PWM-2

P1.3 (O)

Open Collector Output-4

P5.3 (O)

PWM-3

P1.4 (O)

Open Collector Output-5

P5.4 (O)

PWM-4

P1.5 (O)

Open Collector Output-6

P5.5 (O)

PWM-5

P1.6 (O)

Open Collector Output-7

P5.6 (O)

N.C.

Open Collector Output-8

P5.7 (O)

N.C.

10

GND (Ground)

10

GND (Ground)

JP2 POR CONNECTOR PIN DESCRIPTIONS

JP6

(PORT-3)

DESCRIPTIONS (SPI/I2X/CNVSTR PORT)

POR

CONNECTOR

Pin#

Description

Pin @ uC

Pin#

Description

Pin @ uC

VCC (+5V DC)

VCC (+5V DC)

P3.0 multiplexed with CNSTR0

P3.0 (I/O)

SCK

P0.2 (O)

P3.1 multiplexed with CNSTR1

P3.1 (I/O)

MISO

P0.3 (I)

P3.2

P3.2 (I/O)

MOSI

P0.4 (O)

P3.3

P3.3 (I/O)

NSS

P0.5 (I)

P3.7

P3.7 (I/O)

CNSTR0

P3.0 (I)

P3.6

P3.6 (I/O)

CNSTR1

P3.1 (I)

P3.5

P3.5 (I/O)

P0.6

P0.6 (I/O)

P3.4

P3.4 (I/O)

P0.7

P0.7 (I/O)

10

GND (Ground)

10

GND (Ground)

PIN

JP8 POR CONNECTOR PIN DESCRIPTIONS

JP7 POR CONNECTOR PIN DESCRIPTIONS

(DIGITAL INPUT PORT)

(TIMER & INTERRUPT INPUT PORT)

Pin#

Description

Pin @ uC

Pin#

Description

Pin @ uC

VCC (+5V DC)

VCC (+5V DC)

DIGITAL INPUT-1

P6.0 (I)

T0

P2.0 (I)

DIGITAL INPUT-2

P6.1 (I)

INT0

P2.1 (I)

DIGITAL INPUT-3

P6.2 (I)

T1

P2.2 (I)

DIGITAL INPUT-4

P6.3 (I)

INT1

P2.3 (I)

DIGITAL INPUT-5

P6.4 (I)

T2

P2.4 (I)

DIGITAL INPUT-6

P6.5 (I)

T2EX

P2.5 (I)

DIGITAL INPUT-7

P6.6 (I)

T4

P2.6 (I)

DIGITAL INPUT-8

P6.7 (I)

T4EX

P2.7 (I)

10

GND (Ground)

10

GND (Ground)

JP1 POR CONNECTOR PIN DESCRIPTIONS


(KEYBOARD PORT)
Pin#

Description

Pin @ uC

VCC (+5V DC)

EN (LCD CONTROL)

P4.0 (O)

R/W (LCD CONTROL)

P4.1 (O)

RS (LCD CONTROL)

P4.2 (O)

KEY-1 (DEFAULT HIGH)

P4.3 (I)

KEY-2 (DEFAULT HIGH)

P4.4 (I)

KEY-3 (DEFAULT HIGH)

P4.5 (I)

KEY-4 (DEFAULT HIGH)

P4.6 (I)

KEY-5 (DEFAULT HIGH)

P4.7 (I)

10

GND (Ground)

J1 POR CONNECTOR PIN DESCRIPTIONS


(LCD PORT)
Pin#

Description

Pin @ uC

GND (Ground)

VCC (+5VDC)

VR

RS

P4.2 (O)

R/W

P4.1 (O)

EN

P4.0 (O)

D0

P7.7 (O)

D1

P7.6 (O)

D2

P7.5 (O)

10

D3

P7.4 (O)

11

D4

P7.3 (O)

12

D5

P7.2 (O)

13

D6

P7.1 (O)

14

D7

P7.0 (O)

15

GND (Ground)

16

VCC (+5VDC)

JP5 POR CONNECTOR PIN DESCRIPTIONS


(COMPARATOR PORT)
Description

Pin @ uC

VCC (+5V DC)

COMPARATOR-0 NON INVERTING INPUT

CP0 +

COMPARATOR-0 INVERTING INPUT

CP0 -

COMPARATOR-1 NON INVERTING INPUT

CP1 +

COMPARATOR-1 INVERTING INPUT

CP1 -

GND (Ground)

JP13 JUMPER SELECTION


Pin#

Description

2<->4

INTERNAL ANALOG INPUT

3<->4

EXTERNAL ANALOG INPUT

6<->8

INTERNAL ANALOG INPUT

7<->8

EXTERNAL ANALOG INPUT

10<->12

INTERNAL ANALOG INPUT

11<->12

EXTERNAL ANALOG INPUT

14<->16

INTERNAL ANALOG INPUT

15<->16

EXTERNAL ANALOG INPUT

Pin @ uC
AIN0

AIN1

AIN2

AIN3

ANALOG INPUT PORT

ANALOG OUTPUT PORT

JP10 CONNECTOR

JP10 CONNECTOR

Pin#

Description

Pin#

Description

ANALOG INPUT-1

ANALOG INPUT-1

ANALOG INPUT-2

ANALOG INPUT-2

ANALOG INPUT-3

ANALOG INPUT-3

JP12 CONNECTOR

JP12 CONNECTOR

Pin#

Description

Pin#

Description

ANALOG INPUT-4

ANALOG INPUT-4

EXTERNAL ANALOG INPUT

EXTERNAL ANALOG INPUT

J2 CONNECTOR (RS232 UART PORT)


Pin#

Description

Rx

Tx

GND (Ground)

LED PORT - must sort LED_SELECT JUMPER (W1)


Pin#

Description

Pin @ uC

VCC (+5V DC)

LED-D11

P5.0 (O)

LED-D15

P5.1 (O)

LED-D12

P5.2 (O)

LED-D16

P5.3 (O)

LED-D13

P5.4 (O)

LED-D17

P5.5 (O)

LED-D14

P5.6 (O)

LED-D18

P5.7 (O)

10

GND (Ground)

HARDWARE SETUP OF SI LAB CARD

Chapter 3 DEVELOPMENT ENVIRONMENT


Following screen sort will help to create and compile project in the SI lab Integrated
Development Environment (IDE)
[1] Open SI-Lab IDE

10

[2] Create a new project from Project menu and select New Project

11

[3] Select your device (c8051F12x_13x) and give project name, Its Specific location and project
type c source.

12

[4] Make a new file from File menu with name extension of C.

13

[5]

14

[6]

15

[7]

From above box you can, compile your project. And connect to debugger and download project
to device.

16

Chapter 4 SAMPLE CODE EXAMPLES


Following is a list of the sample codes given in the CD to start working with the kit.
1. GPIO - Key pressing, led On/Off
2. GPIO - Oscillator Crystal led
3. Timer - Oscillator_Internal_PLL_timer0_blink
4. Timer - Timer0 in 16bit mode
5. Timer 2 Toggle Variable
6. PCA0 16Bit PWM Timer - Variable Duty Cycle
7. UART1 Interrupt Transmit
8. UART1 Interrupt CaptureT2 Frequency Measurement
9. ADC0 Continuous Mode Uart1
10. ADC Input PCA0 16Bit PWM Output
11. ADC0 External Input UART
12. Si Lab hardware test program

17

LIABILITY DISCLAIMER
THE

INFORMATION,

SOFTWARE,

PRODUCTS,

AND

SERVICES

INCLUDED IN OR AVAILABLE THROUGH NITECH MAY INCLUDE


INACCURACIES

OR

TYPOGRAPHICAL

ERRORS.

CHANGES

ARE

PERIODICALLY MADE TO ISSUED TOPIC AND TO THE INFORMATION


THEREIN. NITECH AND/OR ITS RESPECTIVE SUPPLIERS MAY MAKE
IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT AT ANY TIME.
ADVICE RECEIVED VIA NITECH SHOULD NOT BE RELIED UPON FOR
PERSONAL, MEDICAL, LEGAL OR FINANCIAL DECISIONS AND YOU
SHOULD CONSULT AN APPROPRIATE PROFESSIONAL FOR SPECIFIC
ADVICE TAILORED TO YOUR SITUATION.
USERS PROGRAM KIT WITH THEIR CUSTOMISED PROGRAM RATHER
THAN DEMO PROGRAMS PROVIDED WITHIN KIT OR ANY PROBLEM
OCCURS DUE TO FAULTY HARDWARE CONNECTIVITY, NITECH IS NOT
RESPONSIBLE FOR ANY DAMAGE OR REPLACEMENTS.
THANKING YOU,

National Infotech-Embedded Division


National Group: 3RD Floor, Sarvodaya Bhavan, Opp. Blinds School,
Ghod-dod Road, Surat-395001, India (South Gujarat)
Phone: +91-261-266 7876 ext 237, 238, 239
E-Mail:

info.emb@national-infotech.com

Web:

http://www.national-infotech.com

18

You might also like