Exact match. Not showing close matches.
PICList
Thread
'[PIC]: Problem with first 16F877 test program (PLA'
2003\02\01@133112
by
Joe Farr
|
Thanks Olin, I see your point..
Hi All,
I'm new to PICs and am trying to "port" my Z80 assembler skills to
something that belongs in this century but am having problems with my
test program.
Here it is:
LIST p=16f877,c=140
include "p16f877.inc"
org 0
clrf STATUS
goto BootStart
org 4
ISR goto 5 ; Setup Interupt Address
org 5
BootStart
clrf PORTB
bsf STATUS,RP0 ; set RAM Page 1 for TRIS registers
movlw b'00000000'
movwf TRISB ; set PORTB for all outputs
bcf STATUS,RP0 ; back to RAM page 0
LoopAgain
;movlw 0x00
;movwf PORTB ; All PORTB bits off
;movlw 0xFF
;movwf PORTB ; All PORTB bits on
incf W, 0 ; W = W + 1
movwf PORTB ; PORTB = W
goto LoopAgain
end
Now I thought that 'incf W, 0' would perform a W=W+1 operation, and that
when it reached 255, it would simply start from 0 (since it's an 8-bit
register), but this doesn't seem to be the case.
If I use the 4 commented lines instead of the 3 lower ones, then I get a
nice square wave on all 8 I/O pins, so I know the PIC is working and
that my programmer is ok etc.
All I expect the above test program to do is count in binary flashing 8
LEDs....
So what stupid thing am I doing wrong...
Any help much appreciated,
Joe
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2003\02\01@140024
by
Thomas C. Sefranek
Try this:
INCF PORTB, F ; Race the PORT B.
GOTO LoopAgain ; Thank you Sir, may I have another?
*
| __O Thomas C. Sefranek spam_OUTWA1RHPTakeThisOuT
ARRL.NET
|_-\<,_ Amateur Radio Operator: WA1RHP
(*)/ (*) Bicycle mobile on 145.41, 448.625 MHz
hamradio.cmcorp.com/inventory/Inventory.html
http://www.harvardrepeater.org
> {Original Message removed}
2003\02\01@162202
by
You can *not* use W as the source for any instruction
that operates on some SFR or GPR. Only as the target
(result, to the right of the comma in your example).
This is one of the nice things with the 18F series, where
the W register also is "mapped" as SFR "WREG", btw.
Jan-Erik Söderholm.
> incf W, 0 ; W = W + 1
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2003\02\01@175659
by
Olin Lathrop
> Thanks Olin, I see your point..
But apparently not enough to do anything about it:
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2003\02\01@202230
by
fred jones
|
I think most of the time you post only to get your adverstisement on the
list just one more time...
{Quote hidden}>From: Olin Lathrop <
.....olin_piclistKILLspam
@spam@EMBEDINC.COM>
>Reply-To: pic microcontroller discussion list <
PICLIST
KILLspamMITVMA.MIT.EDU>
>To:
.....PICLISTKILLspam
.....MITVMA.MIT.EDU
>Subject: Re: [PIC]: Problem with first 16F877 test program (PLAIN TEXT)
>Date: Sat, 1 Feb 2003 17:55:21 -0500
>
> > Thanks Olin, I see your point..
>
>But apparently not enough to do anything about it:
>
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset="us-ascii"
> > Content-Transfer-Encoding: quoted-printable
>
>
>*****************************************************************
>Embed Inc, embedded system specialists in Littleton Massachusetts
>(978) 742-9014,
http://www.embedinc.com
>
>--
>
http://www.piclist.com hint: PICList Posts must start with ONE topic:
>[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
2003\02\02@031700
by
Joe Farr
Well Olin,
Since I don't have an Email client that dates back from the 50's, it's
difficult to test - so I changed to plain text on the hope it would suit
you. If you ask me, personally I think it looks lame, but you didn't
so...
As for the '>' thing, I think your find that it's your Email client that
puts those in...
Everybody else who managed to decipher my totally unreadable text...
thanks for your constructive help. I'm much wiser, on many fronts.
{Original Message removed}
2003\02\02@070025
by
michael brown
|
On Saturday 01 February 2003 04:55 pm, you wrote:
> > Thanks Olin, I see your point..
>
> But apparently not enough to do anything about it:
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset="us-ascii"
> > Content-Transfer-Encoding: quoted-printable
>
> *****************************************************************
> Embed Inc, embedded system specialists in Littleton Massachusetts
> (978) 742-9014, http://www.embedinc.com
I don't know what's wrong with your e-mail client (now), but you may wish to check into it.
Some reasons to switch *your* mail clent would be:
1) OE doesn't wrap correctly, which causes much mangling of the replies. (I really hate this)
2) It still doesn't do the signature according to the RFC, even though it's 5 versions later. 3) It is single handedly responsible for the majority of the internet virus problems.
4) It's default settings violate all nettiquete rules.
Oh yeah, and one other dumb thing about it.....
begin big_scary_virus.vbs
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@071516
by
Jake Anderson
OE gets a bad rap because the userbase dosent know how to use it.
the people who use other clients are generally far more computer literate
if OE is kept up to date and the person has some idea of what they are doing
then there are few problems with it that i have noticed. (i've had many real
viruses sent to me and never been infected)
{Original Message removed}
2003\02\02@121937
by
Olin Lathrop
> As for the '>' thing, I think your find that it's your
> Email client that puts those in...
That's exactly the problem. It's supposed to, but doesn't for some reason
when replying to messages that were sent with quoted printable encoding.
It does it correctly for plain text messages. I manually added the "> "
to the two lines above.
I'm using MS Outlook Express 6.00.2600.0000. I've got the boxes checked
for "Insert > in front of lines replying too" and "Include message in
reply", and unchecked "Reply to messages using the format in which they
were sent". If anyone can tell me how to make Outlook Express initialize
the replies to quoted printable messages properly I'd be glad to try it.
*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@123742
by
Olin Lathrop
> Some reasons to switch *your* mail clent would be:
> 1) OE doesn't wrap correctly, which causes much mangling of the
replies.=20
> (I really hate this)
I hate this too. Does anyone know how to make MS Outlook Express properly
wrap the text your write, but not wrap text you are replying to? That's
what I'd like it to do, but I can only get it to either wrap all or wrap
none, so I set it to all.
*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@131218
by
michael brown
On Sunday 02 February 2003 11:36 am, you wrote:
> > Some reasons to switch *your* mail clent would be:
> > 1) OE doesn't wrap correctly, which causes much mangling of the
>
> replies.=20
>
> > (I really hate this)
>
> I hate this too. Does anyone know how to make MS Outlook Express
> properly wrap the text your write, but not wrap text you are replying
> to? That's what I'd like it to do, but I can only get it to either
> wrap all or wrap none, so I set it to all.
I don't know of any way to actually fix OE, but if you install oe-quotefix, it will make life better for you. It fixes the wrapping issue and also the signature line separator will be compliant. It has some other features you may or may not like.
http://home.in.tum.de/~jain/software/oe-quotefix/
The best fix is to stop using OE, of course. ;-)
michael
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@131816
by
Steve Russell
2003\02\02@135422
by
Jason Harper
Olin Lathrop wrote:
> If anyone can tell me how to make Outlook Express initialize
> the replies to quoted printable messages properly I'd be glad to try it.
There is a free program here that apparently fixes this and other quoting
problems in OE:
http://jump.to/oe-quotefix
Jason Harper
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@150623
by
Olin Lathrop
>>
I don't know of any way to actually fix OE, but if you install
oe-quotefix, it will make life better for you. It fixes the wrapping
issue and also the signature line separator will be compliant. It has
some other features you may or may not like.
home.in.tum.de/~jain/software/oe-quotefix/
<<
Hm. Looks interesting. Have you or anyone else actually used this? I
don't want to end up installing a trojan horse.
> The best fix is to stop using OE, of course. ;-)
Ain't gonna happen.
*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@162953
by
Peter L. Peres
On Sun, 2 Feb 2003, Olin Lathrop wrote:
*>> The best fix is to stop using OE, of course. ;-)
*>
*>Ain't gonna happen.
Well you can try something else from time to time. Eudora is known to have
a lot of users and relatively few complaints. It's been around for a while
too.
Peter
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2003\02\02@171409
by
michael brown
|
On Sunday 02 February 2003 02:03 pm, you wrote:
> I don't know of any way to actually fix OE, but if you install
> oe-quotefix, it will make life better for you. It fixes the wrapping
> issue and also the signature line separator will be compliant. It
> has some other features you may or may not like.
>
> home.in.tum.de/~jain/software/oe-quotefix/
> <<
>
> Hm. Looks interesting. Have you or anyone else actually used this?
> I don't want to end up installing a trojan horse.
I used it for a while, it worked ok, but did seem to have it's own little quirks. It was a newish version at the time and, IIRC there have been a couple of releases since then.
> > The best fix is to stop using OE, of course. ;-)
>
> Ain't gonna happen.
Too bad for you. ;-) How about telling me whats up with my PWM/comparator issue. Does the data sheet mean to say that I shouldn't operate the comparator inputs (16f628) with less than .6V or more than 4.4V for reliable operation? (assuming a 5.0V supply)
michael
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
More... (looser matching)
- Last day of these posts
- In 2003
, 2004 only
- Today
- New search...