Quick PIC question

Jun 29, 2005 3 Replies

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.

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required