PDA

View Full Version : Initiating 18F452



Astro
- 11th July 2006, 17:44
I am initiating 18F452. I am used Microcode plus - pic beginner's all-purpose symbolic instruction code pro pbp2.46 and mpasm suite.

As to configure the configuration bits? What necessary to add to the code?



'INCLUDE "P18F452.INC"

define osc 20

TRISB = %01000000 'set PortB to output
PORTB = %00000000


loop
HIGH PORTB.1
pause 1000
low PORTB.1
pause 1000
goto loop


Help me please