This is the update to the teaser posted a while back. I finally got the boards back from China via snailmail. This is a long-term project that I started in college. An earlier incarnation of it was used in my Masters dissertation.
Just a quick update/teaser. The site isn’t dead and neither am I. I’ve been working on a large and long term project. I’m planning to get it to 90% completion and then start a series of posts on the design, layout and testing of it.
Just a quick post on what happens when you miss the forest for the trees. I’ve been having trouble getting the MTCH6102 to work well with my touchpad setup. I was having trouble reading the TOUCHX,TOUCHY,TOUCHLSB registers and displaying them on the LCD.
Most alphanumeric LCDs work on 5V, with a minimum of 3.7V for Vin_high. This means that to connect an XMEGA working on 3.3V to such a LCD there needs to be a level shifter between the two.
UPDATE: Fixed a small bug in the schematic; updated resistor values. It will work now even with a maximum XMEGA clock, not just at low frequencies.
An alternative title for this article would be: “How to design a crappy touchpad and rip out your hair afterwards”
As I mentioned in my previous post I’m working on something that needs two XMEGAs to talk to each other over TWI. One of them will have a touchpad for human input and a HD44780 compatible 4×20 display. The reason I went this route is because when sourcing buttons to put on the front panel I quickly realized that it would be cheaper to use a capacitive touch solution. Enter the MTCH6102 part from Microchip.
My current project includes an XMEGA microcontroller, specifically an xmega32a4u. This part is supposed to contain the fixed ADC peripheral. The first versions of this part (xmega32a4) had some problems. You can read more about it here.
What I need is to have a TWI (compatible with I2C) interface between two XMEGAs. One will always be a slave and one will always be a master. The master will write a number of bytes to the slave asynchronously and will periodically read a number of bytes from the slave. Continue reading “XMEGA ADC and TWI with interrupts”
Welcome to Otteq. This is where I’ll be posting articles and tutorials about electronics and my own projects.
In the future there will be a shop where you’ll be able to buy various modules and pieces of equipment designed and built by me. Continue reading “In the beginning”