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

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

芯片复制c8051f320单片机源码

芯片复制单片机源程序如下:

  1. //-----------------------------------------------------------------------------
  2. // F32x_External_Interrupts.c
  3. //-----------------------------------------------------------------------------
  4. // Copyright 2007 Silicon Laboratories, Inc.

  5. // Program Description:
  6. //
  7. // This software shows the necessary configuration to use External Interrupt 0
  8. // (/INT0) or External Interrupt 1 (/INT1) as an interrupt source.  The code
  9. // executes the initialization routines and then spins in an infinite while()
  10. // loop.  If the button on P1.6 (on the target board) is pressed, then the
  11. // edge-triggered /INT0 input on P0.0 will cause an interrupt and toggle the
  12. // LED.
  13. //
  14. // Pinout:
  15. //
  16. // P0.0 - /INT0
  17. // P0.1 - /INT1
  18. //
  19. // P2.0 - SW1 (Switch 1)
  20. // P2.1 - SW2 (Switch 2)
  21. // P2.2 - LED1
  22. // P2.3 - LED2
  23. //
  24. // How To Test:
  25. //
  26. // 1) Compile and download code to a 'F32x target board.
  27. // 2) On the target board, connect P2.0_SW and P2.1_SW signals on J3 to P0.0
  28. //    for /INT0 and P0.1 for /INT1.
  29. // 3) Press the switches.  Every time a switch is pressed, the P2.2 or P2.3
  30. //    LED should toggle.
  31. //
  32. // Target:         C8051F32x
  33. // Tool chain:     Keil C51 7.50 / Keil EVAL C51
  34. // Command Line:   None
  35. //
  36. //
  37. // Release 1.0
  38. //    -Initial Revision (TP)
  39. //    -14 JUN 2007
  40. //

  41. //-----------------------------------------------------------------------------
  42. // Include Files
  43. //-----------------------------------------------------------------------------

  44. #include <C8051F320.h>

  45. //-----------------------------------------------------------------------------
  46. // Global Constants
  47. //-----------------------------------------------------------------------------

  48. #define SYSCLK             12000000    // Clock speed in Hz

  49. sbit SW1 = P2^0;                       // Push-button switch on board
  50. sbit SW2 = P2^1;                       // Push-button switch on board
  51. sbit LED1 = P2^2;                      // Green LED
  52. sbit LED2 = P2^3;                      // Green LED

  53. //-----------------------------------------------------------------------------
  54. // Function Prototypes
  55. //-----------------------------------------------------------------------------

  56. void Oscillator_Init (void);           // Configure the system clock
  57. void Port_Init (void);                 // Configure the Crossbar and GPIO
  58. void Ext_Interrupt_Init (void);        // Configure External Interrupts (/INT0
  59.                                        // and /INT1)



联系方式

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

在线客服
热线电话

企业微信