User avatar
nroff-man
Posts: 23
Joined: Mon Jul 30, 2012 7:31 pm
Location: /usr/bin

Raspberry PI-C (Velleman K8048 / VM111)

Thu Nov 08, 2012 12:10 am

Hi there.

Not really sure if this is the correct BB area or not but this will do.

I have updated my software which may program a microchip PIC
on a Velleman k8048 to now work using the R-PI GPIO.

Two caps, 3 resistors and a single I.C. (74HC03) are adequate
to interface the two devices together and the code does the rest.
k8048-rpi.jpg
k8048-rpi.jpg (47.68 KiB) Viewed 2282 times
You can find the source code here:

Code: Select all

http://dev.kewl.org/k8048/k8048-2-rpi.tgz
How to create an interface is visualised here:

Code: Select all

http://dev.kewl.org/k8048/Src/raspi.c
Some documentation is here (to be updated):

Code: Select all

http://dev.kewl.org/k8048/Doc/
Thanks go to GERT and DOM for providing the GPIO demo
code and the foundation for creating this useful computer.

Bye-bye

P.S. A simple demo

Code: Select all

pi2:~> sudo k14 i
[2000] [USERID0]  ff .
[2001] [USERID1]  ff .
[2002] [USERID2]  ff .
[2003] [USERID3]  ff .
[2006] [DEVICEID] 10e3 DEV:10e0 (87) REV:3 PIC16F676

User avatar
nroff-man
Posts: 23
Joined: Mon Jul 30, 2012 7:31 pm
Location: /usr/bin

Re: Raspberry PI-C (Velleman K8048 / VM111)

Thu Nov 29, 2012 8:06 pm

Lo

The first two links above are now out of date, also, the
documentation has been updated to include the R-PI C/W
a stripboard interface example.

See here:

Code: Select all

http://dev.kewl.org/k8048/Doc/
Since the last message I also added PIC baseline (12-bit)
support since I had a few devices sitting here yearning for
attention.

Bye-bye

User avatar
nroff-man
Posts: 23
Joined: Mon Jul 30, 2012 7:31 pm
Location: /usr/bin

Re: Raspberry PI-C (Velleman K8048 / VM111)

Fri Oct 04, 2013 11:45 pm

Hello.

It's been a while but I got around to updating the code and documentation
for the GPIO support with direct connection to a PICMicro on a breadboard
rather than via an interface to the Velleman kit.

The update includes PGM pin support and a command line tool to RESET a
connected device.

For this latest release in celebration of really poor quality square wave
tone generators of our youth (if you are old like me) I present
`beep like an IBM PC and POKE like a VIC=20'.

This simple demo may show this tool in operation.

Assembly code:
http://dev.kewl.org/k8048/Src/asm/pic18 ... onegen.asm

Schematic:
http://dev.kewl.org/k8048/Src/asm/pic18 ... onegen.png

Bye-bye
Attachments
tonegen.jpg
Simple Tone Generator
tonegen.jpg (34.12 KiB) Viewed 1687 times

Return to “HATs and other add-ons”