The truth behind coding

                                      To declare the PI/T
                                      registers to the
                                      correct memory
                                      mapping

                          In Chapter 11
                          • All of these are the internal
                          registers for Pi/T
                          • Why PI/T?
                          Work as input output system
                          whereas MP is only the brain
                          to process
Set PI/T PORTA as input

                                   Set PI/T PORTB as output



Why need to write this function!??
1)To set the PI/T PORTS either as input or output
2)To set the mode of the PI/T when interfacing
$80
                       To PI/T
Switch ON              Then CPU

 PADR = 1 or HIGH



                           Then CPU
                           Process

                          Generates signal
                                  $80
                          $80 to turn on Motor

Coding info

  • 1.
    The truth behindcoding To declare the PI/T registers to the correct memory mapping In Chapter 11 • All of these are the internal registers for Pi/T • Why PI/T? Work as input output system whereas MP is only the brain to process
  • 2.
    Set PI/T PORTAas input Set PI/T PORTB as output Why need to write this function!?? 1)To set the PI/T PORTS either as input or output 2)To set the mode of the PI/T when interfacing
  • 3.
    $80 To PI/T Switch ON Then CPU PADR = 1 or HIGH Then CPU Process Generates signal $80 $80 to turn on Motor