|
|
View previous topic :: View next topic |
Author |
Message |
mle Guest
|
16f877 STATUS register |
Posted: Fri Jul 18, 2003 8:41 am |
|
|
Hello,
Why are there four different status registers and how do I know which one to check?
Thanks,
mle
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516145 |
|
|
Charlie U Guest
|
Re: 16f877 STATUS register |
Posted: Fri Jul 18, 2003 9:59 am |
|
|
:=Hello,
:=Why are there four different status registers and how do I know which one to check?
:=Thanks,
:=mle
There is only one Status register, but it is accessible in all 4 banks. Within a C program, use #byte STATUS = 0x03 to declare the Status register and then access is as you would any other variable (int). You do not need to deal with bank switching, the compiler will handle that.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516150 |
|
|
mle Guest
|
great thanks! |
Posted: Fri Jul 18, 2003 10:06 am |
|
|
:=:=Hello,
:=:=Why are there four different status registers and how do I know which one to check?
:=:=Thanks,
:=:=mle
:=
:=There is only one Status register, but it is accessible in all 4 banks. Within a C program, use #byte STATUS = 0x03 to declare the Status register and then access is as you would any other variable (int). You do not need to deal with bank switching, the compiler will handle that.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516151 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|