Description: I decided to implement this using a PIC 16F84 for both an encoder and decoder, and use RS-485 drivers (DS26C31 and DS26C32) to drive the 350m cable. I only needed five I/O pins per PIC, so this could have been implemented using the smaller 8pin 12C508 device, but the 16F84 has the advantage of being reprogrammable, and PCB size or cost wasn’t an issue anyway. The design presented here can be easily modified for any number of bits and any desired interface RS-232, Fibre optic, almost anything.
The described circuit utilizes a PIC 16F84 microcontroller to serve dual functions as both an encoder and decoder within a communication system. This microcontroller is well-suited for such applications due to its programmability and capability to handle sufficient I/O operations. The choice of using the RS-485 communication standard, facilitated by DS26C31 and DS26C32 drivers, allows for robust data transmission over long distances, specifically over a 350-meter cable. RS-485 is particularly advantageous in environments where noise immunity and differential signaling are crucial.
The implementation requires only five I/O pins from the PIC 16F84, which indicates an efficient use of microcontroller resources. While a smaller 8-pin device, such as the PIC 12C508, could have sufficed, the 16F84 offers the flexibility of reprogramming, which can be beneficial for future modifications or updates to the system without needing to redesign the hardware.
The circuit design is adaptable, permitting modifications for varying data bit lengths and the integration of different communication interfaces, such as RS-232 or fiber optic connections. This flexibility enhances the circuit's applicability across various systems and requirements. The schematic would typically include the microcontroller connected to the RS-485 drivers, with appropriate pull-up and pull-down resistors to ensure signal integrity, as well as power supply connections to support the operation of the components.
In summary, the described circuit is a versatile and efficient solution for long-distance communication, leveraging the capabilities of the PIC 16F84 microcontroller and RS-485 standard, while allowing for future scalability and adaptability to different communication protocols.I decided to implement this using a PIC 16F84 for both an encoder and decoder, and use RS-485 drivers (DS26C31 and DS26C32) to drive the 350m cable. I only needed five I/O pins per PIC, so this could have been implemented using the smaller 8pin 12C508 device, but the 16F84 has the advantage of being reprogrammable, and PCB size or cost wasn`t an issue anyway.
The design presented here can be easily modified for any number of bits and any desired interface RS-232, Fibre optic, almost anything.
If a page name is not selected by pressing the button, the previously selected page name continues to be used. The value is stored in EEPROM and may be changed at any time. When the unit is first powered on,...
Instructions for constructing and utilizing a basic PIC programmer using readily available and inexpensive components. The total cost for building the programmer is under $1.50.
The simple PIC programmer is designed to facilitate the programming of PIC microcontrollers, which are widely...
C code for a PIC frequency counter operating up to approximately 50 MHz. The project utilizes an HD47880 LCD for display purposes and employs Timer 1 to count the edges of the input signal.
This frequency counter project is designed to...
A real analog synthesizer to build using easy to get components, capable of a wide range of sounds. The two oscillators can be detuned for that classic synth sound. Dual oscillator mono synth. Really easy to build using just 1...
All that remains now is for the code to be compiled and converted to a HEX file that the PIC can understand. This is achieved easily with the PIC compiler that comes with the PICBASIC package. The PIC is programmed...
A programmable code lock can be used for numerous applications in which access to an article/gadget is to be restricted to a limited number of persons. Here is yet another circuit of a code lock employing mainly the CMOS ICs...
This is my electronic combination lock to use with an outdoor gate. The functionality is implemented in software. It turns on a relay (usually to open a door) for a few seconds if someone enters the valid code. This relay...
The crime prevention bell device produced approximately 20 years ago remains in active service. It has effectively deterred thieves on multiple occasions by triggering an alarm as they attempt to enter. The bell continues to ring, functioning as a crime...
Multiple signals can be transmitted between two locations at the same time by making a minor adjustment to the receiver circuit. An additional DG508A is employed as a demultiplexer, enabling continuous monitoring of all 8 channels.
To implement a system for...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more