why can't use GPIO 2 pin for RMT RX ?

manoj15
Posts: 8
Joined: Mon Apr 22, 2019 6:40 pm

why can't use GPIO 2 pin for RMT RX ?

Postby manoj15 » Wed Jun 03, 2020 6:45 pm

Code: Select all

void IR_RMT_RX_INIT()

{
    rmt_config_t rmt_rx;
    rmt_rx.channel = IR_RMT_RX_CH;
    rmt_rx.gpio_num =IR_RMT_RX_GPIO  ;
    rmt_rx.clk_div = IR_RMT_CLK_DIV;
    rmt_rx.mem_block_num = 1;
    rmt_rx.rmt_mode = RMT_MODE_RX;
    rmt_rx.rx_config.filter_en = true;
    rmt_rx.rx_config.filter_ticks_thresh = 255U;
    rmt_rx.rx_config.idle_threshold = IR_RMT_RX_IDLE_TRSHLD;
    rmt_config(&rmt_rx);
    rmt_driver_install(rmt_rx.channel, 1000, 0);
}
above is how I init the RMT, It works on GPIO 12 and not GPIO 2, so far I can't find anyone complaining such issue that gpio 2 not usable, is it just me or there's a reason behind it?


Who is online

Users browsing this forum: No registered users and 82 guests