AtoD (again)
"David Trethewey" <[email protected]> Tue, 23 May 2006 18:34:13 -0400
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Message-ID | <[email protected]> |
--===============0113765366== Content-Type: multipart/alternative; boundary="----=_Part_46186_24985381.1148423653215" ------=_Part_46186_24985381.1148423653215 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, Sorry about that previous message ( forgot the shift when I hit enter ) I am currently working on a project fir the pic16f876 and I am using picforth. My concern is with the analog to digital converter module. I have read the documentation for the pic and its A-to-D registers and have come across a few problems. First, the documentation says, for the ADCON1 register, bits 0,1,2,3 and 7 are used, but in the picforth.fs file these ar= e not the bits used, and they do not have the corresponding names. My second problem is from what looks to me to be a typo of some kind. In th= e pdf datasheet it lists the bits of the ADCON0 register, and it gives a brie= f description of each one. Under the go//done bit it explains: GO/DONE: A/D Conversion Status bit If ADON =3D 1: 1 =3D A/D conversion in progress (setting this bit starts the A/D conversio= n) 0 =3D A/D conversion not in progress (this bit is automatically cleared by hardware when the A/D conversion is complete) This clearly is confusing, because it is in fact the next ( implemented ) bit that is named ADON. Its description: ADON: A/D On bit 1 =3D A/D converter module is operating 0 =3D A/D converter module is shut-off and consumes no operating current Any helpful hints for implelentation would be gratefully appreciated. Thanks in advance. ------=_Part_46186_24985381.1148423653215 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, <br>Sorry about that previous message ( forgot the shift when I hit= enter )<br>I am currently working on a project fir the pic16f876 and I am = using picforth. My concern is with the analog to digital converter module. = I have read the documentation for the pic and its A-to-D registers and have= come across a few problems. First, the documentation says, for the ADCON1 = register, bits 0,1,2,3 and 7 are used, but in the=20 picforth.fs file these are not the bits used, and they do not have the corr= esponding names. <br>My second problem is from what looks to me to be a typ= o of some kind. In the pdf datasheet it lists the bits of the ADCON0 regist= er, and it gives a brief description of each one. Under the go//done bit it= explains:=20 <br><div style=3D"margin-left: 40px;">GO/DONE: A/D Conversion Status bit<br= >If ADON =3D 1:<br>1 =3D A/D conversion in progress (setting this bit start= s the A/D conversion)<br>0 =3D A/D conversion not in progress (this bit is = automatically cleared by hardware when the A/D <br>conversion is complete)<br></div>This clearly is confusing, because it = is in fact the next ( implemented ) bit that is named ADON. Its description= : <br><div style=3D"margin-left: 40px;">ADON: A/D On bit<br></div><div styl= e=3D"margin-left: 40px;"> 1 =3D A/D converter module is operating<br></div><div style=3D"margin-left:= 40px;">0 =3D A/D converter module is shut-off and consumes no operating cu= rrent<br><br></div>Any helpful hints for implelentation would be gratefully= appreciated.=20 <br><div style=3D"margin-left: 40px;">Thanks in advance. <br></div> ------=_Part_46186_24985381.1148423653215-- --===============0113765366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PicForth mailing list [email protected] http://lists.rfc1149.net/mailman/listinfo/picforth --===============0113765366==--