Skip to content

Instantly share code, notes, and snippets.

View TCWORLD's full-sized avatar

Tom Carpenter TCWORLD

View GitHub Profile
@TCWORLD
TCWORLD / USBBlasterFirmware.hex
Last active April 30, 2024 18:04
PIC18F14K50 Cheap Altera JTAG USB Blaster Firmware (Schematic in Comments)
:020000040000FA
:0600000014EF18F01200DD
:0600080004EF08F01200F5
:060018000CEF08F01200DD
:0608000014EF18F01200D5
:060808000FEF08F01200E2
:0608180012EF08F01200CF
:0610000014EF18F01200CD
:021006000000E8
:061008000FEF08F01200DA
@TCWORLD
TCWORLD / swap.ulp
Created February 7, 2019 18:33
Eagle Swap ULP (Modified)
/*
* swap.ulp
* Jan 2013 , By Cruz Monrreal II (Cruz.Monrreal@gmail.com)
*
* Modified by Thomas Carpenter 2018
*
* Swaps part names.
*
*/
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.6.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
@TCWORLD
TCWORLD / 50VDividerSim.txt
Last active March 20, 2016 02:31
Java Circuit Sim - 50V Divider
Go to here:
http://www.falstad.com/circuit/circuitjs.html
Then do File->Import From Text
Copy and paste all of the lines below into the box presented (If you click the raw button above, you can copy without line numbers):
$ 1 4.9999999999999996E-6 10.20027730826997 50 50.0 50
R 96 240 48 240 0 3 40.0 50.0 0.0 0.0 0.5
r 96 240 192 240 0 10000.0
r 192 240 192 320 0 1000.0
module fpgaread(ARDUINOclk, FPGAclk, FPGAdata);
input ARDUINOclk;
output reg FPGAdata;
output reg FPGAclk;
reg [15:0] count= 16'd0;
reg [127:0] t = 128'd3542638353836;