https://github.com/furkanbakkal/pic-modbus-rtu-slave
PIC18F4520 Modbus RTU as Slave - Led Blink
https://github.com/furkanbakkal/pic-modbus-rtu-slave
ccs modbus-rtu modbus-slave pic serial-communication
Last synced: about 2 months ago
JSON representation
PIC18F4520 Modbus RTU as Slave - Led Blink
- Host: GitHub
- URL: https://github.com/furkanbakkal/pic-modbus-rtu-slave
- Owner: furkanbakkal
- Created: 2022-11-20T15:21:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T08:26:54.000Z (about 2 years ago)
- Last Synced: 2025-01-22T22:11:15.889Z (3 months ago)
- Topics: ccs, modbus-rtu, modbus-slave, pic, serial-communication
- Language: C
- Homepage:
- Size: 163 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PIC-Modbus-RTU-Slave
PIC18F4520 Modbus RTU as Slave - Led Blink - Read Write RegistersProject tested with PIC18F4520, compiler CCS and Python 3.7
------------------
## Extra Components for Modbus Communication:
TTL to USB : https://www.robolinkmarket.com/usb-rs485-donusturucu-modulRS485 to TTL : https://www.robolinkmarket.com/rs485-ttl-seri-donusturucu-karti
------------------
## Wiring for RS485 Modules and LCD :
DE and RE pins shorted ->D2
DI -> TX
RO -> RX
A->A
B->B
LCD_D4 -> PIN_B4
LCD_D5 -> PIN_B5
LCD_D6 -> PIN_B6
LCD_D7 -> PIN_B7
LCD_RS -> PIN_B3
LCD_RW -> PIN_B2
LCD_E -> PIN_B1
LED -> PIN_C4
------------------
## Supported Functions:
3 : Read holding register
6 : Write single register
15: Write multiple registers
------------------
## Serial Port Settings:
Baudrate: 9600
Data Bit: 8
Parity Bit: Even
Stop Bit: 1
------------------