piclist 2002\08\08\122617a >
Thread: Four byte counter - best method?
face BY : Mike Mansheim email (remove spam text)

>  Before you even start to do things like that, though, it might
>  be helpful to re-read the data sheet and notice that DECF doesn't
>  affect the Carry flag.

Interesting you mention that.  This is true for the 16 series, but NOT
for the 18 series.
I used a slightly modified version of John Payson's binary to decimal
routine from piclist.com on a 16 series chip - when I moved the code to
an 18 series chip, it didn't work.  It turned out that it was because
DECF now affected the carry flag.
So, I thought, sure would be nice if the instruction DIFFERENCES between
the series were documented somewhere, rather than just me discovering
them by slogging through the data sheets.  Then, hmmm, I wonder if
Microchip did exactly that.  From the back of the data sheet, with a
little poking around that obtuse website, and presto:  AN716.  Covers
the instruction differences and a lot more!  Of course, this is for the
'C' series; an 'F' series equivalent would be nice (and may even exist),
but this one is helpful.
Could have saved some time by looking for this first - my bad!

http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamBeGonespammitvma.mit.edu with SET PICList DIGEST in the body


See also: www.piclist.com/techref/microchip/time.htm?key=count
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Four byte counter - best method?

month overview.

new search...