-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Sigrok Decoders | ||
|
||
Some [sigrok decorders](https://sigrok.org/wiki/Protocol_decoders) | ||
|
||
* PCF8574 | ||
* HD44780 (Only 4 bit mode, expecting PCF8574 decoder output) | ||
|
||
|
||
## How to install / use | ||
|
||
|
||
Copy this folder content to: | ||
|
||
* On Linux: `~/.local/share/libsigrokdecode/decoders` | ||
* On Windows: `%ProgramData%\libsigrokdecode\decoders` | ||
|
||
And then restart pulseview / sigrok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# HD44780 LCD Decoder | ||
|
||
The HD44780 is a LCD Controller | ||
|
||
* Only works in 4 bit mode | ||
* Expects a PCF8574 compatible output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# PCF8574 Decoder | ||
|
||
The PCF8574 is a 8 bit I2C I/O Expander | ||
|
||
It receives the input from sigrok i2c decoder and then outputs the raw data that has been written | ||
|
||
|
||
It sends the data to next stack decoder like this: | ||
|
||
|
||
```python | ||
[ | ||
[ bitvalue, startsample, endsample ], # Repeats 8 times, one for each bit | ||
] | ||
|
||
# For example: | ||
[ | ||
[1, 53636, 53656], # Bit 7 | ||
[0, 53616, 53636], # Bit 6 | ||
[0, 53596, 53616], # Bit 5 | ||
[1, 53576, 53596], # Bit 4 | ||
[0, 53556, 53576], # Bit 3 | ||
[0, 53536, 53556], # Bit 2 | ||
[0, 53516, 53536], # Bit 1 | ||
[1, 53496, 53516] # Bit 0 | ||
] | ||
``` |