University of the Philippines Diliman Exercise 1 & 2: 7-Segment Counter it! "p-Don Mode Sitc! #b$ecti%e: Learn the basics of assembly programming through input-output handling. Implement look-up tables programmed timing loops and parallel input-output handling. &ardare Components: !. " PI# !$%&''( micro-controller board )ith debugging and programming interfaces. *. +)o ,-segment displays -. .ne Pushbutton or tact s)itch for the mode s)itch 'ro$ect Mi(estones: /efer to +able ! for the pro0ect milestones )ith the corresponding point allocation. 1ilestones are progressive. ) Mi(estone 'oints ! 1icro-controller board 2 ,-segment displays 2 3)itch &( * 4orking code through PI#3imLab5 Implement a look-up table for the 6umbers 7i.e. dictionary for the ,-segment display8 -( - 4orking code through PI#3imLab5 #omplete )ith proper debouncing for the Up-Do)n 1ode s)itch -( +able !5 Pro0ect 1ilestones for E9ercise ! ) Mi(estone 'oints ! E9ercise ! *( * 4orking #ounter )ith tens and ones display &( - 4orking #ounter )ith up-do)n 1ode s)itch &( +able *5 Pro0ect 1ilestones for E9ercise * 'ro$ect Sc!edu(e: *cti%it+ Dates E9ercise ! /elease :un !, Preliminary #hecking :un *& %inal #hecking E9ercise ! :uly ! %inal #hecking E9ercise * :uly $ +able *5 Pro0ect 3chedule ,enera( Speci-ications: !. +he idea is to build a microcontroller-based up-do)n counter using ,-segment displays )ith a mode s)itch follo)ing the concept of parallel input-output. *. +he count is displayed through the ,-segment displays sho)ing the tens and ones digit )ith each count lasting for a second using programmed timing loops. -. +he assembly code controlling the display should incorporate look-up tables for easy access of the ,-segment decode patterns. &. +he count cycles back and repeats unless the mode is s)itched )ith a complete cycle of !(( seconds. '. +he pushbutton acts as the mode s)itch toggling bet)een up and do)n. ;. +he count changes modes and starts at the last number )hen the mode is s)itched. ,. +he count )ill continue to circle through 7say from ( to << then back if up or from << to ( if do)n8. Mi(estones: ./ !. +he micro-controller board is e9pected to be complete )ith debugging=programming interfaces to the 1PL">. *. 6o) through Pic3imLab a )orking counter that employs a look-up table is re?uired. -. 3till through Pic3imLab a complete )orking counter )ith up-do)n mode s)itch is re?uired. ../ !. E9ercise ! is re?uired for E9ercise *. *. 4ith the hard)are implement the )orking counter sho)ing appro9imately ! second for each count and the cycling back around ( to << for up or << to ( for do)n. Look-up tables are still re?uired. -. 4ith the hard)are implement the complete )orking counter )ith up-do)n mode s)itch. 'ro$ect ,rading: !. +he milestones are progressive therefore each successive milestone re?uires that the previous milestone be accomplished. *. +here )ill be a !(@ bonus to those individuals that )ill be able to deliver the full specifications of the E9ercise at the day of Preliminary milestone checking. -. +here is a limit of !(Ab for the B.asm file. &. >ugs or errors encountered during checking )ill be given '@ deduction each.