Aux I/O not responding
"Taiwo" <taiwo_ososanya-/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Hello guys
I'm quite new to the Rabbit MCU. I have been trying to send some
messages to an OLED through the aux I/O pins, but none of the pins
associated with the Aux I/O are responsding (including /IORD and /IOWR).
I have macro definition at the start of the source file, amongst others.
Please what am I missing out in the source file.
Below is a brief description of my file.
#define PORTA_AUX_IO // Enable the external I/O bus
void SendToOLED(int addr, char value)
{
WrPortE(addr, NULL, value);
}
int main()
{
WrPortI(IB7CR, &IB7CRShadow, 0x4C); // Invert
// Ensure tht the 6-bit address external I/O bus is enabled
MsDelay(1000); // Wait for one second to allow OLED to reset
itself
SendToOLED(1, '\B00111001'); // 8-bit, 2 line, 5x8 dots, Western
European font
SendToOLED(1, '\B00001100'); // Display On, Cursor Off, Non-Blinking
cursor
SendToOLED(1, '\B00000110'); // Increment and Non-shift Entire
Display
}