SlideShare a Scribd company logo
1 of 9
Download to read offline
Standalone
Boundary Scan Test (BST)
on
PIC32 MPU in
MCHP Explorer 16 DevBoard
Lorenzo Electronics, LLC 1
What is this BST all about
• Standalone BST on the Microchip PIC32 MPU. Running under
Lorenzo Electronics LE1201 BST Controller, test program
performs short-tests for the BST worthy MPU pins.
• For the MPU pins with both input and output boundary scan
(BSC) cells, BST Controller will setup output BSC cells to
drive the MPU pins. Moments later, MPU pins logic level will
be captured via input BSC cells and sent back to the host test
controller. BST Controller examines the test results and records
detailed test information.
• System features facilitate expedited test execution. MPU pins
under test are partitioned into multiple groups. Each group will
have test patterns of single logic 1 bit rotating among all other
logic 0 bits. With that, MPU pins short-circuit defects can be
detected. All the pin groups test runs are done in parallel.
• Fault insertion test will be executed. It illustrates Lorenzo
Electronics LE1201 BST Controller fault detection capability
and its detailed data log useful for debug purpose.
Lorenzo Electronics, LLC 2
JTAG setup: Standalone BST on PIC32 MPU
• In this test, JTAG 1149.1 standard conforming Microchip
PIC32 MPU (U1, left) runs BST interacting with a JTAG
controller pictured on the right. Externally, JTAG controller
is connected to PC via a USB cable.
• A 14-wires ribbon cable connects the JTAG controller to the
14-pin JTAG header on the MPU board. Single blue wire
connects +3.3v dc power to the JTAG controller, which can
operate on voltage level as low as 1.8v.
URL for Microchip Explorer 16 Development Board User's Guide:
http://ww1.microchip.com/downloads/en/DeviceDoc/50001589b.pdf
Lorenzo Electronics, LLC 3
snippet of sysout file listing JTAG port tdi/tdo data
• LE1201 BST controller runs test executing user-defined,
device-specific test programs. Each test program is divided
into a number of test patterns. In that, each test pattern is made
of driving data and expected data. Expected data will be
compared to the BST received tdo data stream to determine the
test results and record BSC pin fault(s), if any.
• BST execution sysout file lists JTAG port's tdi/tdo pins raw i/o
data streams for each test pattern. JTAG controller originated
data stream: tdi will be latched into MPU BSC output cells to
Lorenzo Electronics, LLC 4
drive the MPU pins. JTAG port stream: tdo, MPU sourced,
contains BSC input cells states that reflect MPU pins logic
levels. Normally, an MPU pin's input cell should mirror its
output cell's logic level.
• LE1201 BST controller execute each BST test pattern with the
same TAP state machine cycle – starting from Test/Idle state,
followed by Capture-DR, Shift-DR, Update-DR, and back to
Test/Idle state. In this state machine cycle, BSC registers are
“clocked” in the order of CAPTURE (input cell registers),
SHIFT (tdi stream in / tdo stream out), and UPDATE (output
cell registers). With that, BST driving data has its effects
delayed by one test pattern.
• In the sysout file, tdi and tdo data blocks listed in hexadecimal
numbers are representing digits serially shifted in and out of the
MPU JTAG pins - per test pattern. For the Microchip MPU
chip, the total number of BSC cells is 237 with cell index
ranging from 0 to 236.
• Sysout file tdi/tdo data blocks have the 4 LSB bits' (cell 0-3)
hex number listed on the lower right side. BSC cells indexing
are defined in the MPU's BSDL file.
Lorenzo Electronics, LLC 5
Snippet of a BST output file (*.csv)
• Record detailed BSC output/ctrl cells driving logic states and
captured input cells logic states for all the test patterns.
• Highlighted spreadsheet column C shows MPU pin 25 (port
name: RB0, output/ctrl cells, #177 and #178 respectively)
driving logic states (LE1201 conventions: 0, 1, or Z).
• Spreadsheet column B records MPU pin 25 input cell captured
logic states (LE1201 conventions: H or L).
• For MPU pin 25, test pattern #2 driving state of 1 (column C)
can be detected as H (column B) in test pattern #3.
• This BST passes the test. There is no “fail” label embedded in
the spreadsheet.
Lorenzo Electronics, LLC 6
Standalone BST on PIC32 MPU – w/ Fault Insertion
• With MPU pin 25 shorted to GND, this BST test repeats the
same test program as that in page 3.
Lorenzo Electronics, LLC 7
snippet of sysout file listing JTAG port tdi/tdo data – Failed
• This sysout file print out the BST failed message: Pattern 3,
failed device(s): [u1].
• Highlighted TDO data byte, with BSC cell index 176 to 183,
has hex value of b6. In contrast, corresponding pattern 3 TDO
data byte in page 4 has hex value of b7. It indicates that this
test's TDO stream has its bit with cell index #176 reset to 0.
• Note: TDO mask bit stream with cell index #176 has the bit
value of 1. For that, the corresponding TDO data bit will have
its bit value validated via comparing to the expected test result.
Lorenzo Electronics, LLC 8
Snippet of a BST output file (*.csv) – Failed
• This spreadsheet file records that MPU pin 25 (port name:
RB0, BSC cell index: 176) failed the BST in pattern #3 and
#17. The measured logic levels are all “L”.
Lorenzo Electronics, LLC 9

More Related Content

What's hot

Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureJamia Hamdard
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro ControllerMidhu S V Unnithan
 
Tms320vc5416 series of digital signal processor
Tms320vc5416 series of digital signal processorTms320vc5416 series of digital signal processor
Tms320vc5416 series of digital signal processorShîvãm Gûptå
 
CPU Implemented on an Xilinix FPGA
CPU Implemented on an Xilinix FPGACPU Implemented on an Xilinix FPGA
CPU Implemented on an Xilinix FPGABret Omsberg
 
MPLAB Starter Kit for PIC18F MCUs
MPLAB Starter Kit for PIC18F MCUsMPLAB Starter Kit for PIC18F MCUs
MPLAB Starter Kit for PIC18F MCUsPremier Farnell
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-outputBBDITM LUCKNOW
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 MicrocontrollerASHISH RANJAN
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6Xv Kalairajan
 
Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Kumaran K
 
Lecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsLecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsVajira Thambawita
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3Dr.Umadevi V
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSGeorge Thomas
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Io processing
Io processingIo processing
Io processingTech_MX
 

What's hot (20)

Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
Tms320vc5416 series of digital signal processor
Tms320vc5416 series of digital signal processorTms320vc5416 series of digital signal processor
Tms320vc5416 series of digital signal processor
 
pic 18
pic 18pic 18
pic 18
 
CPU Implemented on an Xilinix FPGA
CPU Implemented on an Xilinix FPGACPU Implemented on an Xilinix FPGA
CPU Implemented on an Xilinix FPGA
 
MPLAB Starter Kit for PIC18F MCUs
MPLAB Starter Kit for PIC18F MCUsMPLAB Starter Kit for PIC18F MCUs
MPLAB Starter Kit for PIC18F MCUs
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
 
I/O Channel IBM 370
I/O Channel IBM 370I/O Channel IBM 370
I/O Channel IBM 370
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6X
 
Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+
 
Lecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and RoboticsLecture 1 - Introduction to embedded system and Robotics
Lecture 1 - Introduction to embedded system and Robotics
 
2864 EEPROM
2864 EEPROM2864 EEPROM
2864 EEPROM
 
PIC
PICPIC
PIC
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Io processing
Io processingIo processing
Io processing
 

Viewers also liked

PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPremier Farnell
 
PIC32 Architecture Overview
PIC32 Architecture OverviewPIC32 Architecture Overview
PIC32 Architecture OverviewPremier Farnell
 
Qt on Real Time Operating Systems
Qt on Real Time Operating SystemsQt on Real Time Operating Systems
Qt on Real Time Operating Systemsaccount inactive
 
Embedded System
Embedded SystemEmbedded System
Embedded Systemsureskal
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 

Viewers also liked (7)

PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller Family
 
PIC32 Architecture Overview
PIC32 Architecture OverviewPIC32 Architecture Overview
PIC32 Architecture Overview
 
Qt on Real Time Operating Systems
Qt on Real Time Operating SystemsQt on Real Time Operating Systems
Qt on Real Time Operating Systems
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 

Similar to MCHP-bst-only

Application notes an101
Application notes   an101Application notes   an101
Application notes an101Mark Chien
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 featuresMark Chien
 
Lorenzo Electronics - LE1200 Self test
Lorenzo Electronics - LE1200 Self testLorenzo Electronics - LE1200 Self test
Lorenzo Electronics - LE1200 Self testMark Chien
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03Premier Farnell
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUsPremier Farnell
 
Implementation of a bit error rate tester of a wireless communication system ...
Implementation of a bit error rate tester of a wireless communication system ...Implementation of a bit error rate tester of a wireless communication system ...
Implementation of a bit error rate tester of a wireless communication system ...eSAT Publishing House
 
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PImplementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PIRJET Journal
 
IRJET- PCB Test, Debug & Programming Made Easy with Universal Test Jig
IRJET-  	  PCB Test, Debug & Programming Made Easy with Universal Test JigIRJET-  	  PCB Test, Debug & Programming Made Easy with Universal Test Jig
IRJET- PCB Test, Debug & Programming Made Easy with Universal Test JigIRJET Journal
 

Similar to MCHP-bst-only (20)

MCHP-bst&ict
MCHP-bst&ictMCHP-bst&ict
MCHP-bst&ict
 
Application notes an101
Application notes   an101Application notes   an101
Application notes an101
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 features
 
self-test
self-testself-test
self-test
 
Lorenzo Electronics - LE1200 Self test
Lorenzo Electronics - LE1200 Self testLorenzo Electronics - LE1200 Self test
Lorenzo Electronics - LE1200 Self test
 
An Overview of LPC2101/02/03
An Overview of LPC2101/02/03An Overview of LPC2101/02/03
An Overview of LPC2101/02/03
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
E010132736
E010132736E010132736
E010132736
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 
Test-Coverage
Test-CoverageTest-Coverage
Test-Coverage
 
DSP_Assign_1
DSP_Assign_1DSP_Assign_1
DSP_Assign_1
 
Timers and Endge-aligned PWM
Timers and Endge-aligned PWMTimers and Endge-aligned PWM
Timers and Endge-aligned PWM
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
Implementation of a bit error rate tester of a wireless communication system ...
Implementation of a bit error rate tester of a wireless communication system ...Implementation of a bit error rate tester of a wireless communication system ...
Implementation of a bit error rate tester of a wireless communication system ...
 
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PImplementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
 
IRJET- PCB Test, Debug & Programming Made Easy with Universal Test Jig
IRJET-  	  PCB Test, Debug & Programming Made Easy with Universal Test JigIRJET-  	  PCB Test, Debug & Programming Made Easy with Universal Test Jig
IRJET- PCB Test, Debug & Programming Made Easy with Universal Test Jig
 

MCHP-bst-only

  • 1. Standalone Boundary Scan Test (BST) on PIC32 MPU in MCHP Explorer 16 DevBoard Lorenzo Electronics, LLC 1
  • 2. What is this BST all about • Standalone BST on the Microchip PIC32 MPU. Running under Lorenzo Electronics LE1201 BST Controller, test program performs short-tests for the BST worthy MPU pins. • For the MPU pins with both input and output boundary scan (BSC) cells, BST Controller will setup output BSC cells to drive the MPU pins. Moments later, MPU pins logic level will be captured via input BSC cells and sent back to the host test controller. BST Controller examines the test results and records detailed test information. • System features facilitate expedited test execution. MPU pins under test are partitioned into multiple groups. Each group will have test patterns of single logic 1 bit rotating among all other logic 0 bits. With that, MPU pins short-circuit defects can be detected. All the pin groups test runs are done in parallel. • Fault insertion test will be executed. It illustrates Lorenzo Electronics LE1201 BST Controller fault detection capability and its detailed data log useful for debug purpose. Lorenzo Electronics, LLC 2
  • 3. JTAG setup: Standalone BST on PIC32 MPU • In this test, JTAG 1149.1 standard conforming Microchip PIC32 MPU (U1, left) runs BST interacting with a JTAG controller pictured on the right. Externally, JTAG controller is connected to PC via a USB cable. • A 14-wires ribbon cable connects the JTAG controller to the 14-pin JTAG header on the MPU board. Single blue wire connects +3.3v dc power to the JTAG controller, which can operate on voltage level as low as 1.8v. URL for Microchip Explorer 16 Development Board User's Guide: http://ww1.microchip.com/downloads/en/DeviceDoc/50001589b.pdf Lorenzo Electronics, LLC 3
  • 4. snippet of sysout file listing JTAG port tdi/tdo data • LE1201 BST controller runs test executing user-defined, device-specific test programs. Each test program is divided into a number of test patterns. In that, each test pattern is made of driving data and expected data. Expected data will be compared to the BST received tdo data stream to determine the test results and record BSC pin fault(s), if any. • BST execution sysout file lists JTAG port's tdi/tdo pins raw i/o data streams for each test pattern. JTAG controller originated data stream: tdi will be latched into MPU BSC output cells to Lorenzo Electronics, LLC 4
  • 5. drive the MPU pins. JTAG port stream: tdo, MPU sourced, contains BSC input cells states that reflect MPU pins logic levels. Normally, an MPU pin's input cell should mirror its output cell's logic level. • LE1201 BST controller execute each BST test pattern with the same TAP state machine cycle – starting from Test/Idle state, followed by Capture-DR, Shift-DR, Update-DR, and back to Test/Idle state. In this state machine cycle, BSC registers are “clocked” in the order of CAPTURE (input cell registers), SHIFT (tdi stream in / tdo stream out), and UPDATE (output cell registers). With that, BST driving data has its effects delayed by one test pattern. • In the sysout file, tdi and tdo data blocks listed in hexadecimal numbers are representing digits serially shifted in and out of the MPU JTAG pins - per test pattern. For the Microchip MPU chip, the total number of BSC cells is 237 with cell index ranging from 0 to 236. • Sysout file tdi/tdo data blocks have the 4 LSB bits' (cell 0-3) hex number listed on the lower right side. BSC cells indexing are defined in the MPU's BSDL file. Lorenzo Electronics, LLC 5
  • 6. Snippet of a BST output file (*.csv) • Record detailed BSC output/ctrl cells driving logic states and captured input cells logic states for all the test patterns. • Highlighted spreadsheet column C shows MPU pin 25 (port name: RB0, output/ctrl cells, #177 and #178 respectively) driving logic states (LE1201 conventions: 0, 1, or Z). • Spreadsheet column B records MPU pin 25 input cell captured logic states (LE1201 conventions: H or L). • For MPU pin 25, test pattern #2 driving state of 1 (column C) can be detected as H (column B) in test pattern #3. • This BST passes the test. There is no “fail” label embedded in the spreadsheet. Lorenzo Electronics, LLC 6
  • 7. Standalone BST on PIC32 MPU – w/ Fault Insertion • With MPU pin 25 shorted to GND, this BST test repeats the same test program as that in page 3. Lorenzo Electronics, LLC 7
  • 8. snippet of sysout file listing JTAG port tdi/tdo data – Failed • This sysout file print out the BST failed message: Pattern 3, failed device(s): [u1]. • Highlighted TDO data byte, with BSC cell index 176 to 183, has hex value of b6. In contrast, corresponding pattern 3 TDO data byte in page 4 has hex value of b7. It indicates that this test's TDO stream has its bit with cell index #176 reset to 0. • Note: TDO mask bit stream with cell index #176 has the bit value of 1. For that, the corresponding TDO data bit will have its bit value validated via comparing to the expected test result. Lorenzo Electronics, LLC 8
  • 9. Snippet of a BST output file (*.csv) – Failed • This spreadsheet file records that MPU pin 25 (port name: RB0, BSC cell index: 176) failed the BST in pattern #3 and #17. The measured logic levels are all “L”. Lorenzo Electronics, LLC 9