Skip to content

Commit

Permalink
initial psuh
Browse files Browse the repository at this point in the history
  • Loading branch information
GBert committed Apr 1, 2014
1 parent cb2e02b commit 5d4d090
Show file tree
Hide file tree
Showing 113 changed files with 158,376 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Using a GPIOs on CP2104 adapter
===============================

This git contains module code to use the GPIOs on cp2104 adapter
with Linux.
It also contains code to programm a PIC MCU. The programming
is slow but enough to flash a bootloader.

Using as PIC programmer
-----------------------

This is an adaption of the k8048 software from Darron Broad.

<pre><code>
Breadboard connections for LVP programming with VPP at 3V3
----------------------------------------------------------

CP2104 PICMicro
====== ========

3V3-------------------------------VDD----------+
|
GND-------------------------------VSS |
|
GPIO 1----------------------------VPP---4.7K---+
|
GPIO 2----------------------------PGC---4.7K---+
|
GPIO 3----------------------------PGD---4.7K---+
|
GPIO 0----------------------------PGM---4.7K---+

(1) Not used by all LVP compatible devices.
</pre></code>
34 changes: 34 additions & 0 deletions k8048_cp2104/HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-------------------------------------------------------------------------------

Copyright (C) 2005-2014 Darron Broad
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name `Darron Broad' nor the names of any contributors
may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------

30 changes: 30 additions & 0 deletions k8048_cp2104/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

Copyright (C) 2005-2014 Darron Broad
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name `Darron Broad' nor the names of any contributors
may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
83 changes: 83 additions & 0 deletions k8048_cp2104/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#
# Copyright (C) 2005-2014 Darron Broad
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name `Darron Broad' nor the names of any contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#

#
# COMMAND LINE TOOL ONLY
#
# DEBIAN:
# sudo apt-get install mercurial
# hg clone http://hg.kewl.org/pub/k8048/
# cd k8048
# make build
# sudo make install
#
build:
cd Src && $(MAKE)

install:
cd Src && $(MAKE) install

uninstall:
cd Src && $(MAKE) uninstall

clean:
rm -f *~
cd Doc && $(MAKE) clean
cd Src && $(MAKE) clean
#
# COMMAND LINE TOOL & ASSEMBLER DEMOS
#
# REQUIRES: gpasm gEDA gEDA-utils
#
# DEBIAN:
# sudo apt-get install gputils
# sudo apt-get install geda
# sudo apt-get install geda-utils
# sudo apt-get install libreadline-dev
# sudo apt-get install libncurses-dev
# make build-all
# sudo make install-all
#
build-all:
cd Doc && $(MAKE)
cd Src && $(MAKE) build-all

install-all:
cd Src && $(MAKE) install-all

uninstall-all:
cd Src && $(MAKE) uninstall-all

clean-all:
rm -f *~
cd Doc && $(MAKE) clean
cd Src && $(MAKE) clean-all
34 changes: 34 additions & 0 deletions k8048_cp2104/Src/HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-------------------------------------------------------------------------------

Copyright (C) 2005-2014 Darron Broad
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name `Darron Broad' nor the names of any contributors
may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------

66 changes: 66 additions & 0 deletions k8048_cp2104/Src/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
-------------------------------------------------------------------------------

Copyright (C) 2005-2014 Darron Broad
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name `Darron Broad' nor the names of any contributors
may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------

Program install (gnu make)
--------------------------

make build
sudo make install

Program uninstall (gnu make)
----------------------------

sudo make uninstall

Compiled and tested on
----------------------

FreeBSD 5.3-release (duron 700/SiS)
FreeBSD 5.4-stable (athlon 850/VIA 266)
FreeBSD 6.0-current (celeron 750/Toshiba)
FreeBSD 9.0-release (i5-2500K/Intel)
FreeBSD 10-0-BETA2 (i5-2500K/Intel)
GNU/Linux 2.6.5 (athlon 1G/VIA 133)
MacOS X 10.4.3 (iBook G4 limited success using a Prolific PL-2303 USB to SERIAL adapter)
Redhat Fedora Core 4
NetBSD 3.0 (i386)
Windows XP (SP2) CYGWIN 1.5.21-1 (athlon-64 3000+/nForce4)
Windows XP (SP2) CYGWIN 1.5.21-1 (athlon-64 3800+/nForce4)
Debian Wheezy (i5-2500K/Intel)
Debian Wheezy 'Raspbian' (armv6l/Broadcom)

Compiled but not tested on
--------------------------

GNU/Linux 2.4.18
Loading

0 comments on commit 5d4d090

Please sign in to comment.