Hi to all,
this is the first time I use a Rabbit Microprocessor (4100) but I have some knowledge of C programming on PIC and Atmel Microcontrollers.
I made a simple board with a RCM4100 and a LED on PE1 (the LED will be active if the output is at high level).
Here my test program:
void main() {
WrPortI(PEDDR, &PEDDRShadow, 0x01);
WrPortI(PEDCR, &PEDCRShadow, 0x00);
BitWrPortI(PEDR, &PEDRShadow, 1, 1);
for (;;) {}
}
First, I set the bit 1 of Port E to output, then I set the output drive mode to push-pull (as power-up-reset, indeed).
With the last instruction I set the bit 1 to high level but the led doesn’t turn on.
Do I miss anything?
I thank you for any answer and I am sorry for my poor school English.
Marco / iw2nzm