Wayne_
Joined: 10 Oct 2007 Posts: 681
|
|
Posted: Fri Jul 30, 2010 8:46 am |
|
|
| mkuang wrote: | You do not need this actually:
#BYTE port_b = 0xF81
If you look at the file "18F4520.h" (I don't have that compiler installed on this PC) you should see something like:
#BYTE PORTB = 0xF81 already in there.
In your code you can simply omit your port_b declaration and use the PORTB already declared by your compiler. |
CCS header files don't contain all the register definitions by default, although there is a way to re-create the files with them in (I believe) |
|