On Thu, Jul 11, 2013 at 10:28:21PM +0800, electronic.consultation.au@gmail.= com wrote: > Here's the complete code Which you have sent out several times. I don't think we need to see it again.=20 Trust when I say that it's not our job to write your code for you. You have found that Joe and I have been very helpful in explaining how things get done. However, you have done a poor job of explaining why it is that you have structured your code the way that you have, and more importantly why you have not seemed to have taken any of our advice as to how to restructure it. When we ask questions, we are trying to figure out how to best help you get done what needs to be done. It's difficult when you do not answer them, yet come back with the same questions that you asked before. So let's try again: 1. Why do you have 1 ms, 10 ms, 100 ms, and 1 S timers? Do you need the finer resolution just to blink an LED? 2. Why do your counters count up instead of counting down? 3. Why do you have a 4 file, interrupt based, complicated code structure simply to blink an LED? Is this structure in place because there is a more complete framework you plan to make this a part of? Please come back and answer these. Then we may be able to make some progress. At this point you are not having a coding problem. You are having a design concept problem. So continuing to send out code is not going to help very much. I'm happy to help. But I really need some answers to do so. BAJ > On 11/07/2013 7:34 AM, IVP wrote: > >>bcf STATUS, RP0 ;Select Bank 0 > >>bcf STATUS, RP1 > >banksel is better, eg > > > >banksel COUNT > > > >banksel PORTB > > > >banksel TRISB > > > >Joe >=20 > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Byron A. Jeff Chair: Department of Computer Science and Information Technology College of Information and Mathematical Sciences Clayton State University http://faculty.clayton.edu/bjeff --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .