Hi Ed,
At 12:40 AM -0400 8/6/01, Ed Troy wrote:
>In an effort to try to debug the program that I am having trouble with, I
>have stripped it down to the very basic essentials.
.....<snip>....
I haven't programmed a PIC in C, so I'm probably off base but, I
don't see where the page bits are being set to access the TRIS
registers. The C compiler may handle this for you, I'm not sure.
It would certainly cause a lack of action on the board.
{Quote hidden}>void Initialize_Ports()
> {
> TRISB=0x00; // set port b as outputs
> TRISD=0x00 ; // set port d as output
> TRISA=0x3F ; // set port a as inputs
> TRISC=0x00 ; // set port c as output
> PORTD=0x00 ; // initialize port D to zero
> PORTC=0x00 ; // initialize port C to zero
> }
>
>
>main()
> {
> Initialize_Ports();
.......
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics