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

Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller pptRahul Kumar
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructionsProdip Ghosh
 
VHDL- gate level modelling
VHDL- gate level modellingVHDL- gate level modelling
VHDL- gate level modellingVandanaPagar1
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
Input output module
Input output moduleInput output module
Input output moduleMuhammad Ishaq
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessorsobhadevi
 
microprocessor Questions with solution
microprocessor Questions with solutionmicroprocessor Questions with solution
microprocessor Questions with solutiondit
 
Interrupt latency and its measurements methods
Interrupt latency and its measurements methodsInterrupt latency and its measurements methods
Interrupt latency and its measurements methodss60030
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)ali9753
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerSudhanshu Janwadkar
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148Veera Kumar
 
Embedded c & working with avr studio
Embedded c & working with avr studioEmbedded c & working with avr studio
Embedded c & working with avr studioNitesh Singh
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfacesanishgoel
 
temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya VIKAS ARYA
 
29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagramsandip das
 
MOSFET and Short channel effects
MOSFET and Short channel effectsMOSFET and Short channel effects
MOSFET and Short channel effectsLee Rather
 

What's hot (20)

Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructions
 
VHDL- gate level modelling
VHDL- gate level modellingVHDL- gate level modelling
VHDL- gate level modelling
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Input output module
Input output moduleInput output module
Input output module
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
microprocessor Questions with solution
microprocessor Questions with solutionmicroprocessor Questions with solution
microprocessor Questions with solution
 
Interrupt latency and its measurements methods
Interrupt latency and its measurements methodsInterrupt latency and its measurements methods
Interrupt latency and its measurements methods
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148
 
Embedded c & working with avr studio
Embedded c & working with avr studioEmbedded c & working with avr studio
Embedded c & working with avr studio
 
8086 alp
8086 alp8086 alp
8086 alp
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya temperature control using 8086 microprocessor by vikas arya
temperature control using 8086 microprocessor by vikas arya
 
29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram29. 8086 microprocessor pin diagram
29. 8086 microprocessor pin diagram
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
MOSFET and Short channel effects
MOSFET and Short channel effectsMOSFET and Short channel effects
MOSFET and Short channel effects
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 

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
 
Xilinx verilog tutorial
Xilinx verilog tutorialXilinx verilog tutorial
Xilinx verilog tutorialkalpataru mallick
 
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 Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32fanghe22
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started 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 Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started 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

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

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

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