SlideShare a Scribd company logo
1 of 22
Download to read offline
User Manual for PT-51
Maheshwar Mangat (maheshgm@ee.iitb.ac.in /amits@ee.iitb.ac.in)
1
Introduction
• Pt-51 is the microcontroller board designed, developed at WEL.
• The board is being used for EE337, EDL and other development
work since 2012.
• The board was distributed to more than 200 engineering colleges across
the country to upgrade their microprocessor lab course.
2
Specifications Board
The specifications of the board are :
– Microcontroller : Atmel (now Microchip)
AT89C5131A.
– USB powered and programmable
– 24MHz Crystal clock generator.
– On board 4 LEDs and 4 Switches for simple programs.
– Dedicated LCD port.
– Type B USB connector.
– All ports(P0-P3) accessible.
– Separate headers for SPI and I2C
3
Board Layout : Ports
Port 0 Port 3
Port 2
Port 1
LED1:P1.4
LED2:P1.5
LED3:P1.6
LED4:P1.7
SW4:P1.3
SW1:P1.0
ALE
P1.0
P1.7 P0.7
P0.0 P3.0
P3.7
P2.7
P2.0
AT89C5131A
SW3:P1.2
SW2:P1.2
SWITCHES
4
Board Layout : Peripherals/Connectors
AT89C5131A
SPI I2C
16X 2 LCD slot
To adjust
LCD contrast
Pin 1 Pin 16
SS : P1.4
MISO : P1.5
SCK : P1.6
MOSI : P1.7
P4.0 P4.1
5
Board Layout
USB ATTACH/DETACH SWITCH
Reset
button
Boot
Button
Attach position
Detach position
1 2 3
POWER
SELECT
USB B type
Connector
EA
GND 5V
6
Detailed Board Layout
7
CAUTION!!!!!
• Note that the certain port pins have been given
multiple functionalities and they can be used to
perform only one function at a time.
• For example, Port 1 pins have been connected
to switches and LEDs. So, when they are used
for this function they cannot be used for any
other function in your code (SPI or GPIO).
8
Programming PT-51: Software to be installed
• Ensure that all the following software have been
downloaded and installed on your laptop or PC.
– Keil uVision 4
– Flip Microchip technology ( Ver 3.4.7.112 Windows 7
or higher) [Refer installation procedure given at the
end].
– Device driver for Pt-51 has been installed.
9
Programming PT-51: About Keil uVision and FLIP
• Keil uVision is an IDE (Integrated Development Environment).
• The µVision IDE combines project management, run-time environment, build
facilities, source code editing, and program debugging in a single powerful
environment.
• It integrates all the tools needed to develop embedded applications including a
C/C++ compiler, macro assembler, linker/locator, and a HEX file generator.
• Integrated Debugger and peripheral Simulator.
• FLIP : To program the microcontroller’s flash memory (program memory)
with the HEX file (of Assembly/C program) generated using Keil uVision IDE.
10
Programming PT-51: Operating modes of PT-51
Pt-51 board operates in 2 modes :
• Application mode :
o The microcontroller runs the code which has been programmed into its flash memory.
o When Pt-51 is powered up, if any code exists in the flash memory, it directly enters the
application mode and runs the program, else it enters the boot loader mode.
o In this mode, the board doesn’t communicate with PC and hence cannot be programmed.
• Boot loader mode :
o In this mode the board communicates with the PC (FLIP software) and the flash memory
of the microcontroller (AT89C5131A) is programmed with the HEX file (Program is
loaded into the microcontroller).
11
Programming PT-51: Boot Loader Mode
• To load the program in microcontroller, we
must execute boot loader mode first.
• Reminder: Make sure that FLIP and Device
driver for PT-51 are installed properly.
• To get into this mode, the following steps must
be followed in the sequence as given below:
o Run FLIP Software.
o Keep USB ATTACH/DETACH switch in detach
position
o Press and hold the “Boot” button.
o Press and hold the “Reset” button, for a moment and
release it, while still holding the Boot button pressed.
o Release the Boot button.
o Keep USB ATTACH/DETACH switch in attach
position.
(This sequence of steps should be followed every time we
want to execute boot loader i.e., to program new HEX
file.)
12
Attach position
Detach position
USB ATTACH/DETACHSWITCH
Reset
button
Boot
Button
Note: Flip will establish connection with Pt-51 board only when boot loader is
executed successfully.
Click on this Icon…. and select “USB”
13
Establish Connection between board and PC: 1
Click on “Open” to establish connection with the board
14
Establish Connection between board and PC: 2
Indicates that connection has been established. 15
Establish Connection between board and PC: 3
OR
Click on
16
Load Hex File: 1
The HEX file generated, is by default, given the
name of the Project and stored in the project folder.
17
Load Hex File: 2
Click on “Run”, this
programs the Flash with
the HEX file loaded.
Make sure BLJB bit
is unchecked.
If this bit is
checked, MCU will
execute boot
loader on RESET.
This is software bit
for executing
bootloader.
18
Programming Hex File: 1
Programming in progress
19
Programming Hex File: 2
Green and red indicate
the success and failure
of a process, respectively.
20
Programming Hex File: 3
To execute the code on Pt-51
• On successful programming of the Flash, to
execute the code,
– Press and release the “Reset” button.
– To program a different program on the board,
repeat the steps by first entering into the boot
loader mode.
21
New Versions of PT-51 Board (Ver 1.3)
• Only Layout changes i.e., component placement
changes are done in Ver 1.3.
• Electrical connections are same across all
version of PT-51.
PT-51 Ver 1.3 (Green) PT-51 Ver 1.3 (Red)
22

More Related Content

What's hot

File 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit designFile 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit designSanjeev Singh
 
301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilogSrinivas Naidu
 
chapter-12memory.pptx
chapter-12memory.pptxchapter-12memory.pptx
chapter-12memory.pptxRandomGuy90
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automationAloka Patro
 
Inside the Volta GPU Architecture and CUDA 9
Inside the Volta GPU Architecture and CUDA 9Inside the Volta GPU Architecture and CUDA 9
Inside the Volta GPU Architecture and CUDA 9inside-BigData.com
 
Vhdl code and project report of arithmetic and logic unit
Vhdl code and project report of arithmetic and logic unitVhdl code and project report of arithmetic and logic unit
Vhdl code and project report of arithmetic and logic unitNikhil Sahu
 
IoT Node-Red Presentation
IoT  Node-Red PresentationIoT  Node-Red Presentation
IoT Node-Red PresentationThe IOT Academy
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3Aravinda Koithyar
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3Rehan Fazal
 
Distributed Control System Basics
Distributed Control System BasicsDistributed Control System Basics
Distributed Control System BasicsPratap Chandra
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabusSoftroniics india
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableSubhashini Sundaram
 
DCS PRESENTATION
DCS PRESENTATIONDCS PRESENTATION
DCS PRESENTATIONbvent2005
 
Project single cyclemips processor_verilog
Project single cyclemips processor_verilogProject single cyclemips processor_verilog
Project single cyclemips processor_verilogHarsha Yelisala
 
Pulse_Oximeter_SoC
Pulse_Oximeter_SoCPulse_Oximeter_SoC
Pulse_Oximeter_SoCTianhao Li
 
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.201601 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016Mohamed Fawzy
 

What's hot (20)

File 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit designFile 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit design
 
301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog
 
chapter-12memory.pptx
chapter-12memory.pptxchapter-12memory.pptx
chapter-12memory.pptx
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
Inside the Volta GPU Architecture and CUDA 9
Inside the Volta GPU Architecture and CUDA 9Inside the Volta GPU Architecture and CUDA 9
Inside the Volta GPU Architecture and CUDA 9
 
Vhdl code and project report of arithmetic and logic unit
Vhdl code and project report of arithmetic and logic unitVhdl code and project report of arithmetic and logic unit
Vhdl code and project report of arithmetic and logic unit
 
SIEMENS S7-300c.ppt
SIEMENS S7-300c.pptSIEMENS S7-300c.ppt
SIEMENS S7-300c.ppt
 
IoT Node-Red Presentation
IoT  Node-Red PresentationIoT  Node-Red Presentation
IoT Node-Red Presentation
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3
 
Distributed Control System Basics
Distributed Control System BasicsDistributed Control System Basics
Distributed Control System Basics
 
Esp8266 basics
Esp8266 basicsEsp8266 basics
Esp8266 basics
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabus
 
VTU ECE 7th sem VLSI lab manual
VTU ECE 7th sem VLSI lab manualVTU ECE 7th sem VLSI lab manual
VTU ECE 7th sem VLSI lab manual
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
 
DCS PRESENTATION
DCS PRESENTATIONDCS PRESENTATION
DCS PRESENTATION
 
Project single cyclemips processor_verilog
Project single cyclemips processor_verilogProject single cyclemips processor_verilog
Project single cyclemips processor_verilog
 
Pulse_Oximeter_SoC
Pulse_Oximeter_SoCPulse_Oximeter_SoC
Pulse_Oximeter_SoC
 
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.201601 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016
 

Similar to PT-51 User Manual

Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manualHari K
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxransayo
 
Ht usb5130-v2
Ht usb5130-v2Ht usb5130-v2
Ht usb5130-v2handson28
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32fanghe22
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32fanghe22
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubroanoopc1998
 
Programming atmega using boot loader
Programming atmega using boot loaderProgramming atmega using boot loader
Programming atmega using boot loaderruyanchung
 
Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01cairo university
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Dr. Pankaj Zope
 
Creating an Embedded System Lab
Creating an Embedded System LabCreating an Embedded System Lab
Creating an Embedded System LabNonamepro
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)Mashood
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxlematadese670
 
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docxfelicidaddinwoodie
 
Cvavr getting started with atmel studio
Cvavr getting started with atmel studioCvavr getting started with atmel studio
Cvavr getting started with atmel studioBayu Agung
 

Similar to PT-51 User Manual (20)

Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manual
 
Xilinx verilog tutorial
Xilinx verilog tutorialXilinx verilog tutorial
Xilinx verilog tutorial
 
Pres
PresPres
Pres
 
Pres
PresPres
Pres
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docx
 
Ht usb5130-v2
Ht usb5130-v2Ht usb5130-v2
Ht usb5130-v2
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubro
 
Programming atmega using boot loader
Programming atmega using boot loaderProgramming atmega using boot loader
Programming atmega using boot loader
 
Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Creating an Embedded System Lab
Creating an Embedded System LabCreating an Embedded System Lab
Creating an Embedded System Lab
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
 
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
 
SDAccel Design Contest: Xilinx SDAccel
SDAccel Design Contest: Xilinx SDAccel SDAccel Design Contest: Xilinx SDAccel
SDAccel Design Contest: Xilinx SDAccel
 
Cvavr getting started with atmel studio
Cvavr getting started with atmel studioCvavr getting started with atmel studio
Cvavr getting started with atmel studio
 
PLC: Easy PLC User manual
PLC: Easy PLC User manualPLC: Easy PLC User manual
PLC: Easy PLC User manual
 
report
reportreport
report
 

More from SaravananVijayakumar4 (18)

EE337 Microprocessors Lab Labsheet 5
EE337 Microprocessors Lab Labsheet 5EE337 Microprocessors Lab Labsheet 5
EE337 Microprocessors Lab Labsheet 5
 
EE337 Spring 2023 Lab1
EE337 Spring 2023 Lab1EE337 Spring 2023 Lab1
EE337 Spring 2023 Lab1
 
EE337 Microprocessor Lab, Course Outline, Spring 2023
EE337 Microprocessor Lab, Course Outline, Spring 2023EE337 Microprocessor Lab, Course Outline, Spring 2023
EE337 Microprocessor Lab, Course Outline, Spring 2023
 
EE337 Course introduction 2021
EE337 Course introduction 2021EE337 Course introduction 2021
EE337 Course introduction 2021
 
EE 337 Lab 1 for Section 1 (2nd year UG)
 EE 337 Lab 1 for Section 1 (2nd year UG) EE 337 Lab 1 for Section 1 (2nd year UG)
EE 337 Lab 1 for Section 1 (2nd year UG)
 
Intel Hex Format
Intel Hex FormatIntel Hex Format
Intel Hex Format
 
EE 337 Lab 1 for Section 2 (3rd year UG)
EE 337 Lab 1 for Section 2 (3rd year UG)EE 337 Lab 1 for Section 2 (3rd year UG)
EE 337 Lab 1 for Section 2 (3rd year UG)
 
Getting started with Keil uVision 2020
Getting started with Keil uVision 2020Getting started with Keil uVision 2020
Getting started with Keil uVision 2020
 
EE337 Course introduction 2021
EE337 Course introduction 2021EE337 Course introduction 2021
EE337 Course introduction 2021
 
Hex file creation using Keil uVision
Hex file creation using Keil uVisionHex file creation using Keil uVision
Hex file creation using Keil uVision
 
Debugging programs with Keil uVision
Debugging programs with Keil uVisionDebugging programs with Keil uVision
Debugging programs with Keil uVision
 
Serial IO for 8051
Serial IO for 8051Serial IO for 8051
Serial IO for 8051
 
8051 Timers
8051 Timers8051 Timers
8051 Timers
 
8051 Interrupts
8051 Interrupts8051 Interrupts
8051 Interrupts
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
89c5131datasheet
89c5131datasheet89c5131datasheet
89c5131datasheet
 
EE337 Course introduction 2018
EE337 Course introduction 2018EE337 Course introduction 2018
EE337 Course introduction 2018
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

PT-51 User Manual

  • 1. User Manual for PT-51 Maheshwar Mangat (maheshgm@ee.iitb.ac.in /amits@ee.iitb.ac.in) 1
  • 2. Introduction • Pt-51 is the microcontroller board designed, developed at WEL. • The board is being used for EE337, EDL and other development work since 2012. • The board was distributed to more than 200 engineering colleges across the country to upgrade their microprocessor lab course. 2
  • 3. Specifications Board The specifications of the board are : – Microcontroller : Atmel (now Microchip) AT89C5131A. – USB powered and programmable – 24MHz Crystal clock generator. – On board 4 LEDs and 4 Switches for simple programs. – Dedicated LCD port. – Type B USB connector. – All ports(P0-P3) accessible. – Separate headers for SPI and I2C 3
  • 4. Board Layout : Ports Port 0 Port 3 Port 2 Port 1 LED1:P1.4 LED2:P1.5 LED3:P1.6 LED4:P1.7 SW4:P1.3 SW1:P1.0 ALE P1.0 P1.7 P0.7 P0.0 P3.0 P3.7 P2.7 P2.0 AT89C5131A SW3:P1.2 SW2:P1.2 SWITCHES 4
  • 5. Board Layout : Peripherals/Connectors AT89C5131A SPI I2C 16X 2 LCD slot To adjust LCD contrast Pin 1 Pin 16 SS : P1.4 MISO : P1.5 SCK : P1.6 MOSI : P1.7 P4.0 P4.1 5
  • 6. Board Layout USB ATTACH/DETACH SWITCH Reset button Boot Button Attach position Detach position 1 2 3 POWER SELECT USB B type Connector EA GND 5V 6
  • 8. CAUTION!!!!! • Note that the certain port pins have been given multiple functionalities and they can be used to perform only one function at a time. • For example, Port 1 pins have been connected to switches and LEDs. So, when they are used for this function they cannot be used for any other function in your code (SPI or GPIO). 8
  • 9. Programming PT-51: Software to be installed • Ensure that all the following software have been downloaded and installed on your laptop or PC. – Keil uVision 4 – Flip Microchip technology ( Ver 3.4.7.112 Windows 7 or higher) [Refer installation procedure given at the end]. – Device driver for Pt-51 has been installed. 9
  • 10. Programming PT-51: About Keil uVision and FLIP • Keil uVision is an IDE (Integrated Development Environment). • The µVision IDE combines project management, run-time environment, build facilities, source code editing, and program debugging in a single powerful environment. • It integrates all the tools needed to develop embedded applications including a C/C++ compiler, macro assembler, linker/locator, and a HEX file generator. • Integrated Debugger and peripheral Simulator. • FLIP : To program the microcontroller’s flash memory (program memory) with the HEX file (of Assembly/C program) generated using Keil uVision IDE. 10
  • 11. Programming PT-51: Operating modes of PT-51 Pt-51 board operates in 2 modes : • Application mode : o The microcontroller runs the code which has been programmed into its flash memory. o When Pt-51 is powered up, if any code exists in the flash memory, it directly enters the application mode and runs the program, else it enters the boot loader mode. o In this mode, the board doesn’t communicate with PC and hence cannot be programmed. • Boot loader mode : o In this mode the board communicates with the PC (FLIP software) and the flash memory of the microcontroller (AT89C5131A) is programmed with the HEX file (Program is loaded into the microcontroller). 11
  • 12. Programming PT-51: Boot Loader Mode • To load the program in microcontroller, we must execute boot loader mode first. • Reminder: Make sure that FLIP and Device driver for PT-51 are installed properly. • To get into this mode, the following steps must be followed in the sequence as given below: o Run FLIP Software. o Keep USB ATTACH/DETACH switch in detach position o Press and hold the “Boot” button. o Press and hold the “Reset” button, for a moment and release it, while still holding the Boot button pressed. o Release the Boot button. o Keep USB ATTACH/DETACH switch in attach position. (This sequence of steps should be followed every time we want to execute boot loader i.e., to program new HEX file.) 12 Attach position Detach position USB ATTACH/DETACHSWITCH Reset button Boot Button
  • 13. Note: Flip will establish connection with Pt-51 board only when boot loader is executed successfully. Click on this Icon…. and select “USB” 13 Establish Connection between board and PC: 1
  • 14. Click on “Open” to establish connection with the board 14 Establish Connection between board and PC: 2
  • 15. Indicates that connection has been established. 15 Establish Connection between board and PC: 3
  • 17. The HEX file generated, is by default, given the name of the Project and stored in the project folder. 17 Load Hex File: 2
  • 18. Click on “Run”, this programs the Flash with the HEX file loaded. Make sure BLJB bit is unchecked. If this bit is checked, MCU will execute boot loader on RESET. This is software bit for executing bootloader. 18 Programming Hex File: 1
  • 20. Green and red indicate the success and failure of a process, respectively. 20 Programming Hex File: 3
  • 21. To execute the code on Pt-51 • On successful programming of the Flash, to execute the code, – Press and release the “Reset” button. – To program a different program on the board, repeat the steps by first entering into the boot loader mode. 21
  • 22. New Versions of PT-51 Board (Ver 1.3) • Only Layout changes i.e., component placement changes are done in Ver 1.3. • Electrical connections are same across all version of PT-51. PT-51 Ver 1.3 (Green) PT-51 Ver 1.3 (Red) 22