Re: Re: PortB question
Sylvain Bissonnette <bibi-tlkWMpG4QxlWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <CAMS3D4mBpq5_J2RrAic1VWR09enYGb4EoV41M1z1HM=BNN1gLg@mail.gmail.com> |
Not work, when DC is programming flash PB0 give data, but as soon the code start there is nothing on PB0 and DC give error "while debugging timeout" Any Clue? On Tue, Mar 5, 2013 at 7:40 PM, [email protected] <[email protected]>wrote: > ** > > > > > #define BYTE_OFF 0xFF > #define BYTE_ON 0x00 > > #define BIT_OFF 1 > #define BIT_ON 0 > > // Set all the Port B as outputs(default high logic): > WrPortI(PBDDR, &PBDDRShadow, BYTE_OFF); > // Or: > for(i=0;i<8;i++) BitWrPortI(PBDDR, &PBDDRShadow, BIT_OFF, i); > ================================================================== > // Port B will be active(on) if trigger with low logic as follows: > WrPortI(PBDDR, &PBDDRShadow, BYTE_ON); > //Or: > for(i=0;i<8;i++) BitWrPortI(PBDDR, &PBDDRShadow, BIT_ON, i); > > --- In [email protected], Sylvain Bissonnette wrote: > > > > Hi, I have a problem with the PORTB bit 0 I set this bit in output and I > > write values but without success I don't get anything from the I/O. > > > > for (i=0;i<8;i++) BitWrPortI(PBDDR,&PBDDRShadow,1,i); > > > > while(1) WrPortI(PBDR, &PBDRShadow,i++); > > > > Thanks for your time > > Sylvain Bissonnette > > > > >