Code and Documents

Sorry I used multiple sites to store code, trade it between computers, etc. I like pastebin and have used github. If you can’t find it here and you’ll looking for it contact me directly.

Much of my new code and snippets end up on . I’ll try to keep this page updated but I doubt I’ll drop anything less than a full blown project here.

Files with potential updates can be found at github: and NOT here.

All related files I’ve uploaded and code:


Right click and Save As…

All files will have target device included in the file name. They’re either in C (.c) or assembly (.asm). For development I use the Microchip XC8 C compiler.

XC8 C based numerically controlled oscillator (NCO)

This code tests “atomic” clocks that take their signal from WWVB by broadcasting the time code in ASK (OOK). It’s written in assembler but writing it in C from scratch would be a breeze.

Assembly code for basic PWM operation

Assembly code for basic rotary encoder use. Output is dumped as an 8bit integer to a port.


Leave a Reply