PDA

View Full Version : I need help to bigin with pbp



fdo2424
- 1st May 2009, 16:26
I have pic kit2 and dimo boad. and I have mastered asambly somewhat with it. I have run some asamby programs with my demo boad succesfully. but simple pbp program compiled with micro code plus, do not work. my my pic is 16f877a, with 20mhz oscilater. the program is below
loop: high port.b
pause 500
low port.b
pause 500
goto loop
end

mister_e
- 1st May 2009, 16:42
The default PBP configuration fuses are set for an XT crystal. You will need to change them to accept HS osc.

Presetting Configuration Fuses (PIC Defines) into your Program
http://www.picbasic.co.uk/forum/showthread.php?t=543

PORTB.b will not compile, you want to use PORTB.0, PORTB.1 or else.

Dave
- 1st May 2009, 16:43
fdo2424, What port bit are you trying to toggle?

Dave Purola,
N8NTA

mackrackit
- 1st May 2009, 19:12
Your code should look something like this
[code]
HIGH PORTB.0
PAUSE 500
LOW PORTB.0
PAUSE 500
[code]
The above will toggle pin 0 on PORTB.