Hein (fub) wrote,
Hein
fub

  • Mood:

Display testing

This evening, I wrote a small program to test the display. OK, so I had it all wired up -- but would it work? Maybe I made a connection I shouldn't have, maybe my soldering was off -- lots of things can go wrong. So testing the display is important, so that you know you can continue with the next step.
I put in a microcontroller (the 16F628A) and three shift registers. I drew (part of) the schematic in Eagle, so I could easily see which pins drove which part of the circuit. Then I got to work with a small test program that turned everything on and off again, and then lit each segment in turn.
All the segments can be lit and turned off, and it all worked correctly. The transistors, used for the multiplexing, all worked correctly too.

I couldn't believe it. This is the most complicated circuit I ever designed and implemented, and it all worked at the first try. That never happened before: there's always a little bug somewhere...

So, I wrote the initialisation routine for the display. When the machine is turned on, the display should say "MACH F". And that worked too!


Of course, we're not out of the woods yet. I need to test the MAX232, and write software to display a text that is received via the USART on the display. I see lots of lookup-tables in my future...
Subscribe

  • Mock Chicken

    The Judge Dredd comics are an interesting artefact of the 1980s: it’s what British comic writers thought how the US urban landscape would…

  • Friday Five: Food

    Food is an important subject of this blog, so I couldn’t pass up a food-themed Friday Five. 1) What is your favourite food? Okonomiyaki, no…

  • Baking

    I have been making chocolates with flexible silicone molds, because those are easy to get the chocolate out of once it’s been set. I did try…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments