Traffic light controller simulation. Use port C pins PC5-PCO of the XMEGA128A1U and green, yellow, and red
Fantastic news! We've Found the answer you've been seeking!
Question:
Traffic light controller simulation. Use port C pins PC5-PCO of the XMEGA128A1U and green, yellow, and red LEDs to simulate a traffic light controller. The traffic patterns and durations for the east-west and north-south traffic are given in Table H4.3. Write a program to control the light patterns. Assume that the delay function delayby 100ms is available for your call. The multiple of 100 ms is passed in r16. The subroutine setSysClkto32Mwith32MIntOsc is available for your call.
Related Book For
Posted Date: