Extensible Multiple Device Programmer 1

9,180

Circuit Image

The power supply derives its energy from a 24-volt VDC wall adapter, which can be connected through N1, an onboard connector, or N10, an off-board connector. The power switch can be mounted either on the board or off-board via connector N2. The fuse is located either onboard at F1 or off-board via connector N3. Diode D1 serves as a shorting diode, designed to short the supply and blow the fuse if the power supply is connected in reverse. The 24VDC is regulated to 24 volts using components C1, U1, and C2. This voltage is further regulated down to 15 volts through U2 and C3, and then reduced to 5 volts using U3 and C4. Connector N is available for users wishing to provide an external power supply voltage, leaving U1-U3 unpopulated. The EMDP1 can communicate with its host processor using either RS-232 or RS-422 signaling. RS-232 signaling is facilitated via a standard female DB9 connector, while RS-422 signaling occurs through an RJ45 connector using standard Category 5 cabling. The RS-422 is wired according to the SimpliciNet standard, allowing both RS-422 signaling and power to be transmitted over the same cable. The RS-232 signals are converted to logic levels by U3, a standard MAX232 level converter chip. U4 acts as an RS-422 transceiver configured as a transmitter, and U5 serves as an RS-422 transceiver configured as a receiver. Resistor R7 provides 100 ohms of RS-422 termination, while resistors R8 and R9 act as biasing resistors to ensure a logic high output level when no RS-422 signal is present. U6A logically combines the received signals from RS-232 and RS-422, forwarding them to the microcontroller's serial receive line, while U6B logically combines the transmit signals from the adapter (via U11A) and from the microcontroller (MTX). Resistor R27 forces the adapter signal to output when the microcontroller chip is being programmed by the bootstrap adapter. The microcontroller used is a Microchip PIC16F877, with U8 being a 20MHz crystal oscillator chip that provides the necessary clock signal. Connector N8 and resistor R6 form an optional reset button circuit. Jumper N11 is shorted when the bootstrap adapter is utilized for programming the microcontroller. Connector N7 is a 40-pin connector linked to a 37-pin D connector, and the same signals are routed to N13 of the universal plug. The microcontroller controls the digital-to-analog converter (D/A) using standard I2C signaling, with the D/A converter being a MAX518. Resistors R28 and R29 serve as the required pull-up resistors for I2C. The outputs from the MAX518 are fed into two operational amplifiers in U9, configured as linear amplifiers to convert the 0 to 5-volt output swing of the D/A to a 0 to 24-volt swing. Capacitors C12 and C13 are included to prevent overshoot. Connector N12 is utilized by the bootstrap adapter to supply 24 volts of power, which is then stepped down to 13 volts for programming the microcontroller.

The circuit functions as a robust power management and communication system, integrating various voltage regulation stages to ensure stable operation across different components. The initial 24VDC input is effectively managed through a series of regulators, ensuring that downstream devices receive the appropriate voltage levels for optimal performance. The use of the MAX232 and RS-422 transceivers allows for flexible communication options, accommodating different signaling standards while maintaining compatibility with established protocols. Additionally, the inclusion of biasing resistors and termination resistors enhances signal integrity, particularly in RS-422 applications.

The microcontroller, a central component of this design, is programmed to manage both analog and digital signals, with the I2C interface facilitating communication with the D/A converter. The conversion process is crucial for applications requiring precise analog outputs, and the design includes provisions for signal conditioning through operational amplifiers to achieve the desired voltage swing. Overall, the schematic represents a well-thought-out integration of power supply management, communication interfaces, and signal processing, making it suitable for a range of electronic applications.The power supply takes its power from a 24-volt VDC wall wart either via N1, an on board connector, or via N10 an off-board connector. The power switch is either mounted on board or off-board via connector N2. The fuse can either be on board at F1 or off board via connector N3. Diode D1 is a shorting diode that should short the supply and burn out the fuse if the power supply gets hooked up backwards. The 24VDC is regulated to 24 volts via C1, U1, and C2. The 24Volts is regulated down to 15 volts via U2 and C3. The 15 volts is regulated down to 5 volts vis U3 and C4. N is available if people wish to provide an source of power supply voltages and leave U1-U3 empty. The EMDP1 can communicate with its host processor via either RS-232 or RS-422 signaling. The RS-232 signaling takes place via an industrys standard female DB9 connector. The RS-422 signaling done via an RJ45 connector using standard Cat5 (catagory 5) cabling. The RS-422 is wired to conform to my SimpliciNet `standard`, which allows both RS-422 signalling and power over the same cable. The RS-232 signals are converted to logic levels using U3, a standard MAX232 level convert chip. U4 is an RS-422 transceiver configured as an RS-422 transmitter and U5 is an RS-422 transceiver configured as a receiver.

Resister R7 is 100 ohms of RS-422 termination and R8 and R9 provide biasing resistors to ensure that a logic high level is output if now RS-422 signal is present. U6A is takes the logical or of the received signals from the RS-232 and RS-422 and sends them on to the microcontroller serial receive line.

U6B logically or`s the transmit signals from the adaptor (via U11A) or from the microcontroller (MTX). R27 is forces the adaptor signal out if the microcontroller chip is being programmed by the bootstrap adaptor.

The U7 microcontroller is a Microchp ® PIC16F877. U8 is a 20MHz crystal oscillator chip to provide the required clock signal. Connector N8 and resistor R6 is an optional reset button circuit. Jumper N11 shorted when the bootstrap adaptor is being used to program the microcontroller. Connector N7 is a 40-pin connector that is connected to a 37-pin D connector. In addition, the exact same signals are routed to N13 of the `universal` plug. The microcontroller controls the digital to U10 analog converter using standard I2C signalling. The D/Aconverter is a MAX518. (I`m quite nervious about the continued availabilty of this chip; most I2C chips are being manufactured in surface mount packages only. ) Resistors R28 and R29 are the required pull-up resistors for I2C. The outputs of the MAX518 is run into two op amps in U9 configured as linear amplifiers to take the 0 to 5 volt output swing of the D/A and convert it 0 to 24 volt swing.

The capacitors C12 and C13 prevent overshoot. Connector N12 is used by the bootstrap adaptor to get 24 volts of power to feed back to the microcontroller at 13 volts for programming purposes. 🔗 External reference