Rikard Bosnjakovic wrote: > On 3/8/07, michael brown wrote: > >> The 8 shouldn't work and the 9 below should result in only a 1 since >> you only have three output bits. > > That I was aware of, I just had the lines there for the sake of > curiousity and experimenting. You were right about the CMCON. Fixing > that quirk fixed the whole problem. Thanks. > > Now I'm getting somewhere, still can't wait until I get the real > chips. Try not to let the frustration get you down, you will spend very much time scratching your head when using these things. Once you learn the quirks, pitfalls and traps, these things are really quite amazing. I know the pages and banks are confusing right now, but you will learn and then it won't seem so bad. Soon, you'll wonder how you got by without them. At least that's how I feel anyway. :-) When you get your real chips, you will find what frustration is all about. ;-) Just kidding, but it will get interesting. Things will work in the simulator that won't work in the real world. For example, in the real world you have to get your PIC to boot when power is applied, the simulator has no such requirement. This means that the power supply has to ramp up faster than .05 V/mS (50V/S) so the device will come out of reset, and the oscillator has to start (no problem on the INTOSC, XTALs can be more fussy). The real world will also let you configure the PIC to use LVP, INTOSC and set /MCLR as an i/o pin, but then the real world can lock you out of reprogramming it forever. Yes get ready for the real world. ;-) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist