Category Archives: comp-e
Python – Convert 16bit image to 24bit image 565 to 888
Doing the following is much better than using putpixel and a for loop, as numpy uses c-functions. The actual execution speed is about .3 seconds faster on a 240×320 RGBA image. import numpy as np arr = np.fromstring(buff,dtype=np.uint16).astype(np.uint32) arr = … Continue reading
Image Analysis Using Python
/* work inprogress ;p */ While I may be a fan of embedded systems, I have to admit that python has become my new love. Thought taking into account that you can do sweet Matlab style dsp with it, you … Continue reading
Verilog Examples For The Spartan 3 / Nexys 2 Boards
Well, I thought I’d be extra generous since I haven’t posted in so long, and have uploaded 4 verilog examples for your viewing pleasure. I have been a bit busy to comment them but I hope that they may be … Continue reading
Pythons in the ‘C’ircus
Spiffy code that is. Stubby has made a few contributions as of late, so check them out. I will be ragging on him to put his battleship game up, but alas it seems it’s lacking comments so we’ll see how … Continue reading
Creating Morse Code Using The HCS08 Microcontroller
Recently I was faced with the task of sending data out of a HCS08 microcontroller wirelessly. I had only one pin available to me and decided to effectively create Morse Code so that my receiver could decode the signal without … Continue reading
Javascript Examples
In addition to fixing the forum today, I also decided to post a couple ‘fun’ javascript applications that I’ve made. I’m not the best with java script and these two apps are my first attempts. However, they are functional and … Continue reading
Using SPI EEPROM 25AA512 On An HCS08 Microcontroller
This post will go to the forum eventually. I need to fight with my hosting people first and get them to bump the limit on the amount of memory PHP can use. So, for now, you can get all the … Continue reading
Calculate Min Max and Average Using Assembly
This assembly program reads in 8, 8-bit numbers and is able to calculate the min, max, and average of those numbers. The code has been optimized for speed, but if compact code is what you want, by all means use … Continue reading
Digital Design with Pipeline 6 Bit Registers
This SLSL / ‘sudo verilog’ program implements the digital design of a pipeline having multiple registers, an adder, and multiplication architecture. The program can easily be re-implemented in Verilog at your discretion. SLSL is a wonderful language that allows for … Continue reading
Nexys 2 Spartan 3 FPGA Arrives
It took a week to get it from Washington state, but it’s finally here. My gorgeous Nexys 2 board I ordered from Digilent. It uses the Xilinx Spartan 3-e chip and has a lot of nice extra features that the … Continue reading