Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Optimizing SPI TFT displays for Teensy 3.1

SPI driven TFT LCDs are common way of getting graphical interface on Arduino based hardware. From Arduino perspective you just grab one of existing library like Adafruit’s TFT LCD library and with few lines of code you can get your graphics on screen. But the problem is that library is meant to be used on Arduino boards like UNO that are limited in resources like speed and memory. SO using same library on boards like Teensy 3.1 is loosing its potential. Paul Stoffregen took this library and adapted it for Teensy 3.1 to use its benefits in order to gain much better performance. Teensy 3.1 is ARM based 32 bit board, so there are plenty ways to improve things. First of all he took advantage of SPI speed. If Arduino can drive SPI at 8MHz, Teensy 3.1 can go up to 24MHz. Another improvement is 4 level FIFO buffer in Teensy 3.1 SPI port. So software don’t have to wait until transmit is complete before sending another byte. In other words, software can write byte to SPI while it is… Continue reading

Get Involve with AVR Logic Analyzer

How often do you involve yourself with AVR logic analyzer? Or, would you interested to develop a simple and powerful AVR logic analyzer for your own use? Well, then you must take a seat first, as you’re about to going into the journey of AVR logic analyzer. This project is uses ATmega168 microcontrollers, where the microcontroller will use its pin change interrupt, so it can detect a change in logic level on any of the six pins. So, if the pins detect a change, the value is to be stored in a 1000 byte buffer. If the serial port is not that busy, then it will send the data to the computer is a FIFO (first in first out) fashion. Furthermore, the computer can be changed the interrupt mask register to enable or disable changes triggering a particular pin. Since the firmware is well written in AVR-GCC with AVR Studio, hence, it can be modified and applied on any microcontroller with hardware UART and pin change interrupts. Since this is a very simple and easy to develop project, thus you… Continue reading