Gentlemen i am couting a 60hz at ra3 in a 16c54. I am simulating this for = right now. My problem is that i count this pulse and then it is suppose = to increment a counter. Which it is doing fine but when i get to 60 this = timer is supposed to reset to zero and increnment another counter.this = next counter is supposed to count up to 60 also. then it is supposed to = increment a third counter which is supposed to count up to 12 then reset = to one but instead of doing that it just increments the all three = counters and keeps going up to 255.then it resets.=20 here is the a partial listing of my code=20 incf t1,f movlw 60 =20 subwf t1,f btfsc status,2 =20 goto t_hi I never see it go back to the top of the program until the three = counters all increment by one. I had a heck of time try to get simulate = a 60hz pulse inputed to ra3 in the sim which i am not sure if i have = that set up right. i contacted microchip and they told me to inputed it = using clock stimulus under sim stimulus. It is set up as 3 hi and 3 lo = pulses. does anybody have any suggestions=20 one thing is that the pre scaler cant be used. The pc board is wired up = for ra3. thanks mike johnston =20 =20 =20 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads