Dave Turner wrote : > Firsties, thanks for the quick response - most mailing lists i use > take about 4 years average response. :-) > Second, the config is all saved in the mplab project. In the > configure menu, and the config bits part. I prefer to use this than > specify it in the code, because it's much clearer. Not for us. > The config bits are as follows: osc is extrc-osc2 as clock out. WD is > off. Power up is on. MCLR is on. brown out detect is on. low > voltage program is disabled - the ICD2 tells me to do this. all code > protection related stuff is off. Well, you say so. That doesn't *prove* anything... :-) No offence, it's just that most here likes to *know* how things are setup. What would you say if you in a day or two find out that some of the settings actualy wasn't as you *thought* ? > The list and include are all included in my custum include file. I > made it so I don't have to keep defining friendly names for things in > every project. > > I setup my own custom names for some of the SFRs, because at the time, > my resorce only showed me the addresses for the SFRs, not the actual > names. I don't rely understand what's you problem here. And I have never heard a resonable reason to *not* use the INC files included in MPLAB. What if you have made an error in your own defines of the SFR symbols ? > > About the PICdem 4 osc, it has some sort of real time clock stuff on > it, and I'm not absolutely sure what it does, which is one reason I'm > so worried about the baud rate. It says it has an RC osc, about 2MHz, > and a 32Khz on timer1. I am using the external RC osc, because my > ICD2 says I have to,... I know nothing about the IDC2, but I *do* know that an RC-osc will have a hard time to give you any relailable serial communication. You need *some* crystal (or maybe resonator) based osc to be able to use the UASRT (or maybe the prec internal osc block on newer devices). > although I think it might be possible to set it > up with an internal osc. I'm not sure what internal osc the 16F87 has > either. Doesn't the data sheet tell you that ? My copy does... This is fairly modern device with nanoWatt and the 8Mhz internal osc block, so it should have all options you need. > Finally, do you know if my method of bank switching is correct. Think so... Run the SIMulator on it and you'd be able to see the bank bits changing. Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist