Re: Re: PortB question

Sylvain Bissonnette <bibi-tlkWMpG4QxlWk0Htik3J/[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <CAMS3D4=9rpFEM576B+u92VmFnqgVb9yEQhKzg3rx0LYMCtqz6g@mail.gmail.com>
Hi to all of you,

What is wrong in my 10 line of code,  Not all pine toggle

main()
{
   int i;

   WrPortI(SPCR, NULL, 0x84); // Port A as output
   WrPortI(PBDDR, &PBDDRShadow, 0xff); // Port B as output
   WrPortI(PBDDR, &PBDDRShadow, 0xff); // Port C as output


   while(1)
   {
      WrPortI(PADR,    &PADRShadow,i);
      WrPortI(PBDR,    &PBDRShadow,i);
      WrPortI(PCDR,    &PCDRShadow,i++);
   }
}

> ,_._
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.