EmbeddedRelated.com
Forums

Quick PIC question

Started by Thomas Magma June 28, 2005
Are the ADRESH and the ADRESL registers writable in the PIC16F87x series? 
The documentation doesn't appear to say.

Thomas 


Thomas Magma wrote:
> Are the ADRESH and the ADRESL registers writable in the PIC16F87x series? > The documentation doesn't appear to say. > > Thomas > >
Hmm, DS30292B(the version of the spec I have) page 118 last sentence of section 11.4.1 "...(A/D disable) these registers can be used as two general purpose 8-bit registers." So it would appear you could if they are not being used for A/D conversion.
"Thomas Magma" <somewhere@overtherainbow.com> wrote in message 
news:zBlwe.114112$El.11070@pd7tw1no...
> Are the ADRESH and the ADRESL registers writable in the PIC16F87x series? > The documentation doesn't appear to say. > > Thomas >
see page 118 in the 16f877 datasheet When an A/D result will not overwrite these locations (A/D disable), these registers may be used as two general purpose 8-bit registers. Using a 16f877 or 16f877a ? Alex
PIC16F874A (44-TQFP)

 "general purpose 8-bit registers" this is great!! This makes it a really 
easy engineering change order then. 2 lines of code to fix this one!

Thanks
Thomas

"Alex Gibson" <news@alxx.net> wrote in message 
news:3ieegpFl6804U1@individual.net...
> > "Thomas Magma" <somewhere@overtherainbow.com> wrote in message > news:zBlwe.114112$El.11070@pd7tw1no... >> Are the ADRESH and the ADRESL registers writable in the PIC16F87x series? >> The documentation doesn't appear to say. >> >> Thomas >> > > see page 118 in the 16f877 datasheet > > When an A/D result will not overwrite these locations (A/D disable), > these registers may be used as two general purpose 8-bit registers. > > > Using a 16f877 or 16f877a ? > > Alex >