Professional Documents
Culture Documents
KIT
Writers:
Dr. F. Zeynep KÖKSAL Emrah İŞSEVER
Ph.D. in EEE, ODTÜ/1990 G.Ü.T.E.F./1998
Oğuz ŞENGÖZ
B.Sc. EEE, ODTÜ/2014
i
© All printing, publishing and sales rights of this book belong to Beti Bilişim Teknolojileri İmalat
Sanayi İç ve Dış Tic. Ltd. Şti. Permission of the specified institution
In accordance with the provisions of the Law on Intellectual and Artistic Works No. 5846 and
2936, all or parts of the book are mechanical, electronic, photocopying.
It cannot be reproduced, quoted, pictures, figures, graphics etc.
of the authors and Beti Bilişim Teknolojileri İmalat Sanayi İç ve Dış Tic. Ltd. It can not be used
without the permission of Sti.
Editör
Request Address:
Beti Information Technologies Manufacturing Industry İç ve Dış Tic. Ltd. Sti.
Serefli Street No:40/5 Deputies / AnkaraTel: 0 312 2221800
info@beti.com.tr
iii
CONTENTS
Preface........................................................................................... iii
SET CONTENTS................................................................................ 1
SETTING UP THE SYSTEM.................................................................. 1
MATTERS TO BE CONSIDERED IN USING THE SYSTEM.......................... 2
PART I EASY PIC7......................................................................... 3
GET TO KNOW EASY PIC7................................................................. 3
POWER SUPPLY............................................................................... 4
MCU SOCKETS................................................................................ 4
USB ON-BOARD PROGRAMMER......................................................... 5
I/O GROUPS................................................................................... 6
HEADER......................................................................................... 7
BUTTONS....................................................................................... 7
LEDS............................................................................................. 7
RESET CIRCUIT............................................................................... 8
7-PIECE INDICATOR........................................................................ 8
GRAPHIC LCD................................................................................. 9
TOUCH PANEL................................................................................ 10
CHARACTER IN 4-BIT MODE LCD...................................................... 11
RS232 COMMUNICATION................................................................. 12
USB COMMUNICATION.................................................................... 13
USB-UART COMMUNICATION........................................................... 14
DIGITAL THERMOMETER DS1820...................................................... 14
ANALOG THERMOMETER LM35.......................................................... 15
ADC INPUTS................................................................................... 16
I2C EEPROM CIRCUIT...................................................................... 16
PIEZO BUZZER CIRCUIT.................................................................. 17
ADDITIONAL GND PINS................................................................... 18
MICROBUS SOCKET STRUCTURE....................................................... 18
SAMPLE CLICK CARDS..................................................................... 19
CHAPTER II EXPERIMENTS............................................................20
EXPERIMENT 1..................... Data Output Application in Microcontroller 21
EXPERIMENT 2...................................... LED Walking Light Application 23
EXPERIMENT 3............. Data Input-Output Application in Microcontroller 26
EXPERIMENT 4.......................... 7-Part LED Display Control Experiment 28
EXPERIMENT 5.................................... LCD Module Control Experiment 32
EXPERIMENT 6............... Digital-To-Analog Converter (DAC) Experiment 37
EXPERIMENT 7................ Analog Temperature Measurement Application 45
EXPERIMENT 8................................. Stepper Motor Control Experiment 48
EXPERIMENT 9...................................................... Keypad Application 53
EXPERIMENT 10............................... RS232 Communication Experiment 56
EXPERIMENT 11............................................ Relay Control Experiment 66
EXPERIMENT 12................. Application of Pulse Width Modulation (PWM) 69
EXPERIMENT 13.................................. RTC Real Time Clock Experiment 75
EXPERIMENT 14...................... Application of Optical Elevator Simulation 83
EXPERIMENT 15................................................... Bargraph Application 89
EXPERIMENT 16.................................................... Marquee Application 95
EXPERIMENT 17........................... Light Frequency Converter Experiment 99
EXPERIMENT 18............................................. Graphic LCD Application 103
EXPERIMENT 19..................................................... RS485 Application 107
EXPERIMENT 20........................................... Touch Screen Application 115
EXPERIMENT 21...................................... Sound Generator Application 120
EXPERIMENT 22............. Analog-To-Digital Converter (ADC) Experiment 123
EXPERIMENT 23.................................................. EEPROM Application 127
EXPERIMENT 24................................. USB Communication Application 130
EXPERIMENT 25............ Application of Ultrasonic Distance Measurement 134