AVR ATMEGA328 Manuel - Page 2
Parcourez en ligne ou téléchargez le pdf Manuel pour {nom_de_la_catégorie} AVR ATMEGA328. AVR ATMEGA328 2 pages.
HEADER 3
No.
Name
Function
1
-
Not connect
2
-
Not connect
3
-
Not connect
4
-
Not connect
5
-
Not connect
6
-
Not connect
7
ADC7
ADC ch. 7
8
ADC6
ADC ch. 6
9
PC.5
Port C bit 5
10
PC.4
Port C bit 4
11
PC.3
Port C bit 3
12
PC.2
Port C bit 2
13
PC.1
Port C bit 1
14
PC.0
Port C bit 0
15
-
Not connect
16
-
Not connect
Important!
AVCC and VCC are connected by an inductor.
•
PGND and AGND are connected by lines on the
•
PCB.
Port D on the IC will appear as PORT E on the DT-
•
COMBO BASIC BASE BOARD.
When using Port C as ADC, PORT F on the DT-
•
COMBO BASIC BASE BOARD can also be used.
Pay attention PORT C and PORT F pin 9 and 10
•
are ADC pins and not digital I/O pins on DT-
COMBO BASIC BASE BOARD.
Pay attention to the pin order at the DT-AVR
•
ATMEGA328 CPU MODULE when connecting it
with another module.
Jumper J6 and J7 are used to select function and line of
PB.6 (J6) and PB.7 (J7).
PB.6 and PB.7
Functions
PB.6 and PB.7 on IC
are connected to the
crystal oscillator
PB.6 and PB.7 on IC
are connected to
HEADER 1 and HEADER
2
CD /DVD Contents
1. CodeVisionAVR
©
evaluation.
2. Testing program for ATmega328P in CodeVisionAVR
C language.
3. Datasheet.
HEADER 4
No.
Name
Function
ADC power
1
AVCC
supply input
2
AGND
Ground
3
AREF
AREF
4
PC.0
Port C bit 0
5
PC.1
Port C bit 1
6
PC.2
Port C bit 2
7
PC.3
Port C bit 3
8
PC.4
Port C bit 4
9
PC.5
Port C bit 5
10
ADC6
ADC ch. 6
11
ADC7
ADC ch. 7
12
PGND
Ground
Power
13
VCC
supply input
14
-
Not connect
15
-
Not connect
16
-
Not connect
J6 and J7 Positions
J6 J7
(J6 = 1 - 2)
1
(J7 = 1 - 2)
2
3
J6 J7
1
(J6 = 2 - 3)
2
(J7 = 2 - 3)
3
4. DT-AVR ATmega328 CPU Module Manual.
5. DT-AVR ATmega328 CPU Module Schematic.
6. Innovative Electronics Website.
T esting Procedure
1. This test uses the DT-COMBO BASIC BASE BOARD.
Connect DT-AVR ATMEGA328 CPU MODULE to it.
2. On the DT-COMBO BASIC BASE BOARD perform
these following steps:
Release jumper J31 and arrange jumper J34 and
•
J35 to point 2-3.
Arrange jumper J22, J23, J24, J25, J26, J27,
•
J28, and J29 to point 2-3.
Connect PORT B, PORT C, AND PORT E with DT-
•
I/O LED LOGIC TESTER or a series of active low
LED.
Connect J1 (UART0) or J2 (UART1) DT-COMBO
•
BASIC BASE BOARD with the computer serial port
using a serial cable.
3. Arrange jumper J6 and J7 to position 1-2 and
connect ISP HEADER on the DT-AVR ATMEGA328
CPU
MODULE
Programmer or other compatible programming tools.
4. Connect a 6,5-12 Volt DC power supply to the DT-
COMBO BASIC BASE BOARD DC port. The power LED
on the DT-AVR ATMEGA328 CPU MODULE and DT-
COMBO BASIC BASE BOARD will light up. If one or
both LEDs do not light up, recheck the connections
between the modules and the power supply.
5. Program the ATMEGA328 TEST FILE.HEX using DT-
HiQ AVR In System Programmer or other compatible
programming tools. During the download process, the
programming indicator LED will light up.
6. If the download process succeeded, the LEDs
connected to Port A, Port B, Port C, and Port D (on
Port E) will light up alternately representing the
binary numbers of 0-255. The LEDs at Port D bit 0
and 1 will not light up because they are used as
UART0 serial communication lines. While the LEDs on
Port B and C will only light up from bit 0 to bit 5.
7. Run the terminal program on the computer to see the
serial data sent by the module to the computer. This
serial communication uses the following configuration:
Baud rate
•
Data bit
•
Parity
•
Stop bit
•
Flow control
•
8. When using a HEX view (not ASCII), monitor screen
will show hex numbers from 00H up to FFH sent
repeatedly.
Trademark & Copyright
AVR is registered trademark of Atmel Corporation.
CodeVisionAVR is copyright by Pavel Haiduc, HP InfoTech s.r.l.
♦ Thank you for your confidence in using our products, if there
©
are difficulties, questions, or suggestions regarding this
product please contact our technical support:
with
DT-HiQ
AVR
: 9600 bps
: 8
: none
: 1
: none
In
System