Re: Re: PortB question

Tom Collins <tom-lnEA/wrDJtNWk0Htik3J/[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
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
>> >
> 
>
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.