Overview
Pins as outputs
Students completing the module will be able to:
- define the pins of a microcontroller parallel port as inputs or outputs by using commands in C language
- send a binary word to a parallel port that has been defined as output
- connect LEDs to the pins of a microcontroller
- write a program in C Language to turn ON/OFF LEDs that are connected to the pins of a microcontroller
- load and animate a microcontroller program in the Proteus Design Suite
- The student must know the characteristic of a LED and how to connect it to a DC source (link1)
- The student must know the use of the Direction Register and the Data Register of a microcontroller parallel port, PIC18F4550 datasheet (I/O ports, p. 113)
- The student must know the commands of CCS C Compiler associated with the use of parallel ports, CCS C Compiler Manual (Built In Functions, DISCRETE I/O p. 159, set_tris_x() command p.244)
- The student must be familiarized with the Proteus Design Suite
Τhe duration of this module is 3 hours
Tip1. Some devices have polarity, for instance the LED, they must be connected in the right way.
Tip2. The program must include the main.h and the 18F4550.h files. These files must be in the same folder with your project
Last modified: Saturday, 20 November 2021, 10:04 PM