Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

timer reset

timer reset

2005-02-28 by zvonkobharije

hello

i have a question regarding timer reset in lpc2138. (pclk = clk / 4)

then I want to reset timer and I set T0TCR = 1. 
when I want to start timer again, I have to set T0TCR to 0 - do I have
to wait for pclk or can I set T0TCR = 0 immediately? 

thx
Zvonko

Re: timer reset

2005-03-02 by peterburdine

--- In lpc2000@yahoogroups.com, "zvonkobharije" <zvonko@h...> wrote:
> 
> hello
> 
> i have a question regarding timer reset in lpc2138. (pclk = clk / 4)
> 
> then I want to reset timer and I set T0TCR = 1. 
> when I want to start timer again, I have to set T0TCR to 0 - do I have
> to wait for pclk or can I set T0TCR = 0 immediately? 
> 
> thx
> Zvonko

I think you may be reading it wrong.

To Reset
T0TCR = 0x2;

To Start
T0TCR = 0x1;

The numbers in the columns are the bit numbers, not values.

Re: timer reset

2005-03-02 by zvonkobharije

--- In lpc2000@yahoogroups.com, "peterburdine" <lordofdawn@h...> wrote:
> 
> --- In lpc2000@yahoogroups.com, "zvonkobharije" <zvonko@h...> wrote:
> > 
> > hello
> > 
> > i have a question regarding timer reset in lpc2138. (pclk = clk / 4)
> > 
> > then I want to reset timer and I set T0TCR = 1. 
> > when I want to start timer again, I have to set T0TCR to 0 - do I have
> > to wait for pclk or can I set T0TCR = 0 immediately? 
> > 
> > thx
> > Zvonko
> 
> I think you may be reading it wrong.
> 
> To Reset
> T0TCR = 0x2;
> 
> To Start
> T0TCR = 0x1;
> 
> The numbers in the columns are the bit numbers, not values.

damn... yeah, you're right. I feel very embarassed... :(

ok, again: if I reset timer (T0TCR = 0x2) and then start it again
(T0TCR = 0x1), do I have to wait for pclk before I set T0TCR to 0x1 or
not?

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.