- Wed Jan 14, 2015 2:04 am
#7252
Hi,
my problems are not solved.
i think my main problem is that i have 3,3 V between Pin and GND -> Pull up enabled or Output On?
But for my project pull down should be enabled & output off.
Following source sets:
3,3 V between Pin and GND
Interrupt only when Pin connected to GND
But i want:
PIN pulled DOWN
Interrupt only when Pin HIGH
#define RECEIVEGPIO 14
ETS_GPIO_INTR_DISABLE();
ETS_GPIO_INTR_ATTACH(RX_Int_Handler, RECEIVEGPIO);
REG_GPIO_ENABLE_W1TC_ADDRESS = BIT(RECEIVEGPIO); // as input
REG_GPIO_OUT_W1TC_ADDRESS = BIT(RECEIVEGPIO); // no output signal
REG_PERIPHS_IO_MUX_MTMS_U = 0b0000000001110111; // MUX_OE+MUX_SLEEP_OE+MUX_SLEEP_PULLDWN+MUX_PULLDWN+FUNC_GPIO14
REG_GPIO_PIN14_ADDRESS = 0b0000010110000010; // GPIO as Source+Driver disable+Wakeup Enabled+GPIO_PIN_INTR_ANYEDGE
REG_GPIO_STATUS_W1TC_ADDRESS = BIT(RECEIVEGPIO);
ETS_GPIO_INTR_ENABLE();
Now i tried to write to registers direct. on 12&14.
Is it correct in regard do PIN Pull down?