Reply by "too...@comcast.net [rabbit-semi]"●August 4, 20142014-08-04
I am having similar issues but I cant get my pin 2 of port B to simply go high.
I followed your help and thansk for pointing out the utility.l
Reply by Sylvain Bissonnette●March 6, 20132013-03-06
I found it:
SCLKB (used by serial flash on RCM5750/RCM5760 and RCM6700 family.)
Due to serial boot flash requirements, the RCM6700 familys edge connector
pin 27 (PB0 / SCLKB) must not be used for general purpose I/O. Although
reserved for SCLKB only, this usage may be shared with an off-minicore SPI
device.
Reply by "dyn...@ymail.com"●March 6, 20132013-03-06
1. Goto C:\DCRABBIT_XX.XX\Utilities, then open IOConfig.exe.
2 Change your IO On "Parallel Ports Pin Assignments according to your needs.
3 Klik File - Save Library- typo C:\DCRABBIT_XX.XX\LIB\Rabbit4000\mylibrary.lib
in "Library File Pathname"
4. Open mylibrary.lib C:\DCRABBIT_XX.XX\LIB\Rabbit4000 used Dynamic C and see
this line:
void BoardInit()
{
// ClockCheck();
// The following differ from BIOS settings
WrPortI(PBDDR,&PBDDRShadow,0xFF); // Port B Input and output Pins
WrPortI(PCDDR,&PCDDRShadow,0xFF); // Port C Input and output Pins
WrPortI(PCFR,&PCFRShadow,0x00); // Port C Input and output Pins
WrPortI(SPCR,&SPCRShadow,0x84); // Port A Input and output Pins
}
5. Open your program from Dynamic C IDE add as follows:
#use "rcm57xx.lib"
//#use "mylibrary.lib"; // call mylibrary.lib from here OR paste code direct in
code
main()
{
int i;
brdInit(); // Press for view this settings
// Select brdInit in
"C:\DCRABBIT_10.56\LIB\RABBIT4000\RCM5XXX\RCM57XX.LIB" then
// press Ok, you will see the default settings for your board
in here
// Click View Source for edit RCM57xx.LIB you can change the
library or directly here but I do not advise it.
// Change library from mylibrary.lib or direct paste as
follows:
// paste your config in here
WrPortI(PBDDR,&PBDDRShadow,0xFF); // Port B Input and output Pins
WrPortI(PCDDR,&PCDDRShadow,0xFF); // Port C Input and output Pins
WrPortI(PCFR,&PCFRShadow,0x00); // Port C Input and output Pins
WrPortI(SPCR,&SPCRShadow,0x84); // Port A Input and output Pins
//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)
{
// add your programs in here
}
//////////////////////////////////////////////////////////////////////
--- In r..., Sylvain Bissonnette wrote: >
> 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++);
> }
> }
>
> > ,_._
>
Reply by Sylvain Bissonnette●March 6, 20132013-03-06
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++);
}
}
> ,_._
>
Reply by Sylvain Bissonnette●March 6, 20132013-03-06
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 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 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, d...@ymail.com 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 r..., 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
>> >
>
>
Reply by Tom Collins●March 5, 20132013-03-05
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 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, d...@ymail.com 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 r..., 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
>> >
Reply by Sylvain Bissonnette●March 5, 20132013-03-05
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, d...@ymail.com 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 r..., 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
> >
>
Reply by "dyn...@ymail.com"●March 5, 20132013-03-05
#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 r..., 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
>
Reply by Sylvain Bissonnette●March 5, 20132013-03-05
MicroCore RCM6700
On Tue, Mar 5, 2013 at 3:34 AM, Scott Henion wrote:
> **
> Which module are you using?
>
> On 3/4/2013 9:52 PM, Sylvain Bissonnette wrote:
>
> No I check and that's not the problem, the pin is stuck high
>
> On Mon, Mar 4, 2013 at 12:49 AM, seecwriter wrote:
>
>> Does Port B have the option to be open-collector? If so, is that set
>> correctly?
>>
>> --- In r..., 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
>> >
> --
> ------
> Scott G. Henion, Consultant
> Web site: http://SHDesigns.org
> ------
>
>
>
Reply by Scott Henion●March 5, 20132013-03-05
Which module are you using?
On 3/4/2013 9:52 PM, Sylvain Bissonnette wrote: > No I check and that's not the problem, the pin
is stuck high
>
> On Mon, Mar 4, 2013 at 12:49 AM, seecwriter
> > wrote:
>
>
>
> Does Port B have the option to be open-collector? If so, is that
> set correctly?
>
> --- In r...
> , 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
>