HXD019 Driver for MTK Feature Phones

Published 2017-02-18Views 314views

MTK feature phone HXD019 driver code routine, complete infrared universal driver code collection.

Article

                               , configure timing, configure three GPIOs:
  In remote_IC_driver_MBIO.c
plutommi\mmi\ remoteSrc\Remote019.c
plutommi\mmi\ remoteSrc\Remote_data_table019.c
plutommi\mmi\ remoteSrc\Remote_compress_table019.c
Adjust timing, modify the following two parameters, measure and compare the time with an oscilloscope:
//Set three IOs===================================================================================================
Driver Example Instructions for Spreadtrum Feature Phone HXD019
#define  DELAY_TIME  2400 //------------- 
#define  DELAY_ST  180   // ---------- 
#define REMOTE_BUSY_PIN       16 
#define REMOTE_DIN_PIN      2
#define REMOTE_CLK_PIN       1
extern const char gpio_hxd_clk_pin;//hejiang
extern const char gpio_hxd_sda_pin;//hejiang
extern const char gpio_hxd_busy_pin;//hejiang
extern const char gpio_led_mainbl_en_pin;//hejiang
extern const char gpio_sccb_serial_clk_pin;//hejiang
extern void mmi_remote_check_learn_status(void);
 
Sending interface:
 
/*******************************************
SDA_PIN 
*******************************************/
void Set_SDA_IO(void)
{
 
GPIO_ModeSetup(REMOTE_DIN_PIN, 0x00);
 
void SetSDAInput(void)
{
 
GPIO_InitIO(0,REMOTE_DIN_PIN);
}
 
void SetSDAOutput(void)
{
   
GPIO_InitIO(1,REMOTE_DIN_PIN);
}
 
void SetSDAHigh(void)
{
    
GPIO_WriteIO(1,REMOTE_DIN_PIN); 
}
 
void SetSDALow(void)
{
 
GPIO_WriteIO(0,REMOTE_DIN_PIN);
}
 
UINT8 GetACKStatus(void)
{
return GPIO_ReadIO(REMOTE_DIN_PIN);
}
 
UINT8 GetDINStatus(void)
{
return GPIO_ReadIO(REMOTE_DIN_PIN);
 
 

Clarify the requirement before choosing a chip

Tell us the device type, interaction needs and volume plan; we will match a solution and arrange samples.

You are visitor No.7282   粤ICP备13027018号 Shenzhen Market Supervision Administration