Skip to content

Latest commit

 

History

History
161 lines (124 loc) · 5.3 KB

README.md

File metadata and controls

161 lines (124 loc) · 5.3 KB

Contributors Forks MIT License


RS485Expander

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
  1. About The Project
  2. Getting Started
  3. Hardware
  4. Project Layout
  5. History
  6. License

About The Project

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.

(back to top)

Getting Started

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.

(back to top)

Hardware

The pins have the following functions:

  • RA0: RS485 TX
  • RA1: RS485 RX
  • RA2: RS485 DIR (0 => receive, 1 => transmit)
  • RA3: MCLR (connect to VCC)
  • RA4: Expander - CH6
  • RA5: Expander - CH7
  • RC0: Expander - CH0
  • RC1: Expander - CH1
  • RC2: Expander - CH2
  • RC3: Expander - CH3
  • RC4: Expander - CH4
  • RC5: Expander - CH5

(back to top)

Project Layout

  • README.md: this file
  • LICENSE.txt: file containing the license notice
  • main.c: the file containing the main loop
  • Makefile: file generated by MPLAB® X environment
  • RS485Expander.mc3: file with MPLAB® Code Configurator configuration
  • nbproject: folder with MPLAB® X configuration files

(back to top)

History

Version Date Notes
1.0 xx/yy/2022 First release

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)