100%
pi-parport hat view
Description

Imported from GitHub: worlickwerx/pi-parport · commit b44e019 · license GPL-2.0

Description

retro parallel port for raspberry pi

README

Testing

These tests primarily check that the bits aren't shorted, open, or misrouted, and the the DTS overlay is properly configured. Ensure that the ppdev module is loaded before running these tests.

loop - plug A

loop A utilizes a DB25 loopback plug wired as below.

PinNamePinName
3DATA114CONTROL1
4DATA215STATUS3
5DATA317CONTROL3
6DATA413STATUS4
7DATA512STATUS5
8DATA610STATUS6
9DATA711STATUS7

phase 1 DATA is configured for output. Each of 256 possible output values is placed in the DATA register, then the STATUS register is read. The bits from DATA[2,4:7] must appear on STATUS[3:7].

phase 2 DATA is configured for input. Each of 16 possible control values is placed in the CONTROL register, then the DATA register is read. The bits from CONTROL[1,3] must appear on DATA[1,3].

loop - plug B

loop B utilizes a DB25 loopback plug wired as below. It covers the pins missed by plug A.

PinNamePinName
2DATA01CONTROL0
4DATA216CONTROL2

DATA is configured for input. Each of 16 possible control values is placed in the CONTROL register, then the DATA register is read. The bits from CONTROL[0,2] must appear on DATA[0,2].

strobe

strobe pin [period] simply toggles a selected pin at a target period so it can be scoped. This is useful for debugging if the loop tests fail.

Comments
Sign in to comment

No comments yet. Be the first to ask about this board.