In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ammar wrote: 0- I tried lowering the speed but that did not solve the problem. 1- I also put a break line in the interrupt routine and the behavior is still the same. However, i noticed that it is not random as i thought it was before. Interestingly enough the interrupts trigger every third rollover of the RTCC. For example: after the first ISR the RTCC is reset to RTCC-50 but the debugger does not show an interrupt being issued on the next rolloff nor on the one after that but indeed on the third one. This happens EVERY time with any program that enables the RTCC. 2- I can avoid the change on the ports by pulling them up so that is indeed solved. 3- I doubt the the problem is due to EMF or RFI in the case of the RTCC as the problem persists in the same fashion in various locations. I tried it at my work computer, my house computer, my laptop, and with different cable lengths and at various distances from the computer. Anyway the regularity of the error kind of makes think it is not a noise issue. again here is the code i am runnig DEVICE SX28L,OSCHS2,TURBO,STACKX,OPTIONX IRC_CAL IRC_SLOW RESET Initialize FREQ 50_000_000 ORG 0 inc $0e mov w,#-50 retiw Initialize mov !option,#%10011111 ;enable rtcc interrupt Main :loop jmp :loop ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92453#m92513 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)