From: Yu Weiping Date: Mon, 14 Nov 2005 17:41:30 -0600 Subject: [U-Boot-Users] Decrementer timer do not works In-Reply-To: <17273.7080.42597.672378@waldo.lisle.iphase.com> References: <59bf3e6d0511141452q2a6fe2acr7f0f136d4d446c84@mail.gmail.com> <17273.7080.42597.672378@waldo.lisle.iphase.com> Message-ID: <59bf3e6d0511141541k1c2e63ccs2b7dd0118f313915@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I think Decrementer runs because every time I read the DEC register (SPR 22), different value returned. In the timer_interrupt, set_dec(decrementer_count) was called to reload the value of DEC register. I also tried to change decrementer_count value to 100, and then the value of DEC register I read out will always smaller than 100 (I tried many times). if I mask the call of set_dec in timer_interrupt, then I can read out big values (such as 0xFxxxxxxx, 0xExxxxxxx) for the DEC register. From this test, I guess the timer_interrupt was called after the exception generated. But the value of timestamp always be 0. It's hard to believe since in timer_interrupt, after calling set_dec, timestamp++ should be excuted. On 11/14/05, bbosch at iphase.com wrote: > > I don't have the data sheet in front of me at the moment, but I seem > to recall that the 7447 has a hardware pin which must be strapped > properly to enable the decrementer. U-Boot assumes the hardware is > configured this way. Without the proper pull up or down resistor, the > decrementer just does not run. > > --Brad > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20051114/ebea0b63/attachment.htm