STM32 MCU HXD019 driver
发布时间:2017-03-09 浏览次数:1559次

STM32 microcontroller and hxd019 chip communication instructions

0,set up three IO and initialize:

The main MPU and remote control IC_HXD019 connected to the three IO set,

1,timing adjustment: according to the main control of different clock adjustment, measuring communication clock CLK line adjustment of the following parameters:

Time delay parameter:

File: URAD.H

#define IRDA_DELAY_40US / / CLK the clock cycle in the call to IRDA_tx_data (H=30uS): (25-40uS),

#define IRDA_DELAY_20MS //CLK the first falling edge to the second falling edge of time: 20mS (16-30mS),

2 hardware related: hardware connection, during debugging, suggested that the three IO communication port, each on a resistance of about 100R (production need not), prevent the breakpoint, suspend or abnormal IO damage. IO port conflict transfer process continuous call IRDA_tx_data, IRDA_learn_start (busy), check whether the middle high before should be delayed at least 100mS, high IRDA_learn_data_in_out in busy (irda_data) not interval

3 master file:

user\main\main.C

4 other works:

Engineering with IAR

iarzk.eww

With KEIL, then the project with userirda

Copy the past, refer to the MAIN inside the call on the OK

5, learning send instructions:

Send learning command: IRDA_learn_start (),

Detection busy:while ((IRDA_BUSY_S))

External learning, artificial learning

Learned data processing: IRDA_learn_data_in_out (irda_data)

Send the data to learn: IRDA_tx_data ()

Send code library data: IRDA_tx_data () modify the corresponding buffer and Size

Professional remote control chip: mobile phone universal remote control, infrared remote control IC, HXD019, infrared code library, infrared remote control data, universal code library, cloud code library, wifi turn infrared
您是第16928位访客   粤ICP备13027018号