SlideShare a Scribd company logo
PENYUSUN:
EGI AGUNG PRAYOGI 1710501012
YOGA APRIYANSYAH 1710501016
DOSEN PEMBIMBING:
R. SURYOTO EDY RAHARJO, S.T., M.Eng
TEKNIK ELEKTRO
UNIVERSITAS TIDAR
PERCOBAAN 1
PROGRAM DAN CODING
$regfile = "m16adef.dat"
$crystal = 8000000
Config Porta = Output
Do
Porta = &B10000000
Waitms 1
Porta = &B11000000
Waitms 1
Porta = &B11100000
Waitms 1
Porta = &B11110000
Waitms 1
Porta = &B11111000
Waitms 1
Porta = &B11111100
Waitms 1
Porta = &B11111110
Waitms 1
Porta = &B11111111
Waitms 1
Loop
End
FLOWCART
PERCOBAAN 2
PROGRAM DAN CODING
$regfile = "m16adef.dat"
$crystal = 8000000
Config Portc = Output
Do
Portc = &B00000001
Waitms 200
Portc = &B00000010
Waitms 200
Portc = &B00000100
Waitms 200
Portc = &B00001000
Waitms 200
Portc = &B00010000
Waitms 200
Portc = &B00100000
Waitms 200
Portc = &B01000000
Waitms 200
Portc = &B10000000
Waitms 200
Portc = &B01000000
Waitms 200
Portc = &B00100000
Waitms 200
Portc = &B00010000
Waitms 200
Portc = &B00001000
Waitms 200
Portc = &B00000100
Waitms 200
Portc = &B00000010
Waitms 200
Portc = &B00000001
Waitms 200
Loop
End
FLOWCART
PERCOBAAN 3
PROGRAM DAN CODING
$regfile = "m16adef.dat"
$crystal = 8000000
Config Porta = Output
Config Portb = Output
Do
Porta = &B100000
Portb = &B000000
Waitms 100
Porta = &B110000
Portb = &B000000
Waitms 100
Porta = &B111000
Portb = &B000000
Waitms 100
Porta = &B011100
Portb = &B000000
Waitms 100
Porta = &B001110
Portb = &B000000
Waitms 100
Porta = &B000111
Portb = &B000000
Waitms 100
Porta = &B000011
Portb = &B100000
Waitms 100
Porta = &B000001
Portb = &B110000
Waitms 100
Porta = &B000000
Portb = &B111000
Waitms 100
Porta = &B000000
Portb = &B011100
Waitms 100
Porta = &B000000
Portb = &B001110
Waitms 100
Porta = &B000000
Portb = &B000111
Waitms 100
Porta = &B000000
Portb = &B000011
Waitms 100
Porta = &B000000
Portb = &B000001
Waitms 100
Porta = &B000000
Portb = &B000011
Waitms 100
Porta = &B000000
Portb = &B000111
Waitms 100
Porta = &B000000
Portb = &B001110
Waitms 100
Porta = &B000000
Portb = &B011100
Waitms 100
Porta = &B000000
Portb = &B111000
Waitms 100
Porta = &B000001
Portb = &B110000
Waitms 100
Porta = &B000011
Portb = &B100000
Waitms 100
Porta = &B000111
Portb = &B000000
Waitms 100
Porta = &B001110
Portb = &B000000
Waitms 100
Porta = &B011100
Portb = &B000000
Waitms 100
Porta = &B111000
Portb = &B000000
Waitms 100
Porta = &B110000
Portb = &B000000
Waitms 100
Loop
End
TRIFFIG LIGHT
'PROGRAM TRIFFIC LIGHT
'EGI AGUNG PRAYOGI &
YOGA APRIYANSYAH
'06/05/2019
$regfile = "m16adef.dat"
$crystal = 8000000
Config Porta = Output
Config Portb = Output
Do
Porta = &B100001
Portb = &B001001
Wait 15
Porta = &B010001
Portb = &B001001
Wait 5
Porta = &B001100
Portb = &B001001
Wait 15
Porta = &B001010
Portb = &B001001
Wait 5
Porta = &B001001
Portb = &B100001
Wait 15
Porta = &B001001
Portb = &B010001
Wait 5
Porta = &B001001
Portb = &B001100
Wait 15
Porta = &B001001
Portb = &B001010
Wait 5
Loop
End
running led
running led
running led

More Related Content

Recently uploaded

Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
Kamal Acharya
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Md. Shahidul Islam Prodhan
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
884710SadaqatAli
 
calpeda Water Efficient and Effective Pump.pptx
calpeda Water Efficient and Effective Pump.pptxcalpeda Water Efficient and Effective Pump.pptx
calpeda Water Efficient and Effective Pump.pptx
calpedapumpindia
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
Emre Günaydın
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 

Recently uploaded (20)

Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
calpeda Water Efficient and Effective Pump.pptx
calpeda Water Efficient and Effective Pump.pptxcalpeda Water Efficient and Effective Pump.pptx
calpeda Water Efficient and Effective Pump.pptx
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

running led

  • 1. PENYUSUN: EGI AGUNG PRAYOGI 1710501012 YOGA APRIYANSYAH 1710501016 DOSEN PEMBIMBING: R. SURYOTO EDY RAHARJO, S.T., M.Eng TEKNIK ELEKTRO UNIVERSITAS TIDAR
  • 3. PROGRAM DAN CODING $regfile = "m16adef.dat" $crystal = 8000000 Config Porta = Output Do Porta = &B10000000 Waitms 1 Porta = &B11000000 Waitms 1 Porta = &B11100000 Waitms 1 Porta = &B11110000 Waitms 1 Porta = &B11111000 Waitms 1 Porta = &B11111100 Waitms 1 Porta = &B11111110 Waitms 1 Porta = &B11111111 Waitms 1 Loop End
  • 6. PROGRAM DAN CODING $regfile = "m16adef.dat" $crystal = 8000000 Config Portc = Output Do Portc = &B00000001 Waitms 200 Portc = &B00000010 Waitms 200 Portc = &B00000100 Waitms 200 Portc = &B00001000 Waitms 200 Portc = &B00010000 Waitms 200 Portc = &B00100000 Waitms 200 Portc = &B01000000 Waitms 200 Portc = &B10000000 Waitms 200 Portc = &B01000000 Waitms 200 Portc = &B00100000 Waitms 200 Portc = &B00010000 Waitms 200 Portc = &B00001000 Waitms 200 Portc = &B00000100 Waitms 200 Portc = &B00000010 Waitms 200 Portc = &B00000001 Waitms 200 Loop End
  • 9. PROGRAM DAN CODING $regfile = "m16adef.dat" $crystal = 8000000 Config Porta = Output Config Portb = Output Do Porta = &B100000 Portb = &B000000 Waitms 100 Porta = &B110000 Portb = &B000000 Waitms 100 Porta = &B111000 Portb = &B000000 Waitms 100 Porta = &B011100 Portb = &B000000 Waitms 100 Porta = &B001110 Portb = &B000000 Waitms 100 Porta = &B000111 Portb = &B000000 Waitms 100 Porta = &B000011 Portb = &B100000 Waitms 100 Porta = &B000001 Portb = &B110000 Waitms 100 Porta = &B000000 Portb = &B111000 Waitms 100 Porta = &B000000 Portb = &B011100 Waitms 100 Porta = &B000000 Portb = &B001110 Waitms 100 Porta = &B000000 Portb = &B000111 Waitms 100 Porta = &B000000 Portb = &B000011 Waitms 100 Porta = &B000000 Portb = &B000001 Waitms 100 Porta = &B000000 Portb = &B000011 Waitms 100 Porta = &B000000 Portb = &B000111 Waitms 100 Porta = &B000000 Portb = &B001110 Waitms 100 Porta = &B000000 Portb = &B011100 Waitms 100 Porta = &B000000 Portb = &B111000 Waitms 100 Porta = &B000001 Portb = &B110000 Waitms 100 Porta = &B000011 Portb = &B100000 Waitms 100 Porta = &B000111 Portb = &B000000 Waitms 100 Porta = &B001110 Portb = &B000000 Waitms 100 Porta = &B011100 Portb = &B000000 Waitms 100 Porta = &B111000 Portb = &B000000 Waitms 100 Porta = &B110000 Portb = &B000000 Waitms 100 Loop End
  • 11.
  • 12. 'PROGRAM TRIFFIC LIGHT 'EGI AGUNG PRAYOGI & YOGA APRIYANSYAH '06/05/2019 $regfile = "m16adef.dat" $crystal = 8000000 Config Porta = Output Config Portb = Output Do Porta = &B100001 Portb = &B001001 Wait 15 Porta = &B010001 Portb = &B001001 Wait 5 Porta = &B001100 Portb = &B001001 Wait 15 Porta = &B001010 Portb = &B001001 Wait 5 Porta = &B001001 Portb = &B100001 Wait 15 Porta = &B001001 Portb = &B010001 Wait 5 Porta = &B001001 Portb = &B001100 Wait 15 Porta = &B001001 Portb = &B001010 Wait 5 Loop End