Jump to content

t 2-ch rs232 hat


Untronix

Recommended Posts

  • Werner changed the title to t 2-ch rs232 hat
1 час назад, Untronix сказал:

First, you need to connect the pins correctly.

They will be different for your board:

Hardware Connection
232 PIN 	Raspberry Pi (BCM) 	Description
VCC 	    5V 	                3.3/5V Power Input
GND 	    GND 	            Ground
SCLK 	    P21 (SPI1 SCLK) 	SPI Clock Signal Input
MOSI 	    P20 (SPI1 MOSI) 	SPI Data Input
MISO 	    P19 (SPI1 MISO) 	SPI Data Output
CS 	        P18 (SPI1 CS) 	    SPI Chip Select
IRQ 	    P24 	            Interrupt Output 

.

 

Цитата

Software setup

 

Open the terminal and modify the config.txt file by commands:

sudo nano /boot/config.txt

 

Add the line below to the file, the int_pin should be set according to the actual welding:

dtoverlay=sc16is752-spi1,int_pin=24

You need to write the correct overlay file and compile it. Then this instruction.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines