summaryrefslogtreecommitdiffstats
path: root/newnewexi.pld
diff options
context:
space:
mode:
Diffstat (limited to 'newnewexi.pld')
-rw-r--r--newnewexi.pld6
1 files changed, 4 insertions, 2 deletions
diff --git a/newnewexi.pld b/newnewexi.pld
index 590be55..5f58bec 100644
--- a/newnewexi.pld
+++ b/newnewexi.pld
@@ -22,8 +22,8 @@ Device F1504ISPTQFP44;
Pin 37 = EXI_CLK; /* IN: EXI bit clock (act on rising edge) */
Pin 34 = !EXI_CS; /* IN: EXI chip select (active-low) - device in standby when FALSE */
-Pin 43 = EXI_DO; /* OUT: EXI data (slave out) */
-Pin 42 = EXI_DI; /* IN: EXI data (slave in) */
+Pin 43 = EXI_DI; /* OUT: EXI data (slave out) */
+Pin 42 = EXI_DO; /* IN: EXI data (slave in) */
Pin 44 = EXI_INT; /* OUT: EXI interrupt (not used) */
/** USB-side pins **/
@@ -60,6 +60,8 @@ Field EXI_State = [EXI_SEQ3..0]; /* Clock state */
Enable = EXI_CS & USB_PWREN;
LED = LED_STATE # !USB_PWREN; /* LED should be on if USB isn't set up yet, or if requested by EXI */
+EXI_DO.OE = Enable;
+
$Repeat i = [0..3]
/* EXI_SEQ state machine clocked by EXI (assuming we're selected) */
EXI_SEQ{i}.CKMUX = EXI_CLK;