In this and the remaining chapters we will look at the design of more complex PIC18 microcontroller–based projects. This chapter discusses the design of Secure Digital (SD) memory card–based projects. The remaining chapters of the book describe the basic theory and design of projects based on the popular USB bus and CAN bus protocols. The […]
Continue reading…
Uncategorized
Advanced PIC18 Projects—SD Card Projects:mikroC Language SD Card Library Functions
mikroC Language SD Card Library Functions The mikroC language provides an extensive set of library functions to read and write data to SD cards (and also MultiMediaCards, MMC). Data can be written to or read from a given sector of the card, or the file system on the card can be used for more sophisticated […]
Continue reading…
Simple PIC18 Projects:Serial Communication–Based Calculator
PROJECT 6.10—Serial Communication–Based Calculator Project Description Serial communication is a simple means of sending data long distances quickly and reliably. The most common serial communication method is based on the RS232 standard, in which standard data is sent over a single line from a transmitting device to a receiving device in bit serial format at […]
Continue reading…
Simple PIC18 Projects:Calculator with Keypad and LCD
PROJECT 6.9—Calculator with Keypad and LCD Project Description Keypads are small keyboards used to enter numeric or alphanumeric data into microcontroller systems. Keypads are available in a variety of sizes and styles, from 2 x 2 to 4 x 4 or even bigger. This project uses a 4 x 4 keypad (shown in Figure 6.43) […]
Continue reading…
Simple PIC18 Projects:Voltmeter with LCD Display
PROJECT 6.8—Voltmeter with LCD Display Project Description In this project a voltmeter with LCD display is designed. The voltmeter can be used to measure voltages 0–5V. The voltage to be measured is applied to one of the analog inputs of a PIC18F452-type microcontroller. The microcontroller reads the analog voltage, converts it into digital, and then […]
Continue reading…
Simple PIC18 Projects:Two-Digit Multiplexed 7-Segment LED Counter with Timer Interrupt
PROJECT 6.7—Two-Digit Multiplexed 7-Segment LED Counter with Timer Interrupt Project Description This project is similar to Project 6 but here the microcontroller’s timer interrupt is used to refresh the displays. In Project 6 the microcontroller was busy updating the displays every 10ms and could not perform any other tasks. For example, the program given in […]
Continue reading…
Simple PIC18 Projects:Two-Digit Multiplexed 7-Segment LED
PROJECT 6.6—Two-Digit Multiplexed 7-Segment LED Project Description This project is similar to Project 6.5, but here multiplexed two digits are used instead of just one digit and a fixed number. In this project the number 25 is displayed. In multiplexed LED applications (see Figure 6.29) the LED segments of all the digits are tied together […]
Continue reading…
Simple PIC18 Projects:Segment LED Counter
PROJECT 6.5—7-Segment LED Counter Project Description This project describes the design of a 7-segment LED-based counter which counts from 0 to 9 continuously with a one-second delay between counts. The project shows how a 7-segment LED can be interfaced and used in a PIC microcontroller project. 7-segment displays are used frequently in electronic circuits to […]
Continue reading…
Simple PIC18 Projects:Two-Dice Project Using Fewer I/O Pins
PROJECT 6.4—Two-Dice Project Using Fewer I/O Pins Project Description This project is similar to Project 3, but here LEDs are shared, which uses fewer input/ output pins. The LEDs in Table 6.1 can be grouped as shown in Table 6.3. Looking at this table we can say that: • D4 can appear on its own […]
Continue reading…
Simple PIC18 Projects:LED Dice
PROJECT 6.2—LED Dice Project Description This is a simple dice project based on LEDs, a push-button switch, and a PIC18F452 microcontroller operating with a 4MHz resonator. The block diagram of the project is shown in Figure 6.6. As shown in Figure 6.7, the LEDs are organized such that when they turn ON, they indicate numbers […]
Continue reading…