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:
- 5:8b54fb7ecfff
- Parent:
- 4:2b277209c3e6
- Child:
- 6:3f4c439ea51b
--- a/hardware_abs.c Thu Jul 12 06:06:43 2012 +0000 +++ b/hardware_abs.c Mon Aug 27 03:44:52 2012 +0000 @@ -268,6 +268,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 *(data + i) = (LPC_GPIO0->FIOPIN >> 4) & 0xFF; // Read data bus into var LPC_GPIO2->FIOSET = 0x08;