Hi everyone, I have been having a lot of problems programming a PIC12C671. Basically, the behaviour of the code is dependent on the order of the sub-routines in MPLAB. Some routines fail to work when in some positions. All functions have individually been shown to work. The functions being called are located one after another from=20 ORG 05 and the main control loop starts after the last subroutine. I am aware of paging, but I am not sure whether this effects this chip. I have managed to get it working by putting some of the functions in-line (i.e. don't call them, just write them out in full when needed). When the software simulator (MPLAB) is run everything seems fine. I use the power up timer and the internal RC oscillator fuse settings=20 so that two pins are freed up for I/O ie the MCLR and the oscillator=20 pins become available. My s/ware that does the burning (PICPROG by Forest) says the last address of my code is 0210. Any ideas/explanations would be great. Many thanks, Steve -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.