A driver for programming Renesas's GreenPak SPLD devices.
Project description
GreenPak Driver
A Python package to access and program Renesas GreenPak SPLD's.
This Python package provides a simple to use API to read/write/program Renseas GreenPak PLDs over a USB to I2C link.
Sample usage using the I2C Adapter:
import greenpak as gp
print("Connecting.")
i2c_driver = gp.drivers.GreenPakI2cAdapter(port = "COM17")
gp_driver = gp.GreenpakDriver(i2c_driver, device="SLG46826", control_code=0b0001)
print("Loading configuration.")
data = gp.read_bits_file("test_data/slg46826_blinky_fast.txt")
gp.hex_dump(data)
print("Programming the NVM.")
gp_driver.program_nvm_pages(0, data)
print ("Reading the NVM.")
data = gp_driver.read_nvm_bytes(0, 256)
gp.hex_dump(data)
print("Resetting the device.")
gp_driver.reset_device()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greenpak-0.0.10.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for greenpak-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f71f6ece8c0133b102fdb9304d446ecf8a584a7716c3df73b14958ae07dd1cc |
|
MD5 | 740c3f159d0616ff66be2185c59b7fa7 |
|
BLAKE2b-256 | 00f40383b4767f47c9ce361c57c2d2bedd9dc4b1920f51fe4aa94431db0db389 |