Multi-Tasking and Real-Time Operating Systems

Nearly all microcontroller-based systems perform more than one activity. For example, a temperature monitoring system is made up of three tasks that normally repeat after a short delay, namely: • Task 1 Reads the temperature • Task 2 Formats the temperature • Task 3 Displays the temperature More complex systems may have many complex tasks. […]
Continue reading…

 

Advanced PIC18 Projects—CAN Bus Projects:mikroC CAN Functions

mikroC CAN Functions The mikroC language provides two libraries for CAN bus applications: the library for PIC microcontrollers with built-in CAN modules and the library based on using a SPI bus for PIC microcontrollers having no built-in CAN modules. In this section we will discuss only the library functions available for PIC microcontrollers with built-in […]
Continue reading…

 

Advanced PIC18 Projects—CAN Bus Projects:PIC Microcontroller CAN Interface

PIC Microcontroller CAN Interface In general, any type of PIC microcontroller can be used in CAN bus–based projects, but some PIC microcontrollers (e.g., PIC18F258) have built-in CAN modules, which can simplify the design of CAN bus–based systems. Microcontrollers with no built-in CAN modules can also be used in CAN bus applications, but additional hardware and […]
Continue reading…

 

Advanced PIC18 Projects—CAN Bus Projects

The Controller Area Network (CAN) is a serial bus communications protocol developed by Bosch (an electrical equipment manufacturer in Germany) in the early 1980s. Thereafter, CAN was standardized as ISO-11898 and ISO-11519, establishing itself as the standard protocol for in-vehicle networking in the auto industry. In the early days of the automotive industry, localized stand-alone […]
Continue reading…

 

Advanced PIC18 Projects—USB Bus Projects:USB-Based Ambient Pressure Display on the PC

PROJECT 8.3—USB-Based Ambient Pressure Display on the PC In this project, an ambient atmospheric pressure sensor is connected to a PIC18F4550 microcontroller, and the measured pressure is sent and displayed on a PC every second using a USB link. An MPX4115A-type pressure sensor is used in this project. This sensor generates an analog voltage proportional […]
Continue reading…