芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

单片机解密驱动无线麦克风芯片KT0626

  1. 单片机解密//函 数 名:SYSCLK_Init
  2. //功能描述:MCU时钟初始化
  3. //函数说明:
  4. // This routine initializes the system clock to use the internal 24.5MHz / 8
  5. // oscillator as its clock source.  Also enables missing clock detector reset.
  6. //调用函数:无
  7. //全局变量:无
  8. //输    入:
  9. //返    回:无
  10. //设 计 者:KANG Hekai                                时间:2012-08-01
  11. //修 改 者:KANG Hekai                                时间:2013-03-29
  12. //版    本:V1.0
  13. //                        V1.3----打开电池电压检测复位功能   
  14. //------------------------------------------------------------------------------------
  15. void SYSCLK_Init (void)
  16. {
  17.         OSCICN |= 0x03;   //0xc3                                                                // configure internal oscillator for 24.5MHz

  18.         VDM0CN = 0x80;                                                                                // enable VDD monitor
  19.         Delay_ms(1);
  20.         RSTSRC = 0x02;                                                                                // enable VDD monitor as a reset source
  21. }

  22. //------------------------------------------------------------------------------------
  23. //函 数 名:PORT_Init
  24. //功能描述:MCU端口初始化
  25. //函数说明:Configure the Crossbar and GPIO ports.
  26. //调用函数:使用弱上拉
  27. //全局变量:无
  28. //输    入:
  29. //返    回:无
  30. //设 计 者:KANG Hekai                                时间:2012-08-01
  31. //修 改 者:                                                时间:
  32. //版    本:V1.0
  33. //------------------------------------------------------------------------------------
  34. void PORT_Init (void)
  35. {
  36.         XBR0    = 0x00;                                                                                        // Disable all
  37.         XBR1    = 0x40;                                                                                        // Enable crossbar and Disable weak pull-ups
  38.         P0MDOUT        = 0x08;                                                                                        //
  39. //        P0MDIN        |= 0xF7;                                                                                //
  40. //        P0                |= 0xF7;                                                                                //

  41.         P1MDOUT        = 0xF1;       
  42. //        P1MDIN        |= 0x0E;                                                                                //
  43. //        P1                |= 0x0E;                                                                                //

  44.         P2MDOUT        = 0x8F;       
  45. //        P2MDIN        |= 0x70;                                                                                //
  46. //        P2                |= 0x70;                                                                                //

  47.         P3MDOUT        = 0x18;
  48. //        P3MDIN        |= 0x04;                                                                                //
  49. //        P3                |= 0x04;                                                                                //
  50. }



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信