Documente Academic
Documente Profesional
Documente Cultură
Technologies
1. LED INTERFACE 1
2. LED-SWITCH INTERFACE 3
4. LCD INTERFACE 8
5. ADC INTERFACE 10
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
NOTE
OUTPUT
The following diagrams illustrate the 8 LEDs & 8-Pin DIP switch.
PROCEDURE
STEP 2: In this board, all 8-Pin DIP switches are connected to PORTB of PIC16F887.
NOTE
OUTPUT
Whenever one or more switches get closed (ON), corresponding LEDs will be ON.
3.7 SEGMENT DISPLAY INTERFACE
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
OUTPUT
Expected output is displaying the numbers in 7- Segment display.
4. LCD INTERFACE
PROCEDURE
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.
NOTE
No external connections required for this module.
The jumper (JP3) is placed as follows.
OUTPUT
The following diagram illustrates ADC module (16x2 LCD & pot resistor(R26).
PROCEDURE
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 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.
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 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.
OUTPUT
The following diagram illustrates the I2C module with EEPROM IC 24C04 (IC3).
PROCEDURE
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.
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.
OUTPUT
The following diagram illustrates SPI module along with LEDs & switches.
PROCEDURE
Step 1: Connect SCL, SDI, SDO, SS lines as figured below.
Step 4: Load the hex files into master and slave separately.
NOTE
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
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