Re: Re: PortB question
Sylvain Bissonnette <bibi-tlkWMpG4QxlWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <CAMS3D4k=ADS+rQUHBkVoKz0-DRcVru1j0LJuF+zvUMNcLxR+8Q@mail.gmail.com> |
I'm not a expert, the only thing I can see it's written in the datasheet PIN NAME SERIAL PORT EXTERNAL BUS PB0 SCLKB IA6 On Tue, Mar 5, 2013 at 9:49 PM, Tom Collins <tom-lnEA/wrDJtNWk0Htik3J/[email protected]> wrote: > ** > > > Don't the minicore modules use PB0 as the clock on the serial flash? Check > PBFR to see if it's an alternate output. > > -Tom > (Sent from my phone; forgive my brevity.) > > On Mar 5, 2013, at 5:41 PM, Sylvain Bissonnette <bibi-tlkWMpG4QxlWk0Htik3J/[email protected]> wrote: > > > > 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 >> > >> >> > >