Home » Embedded Systems

The BSR Mode of 8255 PPI (Programmable peripheral interface)

8255 BSR Mode: In this article, we are going to study the working of 8255 PPI in the BSR mode. We will first learn how the pins of the 8255 IC are set or reset while it is in the BSR mode and what functionalities can be performed by it in this mode?
Submitted by Monika Sharma, on August 21, 2019

The BSR mode stands for "Bit Set Reset Mode". The first bit, i.e. the Most Significant Bit (MSB) of the Control word decides the mode in which the 8255 IC will be. For the IC to be in the BSR mode, the MSB must be reset, i.e. it must be 0. The BSR mode works only for port C. In this mode, we can select any bit of the port C and then assign it any value: either 0 or 1. The following diagram illustrates the control word layout for the BSR mode:

BSR Mode | 8255 PPI

The control word in the BSR mode is as follows,

  • Here, you can see that the D7 bit is reset which indicates the BSR mode.
  • The next three bits, i.e. D6, D5, and D4 are the don’t care cases which means that no matter what value they contain, either 0 or 1, the processor does not consider them for any kind of operations.
  • The Next three bits: D3, D2, and D1 decide which bit of the port C must be selected. This is done in the following manner:
    BSR Mode | 8255 PPI
  • The last bit of the control word, bit D0 is responsible for the selected bit to be set or reset. The processor sets the selected bit of the port C to either 0 or 1 according to the value of D0.





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.