
Thank you for purchasing a Hack The Badge v1.0 

I'm not the best at writing formal documentation, however I'll do my 
best to share with you the important information about your new board.

The board is based on the Atmel ATmega325p, using the 64pin TQFP surface
mount part.  This chip is capable of running at voltages as low as 1.8V
and as high as 5V.  This wide range of voltages made it the ideal
candidate to use at DefCon to interface with another microcontroller of
unknown voltage and capacity. 

The HTB v1.0 has quite a variety of features:

2x 3V CR2450 600mAh lithium coin cells
3V->5V buck booster (MAX1674 based) to run off the batteries
 (power switch selects between battery and onboard/USB power)
FTDI USB->Serial converter (polyfused to protect against overcurrent)

Six mechanical switches (momentary on) attached to PORTA
	YOU MUST USE THE INTERNAL PULL-UP RESISTOR WITH THESE SWITCHES!
        If you do not enable the pull up resistor, you can inadvertently
        damage the pin with an over-current condition when the button is
        pushed.

	remember to:
	DDRC |= 0x1F  (enable pull-up resistor for pins 0-5) 

A fifteen LED array matrix connected to PORTC
	pins PORTC PC0/PC1/PC2 are connected to __P-channel transistors__
	This means that in order to light up LED's on that column, you need
        to set the pin to 0, and drive the transistor by setting at least
        one row LED pin on.   This will be corrected in hackthebadge v1.1 

Eight A/D inputs on PORTF

PWM outputs are on slightly different pins than are on the arduino
mega.  PWM outputs are on PORTB, pins 7-4 which correspond to pins
13, 12, 11 on the arduino.  PB6 is available as a one-pin post which
you can add to the board, just left of the CPU and above the PB7 LED.

By default, your board comes with the following fuse settings:

	hfuse: 0x10   lfuse: 0xff   efuse: 0xff

If you have any questions, I will be setting up some forum software on:

http://www.igotu.com/htb (or /hackthebadge)

I can always be reached as : drvolts@igotu.com 

      -------------------------------------------------

Should you accidentally 'brick' your htb by changing the settings of
the clock source fuses (lfuse), you can send the board back to me with
a self addressed pre-stamped envelope or label, and I'll reflash it back. 
The lfuse setting needs to remain 0xff. 





