User guide

CIF Peripheral Model - SimpleTimer
86 CoMET Version 5.9 – Tutorial
Event Responses for SimpleTimer
From the specification we can prepare the following table of events and the corresponding
responses.
Event Response
Reset Deassert outputs, clear all registers
MTR (Match Timer Register) equal to
General Timer register
Corresponding MatchInterrupt Port goes high
if Match Enabled and Interrupt Enabled
Bus Read Return value of register determined by
address
Bus Write GTR General Timer Register General Timer Register set to new value
Bus Write Match Timer Register n (MTRn) MTRn set to value.
Bus Write Timer Enable Register (TER) Enable or disable MTRn depending on value
written
Bus Write Timer Interrupt Enable Register
(TIER)
Enable or disable interrupt n depending on
value written
Unmatch (MTR (Match Timer Register) equal
to General Timer register). Note that this
takes place one click tick after a Match.
Respond to Match no longer true. Interrupt
stays high.