Maker Pro
Maker Pro

pic 16f84

brpathirana

Dec 29, 2009
1
Joined
Dec 29, 2009
Messages
1
Hellow, I'm just begining to learning about pic. I have some doubts regarding STATUS registers. If we consider the pic 16f84;

1) Why it consists of 2 nos of STATUS registers at 2 locations?
2) If it is needed to change from bank 0 to bank 1, is it possible to write the command following way?
bsf 03h,5
What will happen if we write the command in following way?
bsf 83h,5

Pl. help me.
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
The address of the STATUS register is duplicated in both banks so that you do not have to do a bank select before referencing it. Any reference to either address goes to the same physical register.

Bob
 
Top