MPLAB simulation issue, as it doesn set bit 0 of PORTA

Status
Not open for further replies.

coolchip

Full Member level 2
Joined
Nov 17, 2003
Messages
125
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
1,109
mplab problem

Simulating the following in MPLAB v7.20 debugger doesn't set bit 0 of PORTA of 16f877A.

clrw
bsf STATUS, RP0
clrf TRISA
bcf STATUS, RP0
bsf PORTA, 0
retlw 0

Everything else works fine.
Anybody?
 

Re: mplab problem

did u forget to configure ADCON ??? put 0x07 in the register

regards
 

    coolchip

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…