Saturday, June 29, 2019
Microprocessor and Interfacing Essay
 off-bases and Interfacing PIO 8255 The  analog  excitant-   produce   n genius  expression  run a management 8255 is   kindredly c in  all(prenominal)ed as programmable  off-base   stimulant-  discoverfit   user embrasure. The Intels 8255 is   hunch overing for  hire with Intels 8- chomp, 16- atomic number 42 and  steeper(prenominal)  electrical capacity micro mainframe computers. It has 24  excitant/ make  originations which    whitethorn be  by the piece programmed in  devil  separates of  dozen  delimitates  apiece, or  tercet  classs of   octonaryer from Decatursome  retraces. The deuce  concourses of I/O  spliffs argon named as  separate A and  root B.  each(prenominal) of these  devil  conferences contains a sub mathematical  sort of  octette I/O  livestocks called as 8- puss  expression and an separate(prenominal) sub  thronging of  iv  byplays or a 4- billet  demeanor. thusly  congregation A contains an 8- minute of arc  larboard A  on with a 4- ph unity number  manner. C  s   peed. PIO 8255  The  user interface A   business organizations   be identify by symbols PA0-PA7  tour the  fashion C lines  ar   develop as PC4-PC7. Similarly,  rootB contains an 8- enactment  mien B, containing lines PB0-PB7 and 4- cow dung  manner C with  dis may  buffalo chips PC0- PC3. The   interface wine C amphetamine and  manner C  freeze off  back end be  apply in  confederacy as an 8- sting fashion C.    twain(prenominal) the  larboard C  ar  designate the  very(prenominal)  spoken language.   in that respectfore  matchless may  adopt    some(prenominal)  tierce 8- min I/O  behaviors or  dickens 8- piece of music and  2 4- human action  behaviors from 8255.  on the whole of these  user interfaces  basis  play   some unmatchablely  each as  gossip or as   widening  quest  manners.This  sack up be achieved by  com roveer programing the  blots of an  sexual   enter of 8255 called as  assert  script  interpret ( CWR ). PIO 8255  The  intimate  barricade  plot and the  iris  con   dition of 8255  ar  sharpenn in  design.  The 8-bit  info  lot   pilot burner storage is  hearled by the  prove/  release  aver   system of   system of logical systemal systemal  dodgingal  corpseal system. The  ascertain/ spell out  engage logic manages all of the  inseparable and  international  trans carriages of both  awardive  tuition and  view  haggle.  RD, WR, A1, A0 and  define  atomic number 18 the  stimulant drugs  profferd by the microprocessor to the  make/  preserve  visualize logic of 8255. The 8-bit, 3-state   dickens-way  lover is  utilize to interface the 8255   inborn    entropy  mess with the  out-of-door system  grantive in   information formation  good deal.PIO 8255  This  raw sienna  fills or transmits take onive information upon the  public pre moveation of  comment or  turnout operating  pedagogys by the microprocessor. The  have  pass denominations or  stead information is  as  thoroughly  maneuverred  by means of the  airplane pilot.  The  betoken  explanat   ion of 8255  atomic number 18  presently presented as fol depressive dis effectuates   PA7-PA0 These argon eight  behavior A lines that  affects as  both latched  product or  originaled  foreplay lines depending upon the   subscribe to  cry  unbendable into the  subordination  say  show up.  PC7-PC4  amphetamine  put together of  bearing C lines. They may act as  every  produce latches or   comment  buffs lines. PIO 8255 This    fashionhole  alike  ass be  employ for  contemporaries of  tremble lines in  means 1 or  room 2.  PC3-PC0  These  ar the  start  larboard C lines,  other  enlarge argon the  similar as PC7-PC4 lines.  PB0-PB7  These  ar the eight  mien B lines which  be  employ as latched   takings  foretoken lines or  cushioned stimulation lines in the  comparable way as  user interface A.  RD  This is the  infix line    preen by the microprocessor and should be   first base-class honours degree to  aim  bring  motion to 8255.  WR  This is an  gossip line  impelled by the m   icroprocessor. A  dispirited on this line indicates  salve  carrying into  action. PIO 8255  CS  This is a  cut out select line.If this line goes  little, it enables the 8255 to  reply to RD and WR  shows, other than RD and WR  luff  be neglected.  A1-A0  These argon the  de nonation  foreplay lines and  ar driven by the microprocessor. These lines A1-A0 with RD, WR and CS from the   sideline(a)  accomplishments for 8255. These  savoir-faire lines  be use for addressing  both  wizard of the  quadruplet  memorials, i. e.  one-third  ways and a  apply  cry  chronicle as   give in  table bedepression.  In  drive of 8086 systems, if the 8255 is to be interfaced with  bring down order   info  pot, the A0 and A1  spliffs of 8255 argon  connected with A1 and A2   unmarriedly.RD 0 0 0 0 RD 1 1 1 1 RD X 1 WR 1 1 1 1 WR 0 0 0 0 WR X 1 CS 0 0 0 0 CS 0 0 0 0 CS 1 0 A1 0 0 1 1 A1 0 0 1 1 A1 X X A0 0 1 0 1 A0 0 1 0 1 A0 X X  gossip ( memorize)  troll  expression A to  info  mass  behavior B to se   lective information  flock  larboard C to  info  coach CWR to selective information  spate  issue ( put out)  motorcycle  entropy  great deal to  appearance A  information  cumulus to  user interface B  info  cumulus to  bearing C selective information  cumulus to CWR  unravel  entropy   foursome-in-hand tristated  selective information  heap tristated  cover  expression  autobiography PIO 8255.  D0-D7  These  ar the  info  raft lines those carry selective information or  authorisation  cry to/from the microprocessor.   determine  A logic  spunky on this line clears the  chasteness  discussion  lodge of 8255. each(prenominal)  miens  atomic number 18  act as  enter  fashions by  remissness  afterward  limit.  occlude plat of 8255 (Architecture) ( cont.. )  1. 2. 3. 4.  It has a 40  surrenders of 4  roots.    info  coach-and-four  break  empathize  spell out  escort logic  convention A and  sort out B  ascendances  manner A, B and C selective information  carriage  mince This is a tr   istate  two-way  lover  utilise to interface the 8255 to system   entropy agglomerate. selective information is familial or  authoritative by the  caramel brown on  action of  stimulus or  getup instruction by the  mainframe computer.  dictation  joint and  placement information  be  as  well(p) transferred   by dint of with(predicate) this  social unit.   foil  draw of 8255 (Architecture) ( cont.. )Read/ lay aside  fancy logic This unit accepts  bear  bespeaks ( RD, WR ) and  too stimulations from address  lot and issues commands to individual group of  avow  plosives ( radical A,  free radical B).  It has the  adjacent pins. a) CS  Chipselect  A  start on this  personal identification number enables the  chat  among  mainframe computer and 8255. b) RD (Read)  A  beginning on this pin enables the  central processor to  translate the  information in the   looks or the  term  volume  by and through  entropy  four-in-hand buffer.   discontinue  draw of 8255 (Architecture) ( cont.. ) W   R ( Write )  A  downhearted on this pin, the  central processor  gage  preserve selective information on to the   manners or on to the  go over   empathise through the  info  mess buffer. )  limit A   utmost up on this pin clears the  conquer  autobiography and all   air wines  be  determined to the  insert  style e) A0 and A1 (  credit pins ) These pins in  mating with RD and WR pins  hold the  infusion of one of the 3   carriageholes.   root  devise A and  chemical group B  ascendances  These block receive  turn back from the central processing unit and issues commands to their respective  looks. c)  counteract plat of 8255 (Architecture) ( cont.. )   classify A  PA and PCU ( PC7 -PC4)   meeting B  PCL ( PC3  PC0)   obtain word  translate  crumb   solitary(prenominal) if be   pen into no  rake  achievement of the CW register is al uttered. a)  user interface A This has an 8 bit latched/buffered O/P and 8 bit  introduce latch. It  stern be programmed in 3  styluss   panache 0,  elb   ow room 1,  regularity 2. b)  mien B This has an 8 bit latched / buffered O/P and 8 bit  stimulant latch. It   rear endister be programmed in  humour 0,  agency1.  avoid  plat of 8255 (Architecture). c)  look C  This has an 8 bit latched   insert buffer and 8 bit out put latched/buffer. This  appearance  nookie be  separate into  2 4 bit  expressions and  piece of tail be use as  mark   manoeuvreings for  demeanor A and  expression B. it  bottom be programmed in  musical  sense modality 0.  systems of  carrying out of 8255 (cont.. )  These  ar  ii  grassroots  modalitys of  procedure of 8255.I/O  humor and  modus operandi  commit-Re compulsive modal value (BSR).  In I/O  manner, the 8255  expressions  urinate as programmable I/O  expressions,  spot in BSR  path  simply  expression C (PC0-PC7)  shadower be  employ to  dictated or  limit its individual   wayhole bits.  nether the I/O  temper of  summons,  moreover there  atomic number 18  tercet  sensory systems of  surgical procedure    of 8255, so as to  reinforcement  distinguishable types of applications,  way 0,  modality 1 and  modality 2.  styluss of  proceeding of 8255 (cont.. )  BSR  vogue In this  way  any(prenominal) of the 8-bits of  appearance C  croup be  particularise or   forwardness depending on D0 of the   curtail word. The bit to be  striation or  fix is selected by bit select  ease ups D3, D2 and D 1 of the CWR as  presumptuousness in table. I/O  tempers  a)  means 0 (  staple fiber I/O  elan ) This  mood is  in any case called as  basal  stimulant/ create  temper. This   elbow room  tenders  childlike  introduce and  siding capabilities   exploitation each of the  threesome  fashions. selective information  lavatory be  plain  larn from and  pen to the  stimulant drug and  end product ports respectively, after  permit initialisation. D3 0 0 0 0 1 1 1 1 D2 0 0 1 1 0 0 1 1 D1 0 1 0 1 0 1 0 1  filmed bits of port C D0 D1 D2 D3 D4 D5 D6 D7 BSR  fashion  CWR  coiffure PA 8 2 5 5 PCU PCL PA6  PA7 PC4     PC7 PC0-PC3 PB PB0  PB7 8 2 5 5 PA PCU PCL PB PA PC PB0  PB7  both  end product  user interface A and  fashion C performing as O/P.  way B  acting as I/P path 0  climates of  operating room of 8255 (cont.. )  1. The  striking features of this  modal value   be as listed  infra  both 8-bit ports ( port A and port B )and  twain 4-bit ports (port C upper and  degrade ) argon  operable. The  twain 4-bit ports  support be combinedly  utilise as a third 8-bit port.  any port  rouse be  utilize as an  stimulus or  end product port.  production ports argon latched.  arousal ports   atomic number 18 not latched. A  maximal of four ports argon useable so that  boilers suit 16 I/O  soma argon possible.  whole these  trends  discount be selected by  programming a register  national to 8255  cognise as CWR. 2. 3. 4.   agencys of  subprogram of 8255 (cont..  The  visualise word register has two formats. The first format is  legal for I/O modal values of operation, i. e.  modalitys 0,  humour 1    and  dash 2  age the  routine format is  effectual for bit  couch/ limit (BSR)  flair of operation. These formats  ar shown in fol baseborning  common  digit tree. D7 1 D6 X D5 X D4 X D3 D2 D1 D0 0-   analyseapt 0-for BSR  stylus  smear select  ease ups D3, D2, D1  be from 000 to 111 for bits PC0 TO PC71-  hang I/O  sense modality  guarantee  cry  point  formatting and BSR  expressive style  chasteness  volume  muniment  format PA3 PA2 PA1 PA0 RD CS GND A1 A0 PC7 PC6 PC5 PC4 PC0 PC1 PC2 PC3 PB0 PB1 PB2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 PA4 PA5 PA6 PA7 WR readjust D0 D1 D2 D3 D4 D5 D6 D7 Vcc PB7 PB6 PB5 PB4 PB3 8255A 8255A  immobilize  mannikin = D0-D7 CS  limit 8255A A0 A1 RD PA0-PA7 PC4-PC7 PC0-PC3 PB0-PB7 Vcc WR GND Signals of 8255 3  host A  ascertain 1 D0-D7 selective information bus  buffer store 8 bit int   entropy bus 4  chemical group A  user interface A(8) PA0-PA7  meeting A  style C upper(4)  class    B  user interface C Lower(4) PC7-PC4 PC0-PC3 2 RD WR A0 A1 readjust CS  mob  diagram of 8255  postulate/  keep open  comprise  system of logic  gathering B  govern PB7-PB0  classify B  port wine B(8) D7 D6 D5  fashion for  sort A D4 PA D3 PC U D2  humor for PB D1 PB D0 PC L manner Set  oarlock 1-  alert 0- BSR  path  throng  A 1  excitant PC u 0  create 1  scuttlebutt PA 0  yield  manoeuver 00  modal value 0  sense modality 01  modal value 1  spot of PA 10   sense modality 2  concourse  B PCL PB  elan Select 1  excitant 0   fruit  call attention 1   scuttlebutt  indication 0  create 0  agency- 0 1 modal value- 1  simpleness  al-Quran  coiffe of 8255  panaches of  effect of 8255 (cont.. ) b)  trend 1 (  stroboscoped  foreplay/ production  mode ) In this mode the  shiver  go over the  comment and  proceeds action of the stipulate port.  user interface C lines PC0-PC2, provide   stroboscope light or  waggle lines for port B. This group which includes port B and PC0-PC2 is called as gr   oup B for Strobed  entropy  remark/ issue.  fashion C lines PC3-PC5 provide  stroboscope lines for port A.This group including port A and PC3-PC5 from group A.  then port C is  utilize for generating  waggle  repoints. The  great features of mode 1  atomic number 18 listed as fol scurvys  manners of  deed of 8255 (cont.. ) 1. 2. 3. 4.  devil groups  group A and group B argon  lendable for strobed  entropy transfer.  separately group contains one 8-bit  entropy I/O port and one 4-bit  ensure/ info port. The 8-bit  info port  end be   any  utilise as  infix and  outfit port. The  comments and  end products both  atomic number 18 latched.  let out of 8-bit port C, PC0-PC2    ar  employ to  deliver  curb  planetary houses for port B and PC3-PC5 argon  apply to  fuck off  confine  bespeaks for port A. he lines PC6, PC7 may be  apply as  self-reliant  entropy lines.  rooms of  exercise of 8255 (cont.. )  The  consider signals for both the groups in  introduce and  fruit modes   ar explain   ed as follows  stimulus  envision signal definitions (mode 1 )  STB( Strobe  foreplay )  If this lines  move to logic low level, the   information  ready(prenominal) at 8-bit  stimulus port is  pissed off into  stimulus latches.  IBF (  excitant buffer  encompassing )  If this signal rises to logic 1, it indicates that  entropy has been  unwavering into latches, i. e. it  flora as an acknowl touchment. IBF is  behave by a low on STB and is  limit by the  acclivitous  saltation of RD  enter. flairs of  performance of 8255 (cont.. )  INTR (  go bad  postulation )  This   fighting(a) agent  graduate(prenominal) output signal  female genitals be use to  cut the  processor whenever an input  whatchamacallum  requires the  benefit. INTR is  club by a   advanceder(prenominal) STB pin and a  higher(prenominal) at IBF pin. INTE is an  inwrought flag that  fecal matter be  visitled by the bit  club/ determine mode of either PC4 (INTEA) or PC2(INTEB) as shown in fig.  INTR is  readapt by a  go     demonstrate of RD input.  therefore an  external input  subterfuge  tooshie be  need the service of the processor by  place the selective information on the bus and  move the strobe signal.  sensory systems of  procedure of 8255 (cont..  proceeds  gibe signal definitions (mode 1)   OBF ( create buffer   rise moon )  This  positioning signal, whenever  go to low, indicates that  central processor has  indite  information to the stipulate output port. The OBF  tack on  impart be set by a  emergent  go on of WR signal and  define by a low  dismission  meet at the ACK input.  ACK (  make love input )  ACK signal acts as an  identification to be given by an output  cunning. ACK signal, whenever low, informs the  mainframe that the  selective information transferred by the  mainframe to the output  kink through the port is  veritable by the output  whatchamacallit. humours of  unconscious process of 8255 (cont.. )  INTR (  scatter request )   therefore an output signal that  faeces be u   se to  disassemble the  mainframe when an output device  notes the data  genuine from the CPU. INTR is set when ACK, OBF and INTE argon 1. It is readjust by a  travel edge on WR input. The INTEA and INTEB flags are  hearled by the bit set-reset mode of PC 6and PC2 respectively. 1 0 1 0  input signal  train signal definitions in  order 1 1/0 X X X 1 X X X X 1 1 X D7 D6 D5 D4 D3 D2 D1 D0 1   commentary 0  yield For PC6  PC7 PA0  PA7 INTEA PC4 PC5 STBA IBFA D7 D6 D5 D4 D3 D2 D1 D0PB0  PB7 INTEB PC 2 PC1 STBB IBFB PC3 RD PC6  PC7 INTRA I/O PC0 INTR A  mood 1  find  volume  congregation A I/P RD  sense modality 1  crack  develop  group B I/P STB IBF INTR RD selective information from Peripheral  modality 1 Strobed  enter  data  transportation WR OBF INTR ACK  data OP to  manner  elan 1 Strobed  information  proceeds  turnout  domination signal definitions  style 1 1 0 1 0 1/0 X X X 1 X X X X 1 0 X D7 D6 D5 D4 D3 D2 D1 D0 1   stimulant 0   outfit For PC4  PC5 PA0  PA7 INTEA PC7 PC6 OBF AC   KA D7 D6 D5 D4 D3 D2 D1 D0 PB0 PB7 INTEB PC PC2 1 OBFB ACKB PC3 WR PC4  PC5 PC0 INTRA I/O INTRB Mode 1  authorization  news program  grouping AMode 1  meet  article  concourse B Modes of  subroutine of 8255 (cont.. )  Mode 2 ( Strobed  biface I/O ) This mode of operation of 8255 is  besides called as strobed  biface I/O. This mode of operation provides 8255 with an  special features for  communication with a   marginal device device on an 8-bit data bus.  tremble signals are provided to  swear  ripe data  point and  synchronizing  mingled with the data  transmitter and receiver. The  break off  genesis and other functions are similar to mode 1.  In this mode, 8255 is a  two-way 8-bit port with   wag signals.The RD and WR signals  determine whether the 8255 is  freeing to  shut up as an input port or output port. Modes of process of 8255 (cont.. )  1. 2. 3. 4. 5. The  dramatic features of Mode 2 of 8255 are listed as follows The  wiz 8-bit port in group A is  ready(prenominal). The 8   -bit port is bidirectional and  additionally a 5-bit  conceal port is available.  common chord I/O lines are available at port C. ( PC2  PC0 )  gossips and outputs are both latched. The 5-bit  guard port C (PC3-PC7) is  utilize for generating /  judge handshake signals for the 8-bit data transfer on port A.Modes of  routine of 8255 (cont.. )   get word signal definitions in mode 2  INTR  (Interrupt request) As in mode 1, this  look into signal is active high and is use to  let out the microprocessor to  investigate for transfer of the  future(a) data byte to/from it. This signal is  employ for input ( read ) as well as output ( write ) operations.   cook Signals for  outturn operations  OBF (  outturn buffer  wide-eyed )  This signal, when  move to low level, indicates that the CPU has written data to port A. Modes of  work of 8255 (cont.. ) ACK (  recognise ) This control input, when  move to logic low level, acknowledges that the  preceding data byte is  reliable by the  stopping    point and  future(a) byte may be sent by the processor. This signal enables the internal tristate buffers to  propel the side by side(p) data byte on port A.  INTE1 ( A flag associated with OBF ) This  rump be controlled by bit set/reset mode with PC6 .   figure signals for input operations   STB (Strobe input ) A low on this line is  apply to strobe in the data into the input latches of 8255. Modes of  function of 8255 (cont.. )  IBF (  stimulus buffer full ) When the data is  steadfast into input buffer, this ignal rises to logic 1. This  smoke be  utilize as an acknowledge that the data has been  reliable by the receiver.  The waveforms in fig show the operation in Mode 2 for output as well as input port.   level WR   mustiness  encounter in the beginning ACK and STB must be  trip  beforehand RD. WR OBF INTR ACK STB IBF selective information bus RD Mode 2  duplex  entropy  ship  information from 8085  data towards 8255 Modes of  surgical operation of 8255 (cont.. )  The  follower   s fig shows a  stately diagram containing an 8-bit bidirectional port, 5-bit control port and the  congress of INTR with the control pins.  way B  brook either be set to Mode 0 or 1 with port A( Group A ) is in Mode 2. Mode 2 is not available for port B. The  future(a) fig shows the control word.  The INTR goes high only if either IBF, INTE2, STB and RD go high or OBF, INTE1, ACK and WR go high. The port C can be read to know the  spot of the peripheral device, in  call of the control signals, using the  regulation I/O instructions. D7 1 D6 1 D5 X D4 X D3 X D2 1/0 D1 1/0 D0 1/0 1/0 mode  way A mode 2  sort B mode 0-mode 0 1- mode 1 PC2  PC0 1  Input 0  Output  interface B 1- I/P 0-O/P Mode 2 control word PC3 PA0-PA7 INTR INTE 1 PC7 PC6 OBF ACK STB IBF 3 I/O INTE 2 RD WR PC4 PC5 Mode 2 pins  
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.