> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Jason Hsu > Sent: 23 February 2010 14:42 > To: Microcontroller discussion list - Public. > Subject: [PIC]Moving result of ADRESL to Bank 00 in C > > In C code, how do you move the result of ADRESL from Bank 01 to Bank > 00 in C? In Assembly language, the thing to do is put the result of > ADRESL in the working variable, switch to Bank 00, and move the > working variable into another variable. How do you access the working > variable in C? It seems to be hidden away. > Generally you simply don't worry about banking when using higher level languages; this is one of the advantages. e.g. unsigned int adcResult; adcResult = (ADRESH << 8) | ADRESHL; Which compiler are you using? ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist