Re: Toggle IO pin

"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
Which board are you using?

I think that for some of the hardware, PB2 is used as a chip select for SPI peripherals.

Is there a PBFR (Port B Function Register) that configures it for something other than a standard digital output?  Does the schematic for the core module show it connected to anything?  Does the core module documentation mention anything special about PB2 on the pinout diagram?

-Tom


On Aug 4, 2014, at 12:39 PM, [email protected] [rabbit-semi] wrote:
> I am very new to Rabbit but very experienced in Microchip, etc. This chip is confusing but I am trying toi toggle Port B pin 2 with no luck....I was able to get HTTP server running smoothly however and am using RCM4310 CPU module. Here is a snippet of my code:
> 
> 
> 
>    WrPortI(PBDDR, &PBDDRShadow, 0xFF);
>    WrPortI(SPCR, NULL, 0x84);
> 
>    WrPortI(PBDR, &PBDRShadow, 0x00);
> 
>    //WrPortI(PCDR, &PCDRShadow, 0xFF);
>    //WrPortI(PDDR, &PDDRShadow, 0xFF);
>    //WrPortI(PEDR, &PEDRShadow, 0xFF);
> .
> 
>  
> 
>
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.