Exercises

2.1 Describe the program memory map of the PIC18F2410 microcontroller. How much is the maximum addressable memory?

2.2 Describe the data memory map of the PIC18F2410 microcontroller. What is a memory bank? How many memory banks are there in the PIC18F2410 microcontroller?

2.3 What is an SFR register? Give an example.

2.4 Describe how a PIC18F2410 microcontroller can be operated from an external 8 MHz crystal. Draw the circuit diagram.

2.5 Explain how the PLL can be used to increase the clock frequency in a PIC18F2410 microcontroller.

2.6 Show which bits should be set to operate a PIC18F2410 microcontroller from the internal 4 MHz clock.

2.7 Draw a circuit diagram to show how a PIC18F2410 microcontroller can be reset using an external reset button.

2.8 Draw the block diagram of a typical I/O port (without the peripheral functions) and explain how the input-output operations take place.

2.9 Explain the importance of reading a port value using the LAT register instead of the standard PORT register.

2.10 In a non-time-critical application, it is required to operate a PIC18F2410 microcontroller using an external resistor and a capacitor for timing. Assuming the required clock frequency is 5 MHz, what will be the values of the resistor and the capacitor? Draw the circuit diagram to show how these timing components can be connected to the microcontroller.

2.11 In an application it is required to generate a delay of 250 μs using TIMER 0. Calculate the value to be loaded into ...

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.