Вы находитесь на странице: 1из 27

JRM

Technologies

8-Bit Microcontroller Development


Board V1.0
CONTENTS
Page No.

1. LED INTERFACE 1

2. LED-SWITCH INTERFACE 3

3. 7 SEGMENT DISPLAY INTERFACE 6

4. LCD INTERFACE 8

5. ADC INTERFACE 10

5.1 USING ANALOG VOLTAGE 10

5.2 USING TEMPERATURE SENSOR (LM35) 12

9.3 ADC WITH LM35 26

6. I2C INTERFACE 14

6.1 RTC 14

6.2 EEPROM 16

7. UART INTERFACE 18

8. SPI INTERFACE 20

APPENDICES 24

APPENDIX A 24

APPENDIX B 25
1. LED INTERFACING

The following diagram illustrates the 8 LEDs are connected with PORTD.
PROCEDURE

STEP1: In this board, all LEDs connected to PORTD of PIC 16F887.

STEP 2: Load the hex file into PIC16F887.

NOTE

No external connections required for this module.

OUTPUT

Expected output is blinking of LEDs with appropriate delay.


2. LED-SWITCH INTERFACE

The following diagrams illustrate the 8 LEDs & 8-Pin DIP switch.
PROCEDURE

STEP1: In this board, all LEDs connected to PORTD of PIC16F887.

STEP 2: In this board, all 8-Pin DIP switches are connected to PORTB of PIC16F887.

NOTE

 No external connections required for this module.

 Internal Pull-Ups should be disabled in PORTB


(This is done through enabling the RBPU bit in OPTION_REG register)

 Jumper should be in following position(Pull-Down)

OUTPUT

Whenever one or more switches get closed (ON), corresponding LEDs will be ON.
3.7 SEGMENT DISPLAY INTERFACE

The following diagram illustrates 4 - digit seven segment display module.


PROCEDURE

STEP 1: Connect 8 wires between PORTD of PIC16F887 (RD7 – RD0) and 8-pin
connector (SL2) for data lines.

STEP 2: Connect 4 wires between PORTC of PIC16F887 (RC0 – RC1) and 4-pin
connector (SL3) for selecting display

STEP 3: Load the hex file into PIC16F887.

OUTPUT
Expected output is displaying the numbers in 7- Segment display.
4. LCD INTERFACE

The following diagram illustrates 16x2 LCD modules.

PROCEDURE

STEP 1: Place the LCD controller in 16-pin connector.

STEP 2: In this board, 3 wires are connected between PORTE of PIC 16F887 (RE2 –
RE0) and RS, R/W, E pins in LCD connector (6-4)

STEP 3: In this board, 8 wires are connected between PORTD of PIC 16F887 (RD7 –
RD0) and D7 – D0 pins in LCD connector (14 – 7).

STEP 4: In this board, third pin of LCD is connected to pot resistor (R21) for contrast
adjustment.

STEP 5: Load the hex file into PIC16F887.

NOTE
 No external connections required for this module.
 The jumper (JP3) is placed as follows.
OUTPUT

Expected output is displaying (writing) any alphanumeric codes in 16x2 LCD.


5. ADC INTERFACING

5.1 USING ANALOG VOLTAGE

The following diagram illustrates ADC module (16x2 LCD & pot resistor(R26).

PROCEDURE

STEP 1: Place the LCD controller in 16-pin connector.

STEP 2: In this board, 3 wires are connected between PORTE of PIC16F887 (RE2 –
RE0) and RS, R/W, E pins in LCD connector (6-4)

STEP 3: In this board, 8 wires are connected between PORTD of PIC16F887 (RD7 –
RD0) and D7 – D0 pins in LCD connector (14 – 7).

STEP 4: In this board, third pin of LCD is connected to pot resistor (R21) for contrast
adjustment.

STEP 4: Connect a single pin from 2- pin connector (SL1) to any one of the analog
channels in PIC16F887 as follows.
STEP 5: Load the hex file into PIC16F887.

OUTPUT
While increasing the analog voltage from 0V (by varying the pot resistance value), digital
equivalent of the selected channel’s analog voltage will be displayed in LED’s (LED9-LED2).
5.2 USING TEMPERATURE SENSOR (LM35)
The following diagram illustrates ADC module (16x2 LCD & temperature sensor LM35 (T5).

PROCEDURE

STEP 1: Place the LCD controller in 16-pin connector.

STEP 2: In this board, 3 wires are connected between PORTE of PIC16F887 (RE2 –
RE0) and RS, R/W, E pins in LCD connector (6-4)

STEP 3: In this board, 8 wires are connected between PORTD of PIC16F887 (RD7 –
RD0) and D7 – D0 pins in LCD connector (14 – 7).

STEP 4: In this board, third pin of LCD is connected to pot resistor (R21) for contrast
adjustment.

STEP 4: Connect a single pin from 2- pin connector (SL1) to any one of the analog
channels in PIC16F887 as follows.

STEP 5: Load the hex file into PIC16F887.


OUTPUT

While changing the temperature of LM35, the digital equivalent of the selected channel’s
analog voltage will be displayed in LED’s (LED9-LED2).
6. I2C INTERFACE

6.1 RTC

The following diagram illustrates the I2C module with RTC IC DS1307 (IC5).

PROCEDURE

STEP 1: Place the LCD controller in 16-pin connector.

STEP 2: In this board, 2 pins from PORTC of PIC16F887 (RC3- SCL, RC4-SDA) are
connected to SDA, SCL pins in RTC IC DS1307 respectively.

STEP 3: Load the hex file into PIC16F887.


NOTE

Place jumpers (JP8, JP9) as follows.

OUTPUT

Real time clock will be shown in the LCD.


6.2 EEPROM

The following diagram illustrates the I2C module with EEPROM IC 24C04 (IC3).

PROCEDURE

STEP 1: In this board, all LEDs connected to PORTD of PIC16F887 .

STEP 2: In this board, 2 pins from PORTC of PIC16F887 (RC3- SCL,RC4-SDA) are
connected to SDA,SCL pins in EEPROM IC 24C04 respectively.

STEP 3: Load the hex file into PIC16F887.


NOTE

Place jumpers (JP8, JP9) as follows.

OUTPUT

PIC16F887 will send data to EEPROM via I2C (data is written at address). Data will be read via
I2C from EEPROM and send its value to PORTD
7. UART INTERFACE

The following diagram illustrates the DB9 connector (X2) and IC MAX-232(IC4) along with 5
capacitors (C9, C10, C11, C12 and C13).

PROCEDURE

STEP 1: In this board, 2 pins from PORTC of PIC16F887 (RC6 - TX, RC7 - Rx) are
connected to T1IN, R1OUT pins in IC MAX-232 respectively.

STEP 2: Connect serial cable from connector(X2) to PC’s COM port.

STEP 3: Open the computer’s hyper terminal.

STEP 4: Set the properties of any connected COM ports as follows.

Bits per second : 9600


Data bits : 8
Parity : None
Stop bits : 1
Flow control : None

STEP 5: Load the hex file into PIC16F887.


NOTE

Place jumpers (JP5, JP6) as follows.

OUTPUT

The data will be exchanged to the hyper terminal of PC via UART.


8. SPI INTERFACE

The following diagram illustrates SPI module along with LEDs & switches.
PROCEDURE
Step 1: Connect SCL, SDI, SDO, SS lines as figured below.

Step 2: Connect switches to PORTB.

Step 3: Connect LEDs to PORTD.

Step 4: Load the hex files into master and slave separately.
NOTE

 No external connections required for LEDs & Switches.

 Internal Pull-Ups should be disabled in PORTB


(This is done through enabling the RBPU bit in OPTION_REG register)

 Jumper should be in following position(Pull-Down)

OUTPUT

While pressing any one of the keys the corresponding data stored in master will be moved into
slave and that data will be displayed in LEDs.
APPENDICES

APPENDIX A

PIN CONFIGURATIONS
APPENDIX B

POWER SUPPLY
TRAINING PROGRAMS IN EMBEDDED SYSTEMS

1. Design of Embedded System Using 8051 MCU


2. Design of Embedded System Using PIC MCU
3. Design of Advanced Embedded System ARM7 (LPC2148)
4. Design of Embedded System Using TI MSP430 Series MCU
5. Honors Diploma Course – Embedded Linux on ARM
6. Design of Embedded System Using Arduino (ATmega 328)
7. Honors Diploma in Embedded Systems
8. Course on Android for Embedded Systems

WHY SHOULD YOU JOIN INVENSYS?

Live Industrial Projects


In Plant Training
Excellent Placement Assistance
Hardware and Firmware Design and Development
Prototype, R&D Design
Course Module Tailored to Meet Industrial Needs
Industry Ready Engineering Graduates

JRM
Technologies
137-H,RKP Plaza,II Floor, 100 Feet Road, Gandhipuram, Coimbatore,India-641012.
E-MAIL : jrmtech@ymail.com
Ph : 0422 – 2480119
Cell : +91 9445520119

Вам также может понравиться