Page 194 - Programming Microcontrollers in C
P. 194

Timers    179




                    MC68HC05B6 Internal Bus

                       Internal
                      Processor
                       Clock       8-bit
                                   Buffer


                                High   Low   High   Low   High   Low   High   Low   High   Low
                                Byte   Byte   Byte   Byte   Byte   Byte   Byte   Byte   Byte   Byte
                                 16-bit      Output    Output    Input     Input
                        ÷ 4    Free Running  $18   Compare  $16   Compare   $1E   Capture   $14   Capture   $1C
                                Counter   $19   Register 1  $17   Register 2  $1F   Register 1  $15   Register 2  $1D
                                Counter
                                Alternate
                                Register   $1A
                                      $1B
                     Internal Timer Bus
                       To PLM
                                 Overflow    Output    Output    Edge      Edge      TCAP2
                                  Detect    Compare   Compare    Detect    Detect     Pin
                                  Circuit   Circuit 1   Circuit 2   Circuit 1   Circuit 2
                                                                                     TCAP1
                                                                                      Pin

                                                                            D        TCMP2
                                                                               Q      Pin
                                                                            C
                                                                            Latch
                                                                            D        TCMP1
                                                                               Q
                                                                                      Pin
                     Timer   7   6   5   4   3                              C
                    Status   ICF1  OCF1   TDF  ICF2  OCF2                   Latch
                   Register
                      $13                 ICIE  OCIE   TOIE   FOLV2   FOLV1   OLVL2   IEDG1   OLVL1   Timer
                                                                      Control
                                                                      Register
                                                                      $12










                           Input   Output   Overflow
                          Capture   Compare   Interrupt    Figure 4-2:
                          Interrupt   Interrupt   $1FF4.5
                          $1FF8.9   $1FF6.7                16-Bit Timer For The M68HC05B6
   189   190   191   192   193   194   195   196   197   198   199