101-1006 Rabbit Semiconductor, 101-1006 Datasheet - Page 56

no-image

101-1006

Manufacturer Part Number
101-1006
Description
MODULE POWERCORE FLEX 3800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-1006

Module/board Type
MPU Core Module
For Use With/related Products
RCM3800
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
5.2 Dynamic C Functions
5.2.1 Digital I/O
PowerCore FLEX modules were designed to interface with other systems, and so there are
no drivers written specifically for the digital I/O; there are sample drivers for the triacs and
the A/D converter on the Prototyping Board described in Section 5.2.7.
The general Dynamic C read and write functions allow you to customize the parallel I/O
to meet your specific needs. For example, use
to set all the Port E bits as inputs, or use
to set all the Port E bits as outputs.
The sample programs in the Dynamic C
examples.
5.2.2 External I/O
When using the auxiliary I/O bus on the Rabbit 3000 chip, add the line
to the beginning of any programs using the auxiliary I/O bus.
5.2.3 SRAM Use
The PowerCore FLEX modules have a battery-backed data SRAM and a program-execu-
tion SRAM. Dynamic C provides the
be placed into the battery-backed SRAM. The compiler generates code that maintains two
copies of each protected variable in the battery-backed SRAM. The compiler also generates
a flag to indicate which copy of the protected variable is valid at the current time. This flag
is also stored in the battery-backed SRAM. When a protected variable is updated, the
“inactive” copy is modified, and is made “active” only when the update is 100% complete.
This assures the integrity of the data in case a reset or a power failure occurs during the
update process. At power-on the application program uses the active copy of the variable
pointed to by its associated flag.
The sample code below shows how a protected variable is defined and how its value can
be restored.
The
tery-backed SRAM without affecting the performance of the application program. Data
integrity is not assured when a reset or power failure occurs during the update process.
Additional information on
User’s Manual.
48
bbram
WrPortI(PEDDR, &PEDDRShadow, 0x00);
WrPortI(PEDDR, &PEDDRShadow, 0xFF);
#define PORTA_AUX_IO
protected nf_device nandFlash;
int main() {
...
_sysIsSoftReset();
keyword may also be used instead if there is a need to store a variable in bat-
bbram
// required to enable auxiliary I/O bus
and
// restore any protected variables
protected
protected
SAMPLES/PowerCoreFLEX
keyword to identify variables that are to
variables is available in the Dynamic C
folder provide further
PowerCore FLEX

Related parts for 101-1006