Get off the code folks. This morning right after I made my last post I pulled the 88 out of the bread board and plugged the 627 in. Same bread board, same power supply, same LCD, same wiring. The 627 is now showing 05:12:some seconds. It's clicking along just as happy as a pig in a mudhole. The code is what I sent on my first post except for 2 changes, the Config statement was changed and all reference to OSCCON was removed and of course the device statement. If it was a timing or code problem the 627 would react exactly like the 88.
The data sheet for the 88 says that if the WDT is set to off in the config Statement it can be toggled on/off by setting bits in the WDTCON register. It also say that if it is set on in the config statement it cannot be overriden. It is of course set off in the Config Statement but the prescaler is set to WDT I think in the OPTION Reg. I am now wondering if this setting might be turning the WDT back on.
I intend to try the following thing: manually set the WDT off again in the WDTCON reg, manually disable timer1 or timer2 interrupts (I am assuming they have interrupt capability) and take these actions the last thing in the setup.
The only 2 other things I can think of is that the part is bad or the programmer is messing up.
I want to discuss the programmer a little now. philba I'm using a programmer to to get the hex code into the aprt. The programmer is a Velleman K8048 programmer and small project board kit I put together several months ago. It has 6 LEDs and 4 push buttons besides the programmer. When I first got interested in the 16f88 I noticed that my programmer did not support it. I contacted Velleman and they verified that the programmer did not support the device. What that meant was that the software furnished with the programmer did not support the device. I downloaded IC-PROG. After many hours of internet searching I finally found out how to config the IC-PROG for the programmer. I think it like a JDM programmer. That software and programmer are what I have been using. I think I programmed the 627 with the Velleman software.
BTW the #1 pin on the 627 is broken off. Maybe I should break the #1 pin off the 88. Just kidding.