newbee question
Sylvain Bissonnette <bibi-tlkWMpG4QxlWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <CAMS3D4=Lrux9bWZqH4ydvairNui87MYVgrY+SGewdvhc+LZ6UA@mail.gmail.com> |
Hi
I'm comming from another world of MCU and I'm at the beginning of my
long lurning curve, Here is what I'm trying to do:
The main question is why nothing work...
#define RS 1
#define RS_SET BitWrPortI(PCDR, &PCDRShadow, 1, RS);
#define RS_CLR BitWrPortI(PCDR, &PCDRShadow, 0, RS);
main()
{
int i;
for (i=0;i<7;i++)
{
//BitWrPortI(PADDR,&PADDRShadow,1,(1<<i)); why this line don't compile?
BitWrPortI(PBDDR,&PBDDRShadow,1,(1<<i));
BitWrPortI(PCDDR,&PCDDRShadow,1,(1<<i));
}
while(1)
{
RS_SET;
WrPortI(PADR, &PADRShadow,i++);
RS_CLR;
}
}
Thanks for any info
Yours truly
Sylvain Bissonnette