David Giles
/
CM-MBED_RSEDP_Test_Suite_LPC1768_V3
This is a complete listing of the RS-EDP software for the mbed module to support the RS-EDP platform.
HeaderFiles/RSEDP_Slave_Address_Defines.h@0:5b7639d1f2c4, 2010-11-19 (annotated)
- Committer:
- DavidGilesHitex
- Date:
- Fri Nov 19 09:49:16 2010 +0000
- Revision:
- 0:5b7639d1f2c4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidGilesHitex | 0:5b7639d1f2c4 | 1 | /* Slave Address Header File */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 2 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 3 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 4 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 5 | #define MICROCHIP_MOTOR_DRIVER_BASE 0x40 |
DavidGilesHitex | 0:5b7639d1f2c4 | 6 | /* Microchip Twin Motor Drive Module RD-EDP-AM-MC2 */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 7 | /* 0x40 - 7 bit */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 8 | /* Range is 0x40 - 0x47 as there may be 4 modules per base board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 9 | /* This device is used to define the Microchip dsPIC33FJ128MC804 I2C Slave Address */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 10 | /* Upto 6 dsPIC devices can be populated (3 modules) on the motor drive board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 11 | /* Therefore the 7 bit address range is 0x40 - 0x45 */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 12 | /* The link options on the module provide additional Slave address information */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 13 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 14 | /* Defines the range of the dsPIC Slave Address's. The base address is configured above */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 15 | /* As we can have up to 8 dsPICs in the system, we need to specify the range of address's */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 16 | #define DSPIC_SLAVE_ADDRESS_MIN (MICROCHIP_MOTOR_DRIVER_BASE) /* min is 7 bit base of 112 */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 17 | #define DSPIC_SLAVE_ADDRESS_MAX ((MICROCHIP_MOTOR_DRIVER_BASE) +7) /* max is 7 bit base of 112 plus the DIP switch/solder bridge settings on the PCB 0 - 7 */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 18 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 19 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 20 | #define PCA9675_BASE_BOARD 0x20 // 0x20 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 21 | /* This device is on the base board and is a serial I/O latch connected to the DIP Switch */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 22 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 23 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 24 | #define M24C32_BASE_BOARD 0x51 // 0x51 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 25 | /* This device is a serial EEPROM device which is connected to the base board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 26 | /* The actual slave address also has three low order bits to be added */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 27 | /* These bits are b1,b2,b3 within the byte */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 28 | /* These bits are derived from the external A0,A1 and A2 pins on the device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 29 | /* Therefore the slave address's are 0xa0, 0xa2, 0xa4,0xa6,0xa8,0xaa, 0xac,0xae */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 30 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 31 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 32 | #define PCF8583_COMMS_MODULE 0x50 // 0x50 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 33 | /* The actual slave address also has three low order bits to be added */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 34 | /* These bits are b1,b2,b3 within the byte*/ |
DavidGilesHitex | 0:5b7639d1f2c4 | 35 | /* These bits are derived from the external A0,A1 and A2 pins on the device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 36 | /* Therefore the slave address's are 0xa0, 0xa2, 0xa4,0xa6,0xa8,0xaa, 0xac,0xae */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 37 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 38 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 39 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 40 | #define PCA9555_DIGITAL_IO_OUT 0x23 // 0x23 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 41 | /* The actual slave address also has three low order bits to be added */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 42 | /* These bits are a0,a1,a2 within the byte*/ |
DavidGilesHitex | 0:5b7639d1f2c4 | 43 | /* These bits are derived from the external A0,A1 and A2 pins on the device */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 44 | /* Therefore the 7 bit slave address range is 0x20 to 0x27 */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 45 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 46 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 47 | #define PCA9555_DIGITAL_IO_IN 0x22 // 0x22 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 48 | /* This is the hardware configured 0x22 7 bit Slave Address of this perihperal */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 49 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 50 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 51 | #define MAX1X3X_ANALOGUE_ADC 0x65 // 0x65 - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 52 | /* This is the slave address of the MAX1038 on the Analogue Module PCB */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 53 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 54 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 55 | #define AD5263_ANALOGUE_DIGITAL_POT 0x2c // 0x2c - 7 bit |
DavidGilesHitex | 0:5b7639d1f2c4 | 56 | /* This is the slave address of the digtial Potentiometer, AD5263 on the anlogue module */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 57 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 58 |