
Originally Posted by
williamlaw
the problem is that nothing happens at the portb pins.........
#include <p18f4550.h>
#include <PIC18f4550w.h>
void main(void)
{
TRISD = 0;
PORTD = 0xff;
while (1)
{
}
}
Looks more like C than PicBasic to me, but to state the obvious, you want port B to go high, but you are telling port D to go high?
Also, if using PicBasic, you can use Darrels handy dandy all digital to set up all your pins to be digital. This saves some time. But you will have to use basic commands that PicBasic will accept.
See http://www.picbasic.co.uk/forum/showthread.php?t=11100
Last edited by ScaleRobotics; - 14th May 2009 at 19:43.
http://www.scalerobotics.com
Bookmarks