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++);
}
}
> ,_._
>