Drew, For 19.96 Mhz you need to set the oscillator to HS mode. Regards, Jim > I'm currently trying to port some POV software I wrote a while ago to a > 16f57, but am unable to get it to function in any way. I currently > have the pic (which is in a slim 28 pin DIP package) connected to a > 4.5v (metered at 6) wall wart power supply via pins 2 and 4 (vdd,vss), > and to a dip14 19.96 MHz oscillator via pin 27(clkin). > > The 57's currenty flashed with a program that does nothing but send all > I/O pins high (see bottom), but won't even do that. > > The oscillator is in XT mode, with neither the WDT or code-protect > enabled, the oscillator is functional (I borrowed a scope to make > sure), the code is both extremely simple, and compiles with no errors > or warnings from MPASM, and the programmer (a JDM) writes and verifies > the code successfully, yet the pic appears to be doing absolutely > nothing. Also, I've tried another 16f57, but got the same results... > > The current test code is as follows (though other code has been tested > unsuccessfully as well) > > list p=16F57 ; > include "p16F5x.inc" ; > > __CONFIG _CP_OFF & _WDT_OFF & _XT_OSC > > > org h'0' ; > > movlw b'00000000' ; > tris porta ; > tris portb ; > tris portc ; > > movlw b'11111111' ; > movwf porta ; > movwf portb ; > movwf portc ; > > END ; > > any idea what the problem may be, or what I might try next? > > Thanks for your help, > > Drew Pilcher > > _________________________________________________________________ > Get a preview of Live Earth, the hottest event this summer - only on > MSN http://liveearth.msn.com?source=msntaglineliveearthhm > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist