<x-flowed>Hi Guys,
another newbie, I'm trying to learn to program the Pic12c508/9 any help
would be great, however i have some code for the 16c622 and i would like to
take parts of it and insert it into a Pic12c508/9 looking at the commands
they seem alike. Is this possible and can anyone help?.
On Tue, Jan 04, 2000 at 02:59:15AM +0000, Martin Browne wrote:
> another newbie, I'm trying to learn to program the Pic12c508/9 any help
> would be great, however i have some code for the 16c622 and i would like to
> take parts of it and insert it into a Pic12c508/9 looking at the commands
> they seem alike. Is this possible and can anyone help?.
I'm afraid I don't know what a 16C622 is like, but chances are it is
similar to the 16F84. If so, then I've been there.
James Cameron wrote:
>
> On Tue, Jan 04, 2000 at 02:59:15AM +0000, Martin Browne wrote:
> > another newbie, I'm trying to learn to program the Pic12c508/9 any help
> > would be great, however i have some code for the 16c622 and i would like to
> > take parts of it and insert it into a Pic12c508/9 looking at the commands
> > they seem alike. Is this possible and can anyone help?.
>
> I'm afraid I don't know what a 16C622 is like, but chances are it is
> similar to the 16F84. If so, then I've been there.
>
> Have a look at http://quozl.us.netrek.org/porting-16f84-12c509/
>
> --
> James Cameron .....quozlKILLspam@spam@us.netrek.orghttp://quozl.us.netrek.org/
Used a few, back in my Parallax assembler days. It's been a while.
So - basic worries: Clock speed (20MHz down to 4MHz is a squeeze, if
your application used a fast crystal and needed it, potentially.) Code
Size 2k down to 1k, RAM 128 locations down to 41. And if they're using
those comparators, you'll need to do some of the "pin-twiddling" tricks
to handle those being absent, potentially. Also, fewer pins, but you
knew that <G>
Mark
--
I re-ship for small US & overseas businesses, world-wide.
(For private individuals at cost; ask.)
On Mon, Jan 03, 2000 at 08:47:13PM -0800, Mark Willis wrote:
> And if they're using those comparators, you'll need to do some of the
> "pin-twiddling" tricks to handle those being absent, potentially.
Which reminds me ... any pointers available to information on the
classic simple inaccurate analog to digital conversion possibilities
using a straight I/O pin?
I had a think over breakfast. Capacitor to ground and resistor to
voltage being measured. Lower pin to discharge capacitor, let pin
float, time how long it takes for capacitor to reach "1" potential.
Worries: non-linearity, how to calculate voltage from time properly,
current consumed when the capacitor is shorted by the pin latch, time
taken to measure things, and one can't measure very low voltages without
first amplifying them.
Presumably you could measure higher voltages if you are sure they will
not exceed the current limits of the pin through the resistance? I'm
thinking 12V here.