The ATmega32 is used to flash two separate LEDS. as follows: LED D1 will flash on a frequency 20 kHz and duty cycle of 70%. LED D2 will flash on a frequency of 10 kHz and duty cycle of 35%. Develop a C-code to program this ATmega. 22 23 24 25 26 27 28 RESET PCO/SCL PC1/SDA PC2/TCK PC3/TMS PC4/TDO PC5/TDI D2 13 12 XTAL1 XTAL2 40 39 D1 LED PAO/ADCO

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
The ATmega32 is used to flash two separate LEDS. as follows:
LED D1 will flash on a frequency 20 kHz and duty cycle of 70%.
LED D2 will flash on a frequency of 10 kHz and duty cycle of 35%.
Develop a C-code to program this ATmega.
22
23
24
25
26
27
28
29
RESET
PCO/SCL
PC1/SDA
PC2/TCK
D2
13
12
XTAL1
XTAL2
PC3/TMS
PC4/TDO
PC5/TDI
40
39
38
37
36
35
34
33
LED
PAO/ADCO
PA1/ADC1
PA2/ADC2
PA3/ADC3
PAAIADC4
D1
PC6/TOSC1
PC7/TOSC2
14
15
16
17
18
19
20
21
PDO/RXD
LED
PAS/ADC5
PAGIADC6
PATIADC7
PD1/TXD
PD2/INTO
PD3/INT1
PD4/OC1B
PD5/OC1A
PD6ICP1
PD7/OC2
PBOTOXCK
PB1/T1
PB2/AINOINT2
4.
PB3/AIN1/OCO
PB4/SS
PB5/MOSI
7.
PB6/MISO
AREF
AVCC
32
30
PB7/SCK
ATMEGA32
Transcribed Image Text:The ATmega32 is used to flash two separate LEDS. as follows: LED D1 will flash on a frequency 20 kHz and duty cycle of 70%. LED D2 will flash on a frequency of 10 kHz and duty cycle of 35%. Develop a C-code to program this ATmega. 22 23 24 25 26 27 28 29 RESET PCO/SCL PC1/SDA PC2/TCK D2 13 12 XTAL1 XTAL2 PC3/TMS PC4/TDO PC5/TDI 40 39 38 37 36 35 34 33 LED PAO/ADCO PA1/ADC1 PA2/ADC2 PA3/ADC3 PAAIADC4 D1 PC6/TOSC1 PC7/TOSC2 14 15 16 17 18 19 20 21 PDO/RXD LED PAS/ADC5 PAGIADC6 PATIADC7 PD1/TXD PD2/INTO PD3/INT1 PD4/OC1B PD5/OC1A PD6ICP1 PD7/OC2 PBOTOXCK PB1/T1 PB2/AINOINT2 4. PB3/AIN1/OCO PB4/SS PB5/MOSI 7. PB6/MISO AREF AVCC 32 30 PB7/SCK ATMEGA32
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY