Updates:
Status: Accepted
Owner: robhamerling
Labels: Component-Device Component-Peripheral
Comment #1 on issue 139 by robhamerling: problem with adc on 16F1827
http://code.google.com/p/jallib/issues/detail?id=139
This looks like a combination of errors.
The device files of the newer PICs of the 12/16F18/19xx group, but also
e.g. 16f720/1, have their ADCS bits in ADCON1 enumerated. This will be
fixed with the next version of the device files: ADCS will be declared as
bit*3 variable.
But this may not solve the problem with Vref.
The adc_clock.jal contains a pretty complicated construction
for 'exceptional' PICs which have the ADCS bits scattered over ADCON0 and
ADCON1. See the list below (which may not be complete). While analysing the
problem it maybe a good moment to refactor this library when possible.
I suggest to add a bit*3 pseudo-variable to the applicable device files
which masks the scattering of ADCS bits. This would be a similar
construction as for scattered CHS bits of ADCON0 of some PICs (16f7x7
family).
Rob.
PICS with ADCS bits scattered over ADCON0 and ADCON1:
16F737 16F747 16F767 16F777 16F818 16F819 16F873A 16F874A 16F876A 16F877A
16F88
18F242 18F2439 18F248 18F252 18F2539 18F258 18F442 18F4439 18F448 18F452
18F4539 18F458
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.