Thanks guys, I implemented all the changes you suggested, and, of course, it worked perfectly. Curious as to what the problem was, I tried undoing the changes I made one at a time. it ended up being, of all things, the mclr... argh! This had had me stuck for weeks! (I never really thought about the mclr floating, as the 12f509's I usually work with have never needed it) btw, about the oscillator being in xt mode, if I remember correctly, that only effects the drive current, which, since I'm using a powered oscillator, is irrelevant. Thanks again, Drew Pilcher >From: >Reply-To: "Microcontroller discussion list - Public." >To: piclist@mit.edu >Subject: Re: [PIC] Unable to get a 16f57 running, >Date: Tue, 19 Jun 2007 08:13:41 +0500 (CDT) > > > 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 _________________________________________________________________ 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