Commit Graph

6 Commits

Author SHA1 Message Date
Tadashi G. Takaoka 8564f42b66 [simio] support Timer_B compare latch grouping 2018-07-22 21:39:29 +09:00
Tadashi G. Takaoka c53f697b76 [simio] support Timer_B compare latch double-buffering 2018-07-21 16:55:12 +09:00
Tadashi G. Takaoka f9f897e95e [simio] support Timer_B
Timer_B is identical to Timer_A with the following exceptions.

  1. The SCCI bit function is not implemented in Timer_B.
  2. The interrupt vector word of TBIFG is different than TAIFG one.
  3. The length of Timer_B is programable to be 8, 10, 12, or 16 bits.
  4. Timer_B TBCCRx registers can be double-buffered.
  5. Timer_B TBCCRx registers can be grouped.

This change implements 1, 2, and 3.
Double-buffering and grouping TBCCRx will be following.
2018-07-21 16:55:08 +09:00
Tadashi G. Takaoka 8db02ae3d4 [simio] Fix timer capturing by software 2018-07-21 16:48:45 +09:00
Tadashi G. Takaoka d49dcefec6 [simio] Fix changing timer period 2018-07-21 16:42:59 +09:00
Tadashi G. Takaoka b323849d8a [simio] Add timer tests 2018-07-21 16:00:12 +09:00