ax d.o.o., slovenija avr toolkit
TRANSCRIPT
0010100000000000000000000000111111111101010101010101010000000011111001100110010101010101010010101011010 01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
11111111
11111111
11111111
11111111
11111111
11111111
110000
000000
000000
000011
11111111
1110000
000001
1111110
000000
000000
11101110
10011121011011011011011011111
11101010101010110010011001001001010000001001001000110101101110
111011011011
010101110101001010011101101101100101011001010110011001100101010111101100101000001000011111
10011011100000011
000110010010100000000000010100110111111111111
11111111110
0000111111111111
111111100001010100000000000111110
1000
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
010101101101101011011011100100100000101010101010101010000100100101010101010101010101101010010101010101010
1111111111111111000000000000000000001010101010110101010101000000011100010010011100101010101010010010010
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
1111111111111111111111111111111111111111111111111100000000000000000000111111111111100000000011111110000000000000
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
11111111111111111000000000000000000100100000111100101000111001100101010001001000000000000000000111110
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
00000000000000111111111111111111100000000111111100001010101000000111110110000111000110000001110101010101001010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
111111111110000000000111111111111000000000000000000000000000000000000111111111111111111111111111111111111111111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
00000000000111111111111000000000000000111111111111110000000000000000000001111000000011100001111111111111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
111111111111111111111111000000000000000000000000000000000111111111111111100000000000000000000000011111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
11111111111111100000000000000000011111111110000000111111100111000000000000111111111110000000000001111111111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
0000000000000011111111100000111111111111000110000000000000100000000000001000000110111111110111111111000
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
1111111111111111000000000000000000001010101010110101010101000000011100010010011100101010101010010010010
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
111111111111100000010011010101010001010101100000111111000000011101101011001011000100100000000000001111111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
0111111111111111111111111111111111111111101111111111111111111111111111110111111111111111111111100111111111111111111111100100111111111
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
000110010010100000000000010100110111111111111111111111100000111111111111111111100001010100000000000111110100001010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
111110000000000001010101000000000101010101001000000000000000001110011010101011010111001001001000000
01010111010100101001110110110110010101100101011001100110010101011110110010100000100001111110011011100000011
111111111110000000000000010000000000010101010000000000001111000000000011110100000000001111111
000000
0101011101010010100111011011011001010110010101100110011001010101111011001010000010000111111
0011011100000011
11111111000000000000010010100000000000000110000000001101011010100011111
1111111110
0000000101001010101010
01010111010100101001110
1101101100101011001010110011001100101010111101100101000001000011111
10011011100000011
000101
011000
110010
010001
001001
000000
011100
000000
000000
001100
000000
11111111
000101
11111111
110000
001100
010101
110101
001010
011101
101101
100101
011001
010110
011001
100101
0101111
011001
010000
010000
1111110
011011
100000
011
11111111
11111111
10000
0000
0000
0000
100010
0111111
10000
0000
0000
0000
011011
11111111
0000
0000
10100
110101
0000
00
010101
110101
00101
00111
011011
01100
101011
00101
01100
110011
00101
010111
101100
10100
00010
00011
111100
110111
0000
0011
010101
101101
101101
101101
111111
111111
10000
011011
011011
011010
00101
010110
110011
00110
10100
110011
00110
011011
00110
01101
0101
01110
1010
0101
00111
0110
110110
0101
0110
0101
0110
0110
0110
0101
0101
11101
1001
0100
0001
0000
111111
00110
11100
0000
11
11001
1001
1001
10110
1001
00111
111111
1000
0000
0000
0101
0101
0101
0101
111111
111111
111110
0000
0000
0000
0000
01111
111111
00
0101
01110
1010
0101
00111
0110
110110
0101
0110
0101
0110
0110
0110
0101
0101
11101
1001
0100
0001
0000
111111
00110
11100
0000
11
0000
0001
111111
111111
111111
1001
0010
110110
11001
1001
0110
110110
0101
0110
01111
11100
0000
11110
0001
1010
1001
1010
1001
1000
0101
01110
1010
0101
00111
0110
110110
0101
0110
0101
0110
0110
0110
0101
0101
11101
1001
0100
0001
0000
111111
00110
11100
0000
11
111111
111111
111111
11100
111111
111111
111110
11100
0000
0000
0000
0000
0000
0110
0110
0110
11001
00110
0000
0000
0000
0000
0001
0101
11010
1001
0100
11101
10110
11001
0101
1001
0101
1001
1001
1001
0101
01111
0110
0101
0000
0100
00111
11100
110111
0000
0011
0101
01110
1010
0101
00111
0110
110110
0101
0110
0101
0110
0110
0110
0101
0101
11101
1001
0100
0001
0000
111111
00110
11100
0000
11
01110
11001
0010
00111
111110
0100
1001
111110
0110
0110
0100
1001
0100
11001
10111
111111
11010
1001
0010
111111
11101
0101
111110
10
0101
01110
1010
0101
00111
0110
110110
0101
0110
0101
0110
0110
0110
0101
0101
11101
1001
0100
0001
0000
111111
00110
11100
0000
11
111111
111110
0000
0000
0000
0100
0000
0000
0101
0101
0000
0000
0000
11110
0000
0000
01111
0100
0000
0000
111111
1000
000
010101
110101
00101
00111
011011
01100
101011
00101
01100
110011
00101
010111
101100
10100
00010
00011
111100
110111
0000
0011
00111
101110
111011
111110
011110
011111
100011
110110
101011
011111
111010
101011
101011
011011
011010
011011
101100
111101
011
010101
110101
00101
001110
110110
110010
101100
101011
00110
01100
101010
1111011
00101
0000
01000
0111111
00110
111000
00011
010101
110101
001010
011101
101101
100101
011001
010110
011001
100101
0101111
011001
010000
010000
1111110
011011
100000
011
AVR TOOLKIT
ax d.o.o., slovenija
AVR RAZVOJNO ORODJE
AVR
TOOL
KIT
ax d.o.o., slovenia
MPIN BOOKLETMPIN KNJIZICA
MPin naslovnica.pdf 27.5.2011 9:40:38
3
MPin - Base and instructions
Dear MiniPin II user!I am proud that you have purchased our MiniPin II development board. I trust that you will be same enthusiastic as myself when using it. When programming micro controllers for more than 15 years I have seen & tested many development boards, but none so far was so user friendly. I hope that you will also find MiniPin II easy to use too. Please read this User manual carefully and explore all possibilities of MiniPin II usage.
AX elektronikaJurij Mikeln, B.Sc.E.E., owner
MINIPIN II
4
Base and instructions - MPin
First time to plug MiniPin II to your programmerFirst time you will connect MiniPin II to your programmer, make sure that you have connected programmer’s socket to socket “PROGGY”. In case you do not own Proggy programmer make sure that you connect signals to MiniPin II as follows, picture 1.
MiniPin II is powered from programmer and it is fused with 250 mA fuse. Fuse will protect USB port on your PC in case you make a short circuit on your MiniPin II board.
Programming AVRs in MiniPin II MiniPin II can program AVRs in system, means that you put your AVR to suitable socket, connect programmer to MiniPin II and your system is ready for pro-gramming.
ISP programmer in AVR StudioPut your AVR micro controller to suitable socket and click AVR button within AVR Stu-dio, picture 2.
In tab Main select micro controller that you want to program, picture 3.
To be sure that communication is OK and that you selected right micro controller press “Read Signature”. If signature corresponds to used micro controller then you may pro-ceed with programming. If signature does not correspond select right micro controller from the list.
ISP programmer in Bascom-AVRPut your AVR micro controller to suitable socket and within Bascom-AVR click Options/Programmer. You will see window, picture 4.
In window Programmer select STK500 (re-quires stk500.exe), set COM port to same
1
2
3
10
Base and instructions - MPin
19
18
17LED signalizationMiniPin II features more LEDs:
Rx/Tx communication (not available in MiniPin II B version!), picture •17,Power supply OK, picture 18,•4 x 8 LEDs on IO Ports, picture 19.•
CommunicationMiniPin II supports following communication:
serial via FT232RL to USB,1. 1Wire.2.
serial bidirectional communication:bidirectional communication from USB to FT232RL and target micro-controller (B version of MiniPin II does not support that).
1Wire: place DS18S20 to any of sockets J10 to J15, connect CON5 with flat cable to any Port connector (CON3, CON4, CON6, CON7). Socket J10 corresponds to PortX.0, J11 corresponds to PortX.1 etc.
11
MPin - Base and instructions
Input & Outputs on MiniPin IIMiniPin II features:
supports all AVR microcontrollers in 8-pin, 28-pin & 40 pin DIL packages (except ATMega8515, 8535, •i.e. older AVRs),built in 6 sockets for 1Wire DS18S20 temperature sensors that can be connected to any I/O Port,•4x8 LEDs on four I/O ports (PortA, PortB, PortC & PortD),•4 I/O connectors on ports: (PortA, PortB, PortC, PortD),•built in 250 mA fuse to protect USB from short circuit on board,•built in USB communication to UART (not in MiniPin II B version!)•built in oscillator circuit to clock micro controller from external quartz crystal,•built in 3-pin socket for ceramic resonator,•built in 2-pin socket for 32,768 kHz quartz crystal,•built in external adjustable reference voltage when using internal ADC in AVR,•built in keyboard that can be connected to any I/O Port,•built in Power-ON LED,•built in indication of serial communication Tx/Rx LEDs.•
Bascom-AVR program samples to be used on MiniPin IIWe have prepared few sample programs to be used with MiniPin II:1Wire_1.BAS: single 1Wire sensor on a bus, temperature is displayed on LCD,1Wire_2.BAS: program displays 1Wire ID of two sensors on the bus,1Wire_3.BAS: same as 1Wire_2.BAS but ID of sensors are stored in EEPROM,1Wire_4.BAS: multiple 1Wire sensors, one on each Port,For_loop.BAS: simple FOR-Next loop for testing LEDs on all ports,GLCD_1.BAS: use of graphical LCD with table drawn on LCD and 8x8 font,GLCD_2.BAS: GLCD with fonts that can be placed anywhere on GLCD,GLCD_3.BAS: GLCD with use of touch panel including simple calibration of touch panel, GLCD_4.BAS: GLCD with improved calibration for touch panel,LCD8x2.bas: simple program to display characters on blue 8x2 LCD, including PWM for controlling back-light,Megaclock.bas: clock with 32,768 kHz XTAL and 8x2 LCD,Megaclock1.bas: same as Megaclock.bas with simple routines to set date/hour/min,PWM1.bas: simple PWM using hardware PWM in AVR,USB-ADC2.bas: acquires analogue voltage and converts it with A/D, then transmits it to USB and to LCD. You can see transmitted voltage value in Hyperterminal within Bascom-AVR.
We wish you successful programming with MiniPin II development board!
14
Base and instructions - MPin