This is the firmware for an RS-485 port expander based on a PIC16F1825
Explore the code »
Hardware documentation »
Report Bug
·
Request Feature
Table of Contents
This is an 8-bit port expander based on a PIC16F1825.
The hardware part of this project can be accessed on Altium 365. An Altium 365 (or CircuitMaker) account is needed to download the files, but they can be viewed online even as a guest.
The boards can be ordered from OSH Park. If necessary, gerber files can be downloaded directly even as a guest.
Note: The above links are not affiliate links. I will not gain money if you download/order from the above links.
Clone the repository from
[email protected]:fra87/RS485Expander.git in a folder called RS485Expander.X
.
Before building you will need to generate the MCC files. For this, open the MPLAB® Code Configurator and click on the "Generate" button.
The pins have the following functions:
RA0
: RS485 TXRA1
: RS485 RXRA2
: RS485 DIR (0 => receive, 1 => transmit)RA3
: MCLR (connect to VCC)RA4
: Expander - CH6RA5
: Expander - CH7RC0
: Expander - CH0RC1
: Expander - CH1RC2
: Expander - CH2RC3
: Expander - CH3RC4
: Expander - CH4RC5
: Expander - CH5
README.md
: this fileLICENSE.txt
: file containing the license noticemain.c
: the file containing the main loopMakefile
: file generated by MPLAB® X environmentRS485Expander.mc3
: file with MPLAB® Code Configurator configurationnbproject
: folder with MPLAB® X configuration files
Version | Date | Notes |
---|---|---|
1.0 | xx/yy/2022 | First release |
Distributed under the MIT License. See LICENSE.txt
for more information.