Keith Dowsett wrote: > The code will probably look something like this... > > Update_ADC movf PORTB,W ; Assumes no pins forced high/low > iorlw 0xF0 ; Set B7..B4 > movwf PORTB > swapf Adc_value,W ; Get new value in high bits > bsf STATUS,RP0 ; Go to page 1 > movwf TRISB > bcf STATUS,RP0 ; Back to page 0 > > I've assumed that none of the port B pins are being forced high/low, > otherwise you will have to mirror the port in RAM and write that value > instead. I've also assumed that your ADC value is stored in the low nibble > of a byte with zeroes in the high nibble. > > Hope this helps, > > Keith. > > ========================================================== > Keith Dowsett "Variables won't; constants aren't." > > E-mail: kdowsett@rpms.ac.uk > WWW: http://kd.rpms.ac.uk/index.html It does help ...It helped me to decide to keep the diodes and use the program space for aught else.I think the page swapping buisness was the proverbial straw Thanks to all who replied to my post. Tony M.