Advertisement
Guest User

Untitled

a guest
Nov 28th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.13 KB | None | 0 0
  1. #ifndef IMAXB6_PINS_H_
  2. #define IMAXB6_PINS_H_
  3.  
  4. #define OUTPUT_VOLTAGE_MINUS_PIN        44
  5. #define OUTPUT_VOLTAGE_PLUS_PIN         43
  6. #define DISCHARGE_CURRENT_PIN           1
  7. //pin 4 - nRST                             //(4)        nRST (debug wire)
  8. //[HW Uart Rx pin: 5(P3.0) or 37(P0.3) - selectable (not connected)]
  9. #define RX_HW_SERIAL_PIN5              
  10. //pin 6 - AVSS                             //(6)        AVSS
  11. //[HW Uart Tx pin: 7(P3.1) or 38(P0.2) - selectable (not connected)]
  12. #define TX_HW_SERIAL_PIN7               7
  13. #define BUTTON_STOP_PIN                 28
  14. #define BUTTON_DEC_PIN                  29
  15. #define BUTTON_INC_PIN                  30
  16. #define BUTTON_START_PIN                31
  17. #define BUZZER_PIN                      32
  18.  
  19. #define BALANCER5_LOAD_PIN              39
  20. #define BALANCER4_LOAD_PIN              38
  21. //pin 15 - XTAL2                           //(3+12)     XTAL2
  22. //pin 16 - XTAL1                           //(4+12)     XTAL1
  23. //pin 17 - VSS                             //(5+12)     VSS
  24. //pin 18 - LDO_CAP                         //(6+12)     LDO_CAP (internnal voltage regulator CAP)
  25. #define OUTPUT_DISABLE_PIN              48
  26. //[the same pin for charge and discharge: pin 20]
  27. #define DISCHARGE_VALUE_PIN             23
  28. #define SMPS_VALUE_BOOST_PIN            25
  29. #define BALANCER3_LOAD_PIN              30
  30. #define BALANCER2_LOAD_PIN              34
  31. #define BALANCER6_LOAD_PIN              40
  32. #define BALANCER1_LOAD_PIN              35
  33.  
  34.  
  35. #define MUX_ADR2_PIN                    12
  36. #define SMPS_VALUE_BUCK_PIN             23
  37. #define SMPS_DISABLE_PIN                22
  38. #define MUX_ADR1_PIN                    9
  39. #define MUX_ADR0_PIN                    8
  40. //pin 30 - ICE_CLK                         //(6+2*12)   P4.6 - ICE_CLK (debug wire)
  41. //pin 31 - ICE_DAT                         //(7+2*12)   P4.7 - ICE_DAT (debug wire)
  42. #define LCD_D3_PIN                      14
  43. #define LCD_D2_PIN                      13
  44. #define LCD_D1_PIN                      11
  45. #define LCD_D0_PIN                      10
  46. #define LCD_ENABLE_PIN                  19
  47.  
  48.  
  49. #define LCD_RS_PIN                      20
  50. //[HW Uart Tx pin: 7(P3.1) or 38(P0.2) - selectable (not connected)]
  51. #define TX_HW_SERIAL_PIN38              5
  52. //pin 41 - VDD                             //(5+3*12)   VDD
  53. //pin 42 - AVDD                            //(6+3*12)   AVDD
  54. #define MUX0_Z_D_PIN                    47
  55. #define DISCHARGE_DISABLE_PIN           23
  56. #define UART_TX_PIN                     5
  57. #define T_EXTERNAL_PIN                  2
  58. #define V_IN_PIN                        45
  59. #define SMPS_CURRENT_PIN                36
  60. //pin 48 - UNKNOWN                         //(12+3*12)  P4.2 - PWM2[2]
  61.  
  62.  
  63.  
  64. //virtual pin
  65. #define T_INTERNAL_PIN                  3+128
  66.  
  67. //Multiplexer addresses:
  68. #define MADDR_V_BALANSER_BATT_MINUS     0
  69. #define MADDR_V_BALANSER1               1
  70. #define MADDR_V_BALANSER2               2
  71. #define MADDR_V_BALANSER3               3
  72. #define MADDR_V_BALANSER4               4
  73. #define MADDR_V_BALANSER5               5
  74. #define MADDR_V_BALANSER6               6
  75. //#define MADDR_T_EXTERN                  7
  76.  
  77.  
  78. #endif /* IMAXB6_PINS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement