On 22/06/2011 11:56 AM, Josh Koffman wrote: > On Tue, Jun 21, 2011 at 9:35 PM, David Duffy (AVD) > wrote: >> The chip is actually a PIC18F45K22. I was working on another board when >> I wrote my email ! >> >> I've just checked and ANSELx are not being cleared. Looks like I need >> to learn more about the BSR. > I'm currently working on an 18F25K22, the smaller sibling to yours. > Just a heads up, one thing I've learned to check for is that across > the various 18F chips the SFRs that are located in the access bank > sometimes change. That means while you think everything is taken care > of because you're in access, the register you want (and indeed used to > use in the access bank on some other chip) isn't in the access bank on > that chip so you're writing to the incorrect register. You were spot on Josh. I hadn't noticed that the ANSELx registers are=20 not part of the access bank. My sanity thanks you. :-) David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .