On Tuesday, in article <susQd.107945$K7.10020@fe2.news.blueyonder.co.uk> who@nowhere.com "Geek" wrote:>"Geek" <who@nowhere.com> wrote in message >news:n_5Qd.58731$68.10941@fe1.news.blueyonder.co.uk... >> > Hmmm. Very strange. >> > >> > I have checked the register definitions with the header available on the >> > Renesas WEB site and they seem fine. I have also tried reading back the >> > register values and they are set correctly. >> > >> > I have all the unused interrupt vectors set to null, if I uninstall the >> TPU1 >> > vector then the program crashes - as expected. >> > >> > I find that the TIER1, TSTR and MSTPCR settings seem to work as expected, >> > but the TCR1 and TGR1A registers don't make any difference what I set >> >them >> > to. This would make it look like a TCR1 setting problem - but I have >> > triple checked and it seems fine. >> > >> > I am thinking there is something unrelated to the timer that I am >> > missing setting up - or that my understanding of the manual is wrong. >> >> Found it! A stupid one on my part too embarrassing to mention. Thanks >> for assist. >> >I had the enable and disable interrupt routines the wrong way around. This >meant the interrupts were only enabled for short periods, rather than the >other way around. Ooops.We all do them and at least you can see we all do them. Glad your problem is solved. One thing helping with problems here and in other places I use, is that the bouncing of ideas can often help solve the problem. Sometimes I can learn things from other peoples approach to problems, sometimes it gives the spark to other ideas. There is also a satisfying feel to having achieved something useful. -- Paul Carpenter | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.gnuh8.org.uk/> GNU H8 & mailing list info <http://www.badweb.org.uk/> For those web sites you hate
H8S timer configuration problem
Started by ●February 13, 2005
Reply by ●February 15, 20052005-02-15
Reply by ●February 15, 20052005-02-15
Geek wrote:>... snip ...> > I had the enable and disable interrupt routines the wrong way > around. This meant the interrupts were only enabled for short > periods, rather than the other way around. Ooops.That gives someone with a similar problem one more thing to check. -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson