Parallel bus (address 8 bit, data 8 bit) access sample using GPIO pins.
Dependents: mini_board_PCU9669_demo mini_board_PCU9669
Parallel bus emulation sample code
mbed (LPC1768) does not have parallel bus but it can be emulated by GPIO.
Please find a notebook page for more infomation.
Diff: hardware_abs.c
- Revision:
- 6:3f4c439ea51b
- Parent:
- 5:8b54fb7ecfff
--- a/hardware_abs.c Mon Aug 27 03:44:52 2012 +0000 +++ b/hardware_abs.c Tue Aug 28 00:51:36 2012 +0000 @@ -176,6 +176,8 @@ LPC_GPIO2->FIOCLR = 0x28; // to keep timing LPC_GPIO2->FIOCLR = 0x28; // to keep timing LPC_GPIO2->FIOCLR = 0x28; // to keep timing + LPC_GPIO2->FIOCLR = 0x28; // to keep timing + LPC_GPIO2->FIOCLR = 0x28; // to keep timing LPC_GPIO0->FIOMASK = ~DATA_MASK; tmp = (LPC_GPIO0->FIOPIN >> 4) & 0xFF; // Read data bus into var