PIC Microcontroller

Description

Actividad 2.4 En las actividades anteriores del módulo se facilitó información y se incitó a la investigación de mayores elementos teóricos, ahora corresponde utilizar esos contenidos en la elaboración de un producto de aprendizaje. Para ellos utilizarás los recursos encontrados mediante la búsqueda de información que realizaste, y los elementos y características analizadas a través de los videos expuestos en las fases anteriores del presente módulo; ubicados en los videos del módulo 2.
Agustín Domínguez Miralrio
Mind Map by Agustín Domínguez Miralrio, updated more than 1 year ago
Agustín Domínguez Miralrio
Created by Agustín Domínguez Miralrio almost 2 years ago
9
0
1 2 3 4 5 (0)

Resource summary

PIC Microcontroller
  1. Architecture

    Annotations:

    • PIC microcontrollers are based on a Harvard architecture with separate program and data memory. They typically use an 8-bit or 16-bit microcontroller core, but more advanced versions with 32-bit cores are also available.
    1. Peripherals

      Annotations:

      • PIC microcontrollers come with a wide range of built-in peripherals such as timers, UART (Universal Asynchronous Receiver-Transmitter), SPI (Serial Peripheral Interface), I2C (Inter-Integrated Circuit), PWM (Pulse Width Modulation), and more. These peripherals make it easier to interface with various sensors and devices.
      1. Memory

        Annotations:

        • PIC microcontrollers typically have Flash memory for program storage and SRAM or EEPROM for data storage. The amount of memory can vary depending on the specific model.
        1. Low Power

          Annotations:

          • Many PIC microcontrollers are designed to operate on low power, making them suitable for battery-powered applications.
          1. Development Tools

            Annotations:

            • Microchip provides a comprehensive set of development tools, including integrated development environments (IDEs), compilers, and programmers, to simplify the development process.
            1. Wide Range of Models
              1. Peripheral Libraries

                Annotations:

                • Microchip offers libraries and software tools to help developers take advantage of the built-in peripherals, speeding up the development process.
                1. Support and Community

                  Annotations:

                  • Due to their popularity, PIC microcontrollers have a large and active user community. This means that there are many online resources, forums, and tutorials available for developers.
                  1. Cost-Effective

                    Annotations:

                    • PIC microcontrollers are often considered cost-effective solutions for various embedded applications, making them a popular choice among hobbyists and professionals alike.
                    1. Industrial and Automotive Use

                      Annotations:

                      • PIC microcontrollers find applications in a wide range of industries, including industrial automation, automotive systems, consumer electronics, and more.
                      1. PIC 18F4550 ports

                        Annotations:

                        • A popular microcontroller within the Microchip PIC18 family. It's known for its versatility and a wide range of applications
                        1. USB (Universal Serial Bus) Module

                          Annotations:

                          • The USB module allows the PIC18F4550 to function as a USB device, making it suitable for USB-based projects.It supports USB 2.0 Full-Speed (12 Mbps) communication.Common applications include USB communication, HID (Human Interface Device) emulation, USB-to-serial conversion, and more.
                          1. UART (Universal Asynchronous Receiver-Transmitter)

                            Annotations:

                            • The PIC18F4550 has one or more UART modules for serial communication.UART is commonly used for communication between the microcontroller and other devices, such as sensors or other microcontrollers.It supports both asynchronous and synchronous serial communication.
                            1. SPI (Serial Peripheral Interface)

                              Annotations:

                              • SPI is a synchronous serial communication protocol that allows the microcontroller to communicate with other devices, such as sensors, displays, and other microcontrollers.The PIC18F4550 typically has one or more SPI modules.
                              1. I2C (Inter-Integrated Circuit)

                                Annotations:

                                • I2C is another serial communication protocol used for connecting the microcontroller to devices like EEPROMs, real-time clocks (RTC), and sensors.The PIC18F4550 typically has one or more I2C modules.
                                1. Timers

                                  Annotations:

                                  • The PIC18F4550 features multiple timers, including Timer0, Timer1, Timer2, and Timer3, which can be used for various timing and control applications.These timers can generate interrupts and trigger events at specific intervals.
                                  1. PWM (Pulse Width Modulation)

                                    Annotations:

                                    • Pulse Width Modulation is used for generating analog-like output signals with varying duty cycles.The PIC18F4550 has PWM modules that are useful for applications like motor control and LED dimming.
                                    1. Analog-to-Digital Converter (ADC)

                                      Annotations:

                                      • The ADC module allows the microcontroller to convert analog signals from sensors or external devices into digital values.The PIC18F4550 typically has multiple channels for analog input.
                                      1. Comparator

                                        Annotations:

                                        • The comparator module can be used to compare two analog input signals and generate digital outputs based on their relationship.
                                        1. Parallel Ports (GPIO)

                                          Annotations:

                                          • The PIC18F4550 has a substantial number of General-Purpose Input/Output (GPIO) pins, which can be configured for various functions.These pins can be used to interface with external components or devices.
                                          1. Capture/Compare/PWM (CCP)

                                            Annotations:

                                            • The CCP module can be configured for capturing external events, comparing signals, or generating PWM signals.
                                            1. Clock configuration
                                              1. Selecting the Clock Source

                                                Annotations:

                                                • The PIC18F4550 can use several clock sources, including the internal oscillator (INTOSC), external crystals, and external clock inputs. To select a clock source, you need to configure the Configuration Bits in the microcontroller.
                                                1. Clock Divider Settings

                                                  Annotations:

                                                  • You can configure the clock divider to further divide the selected clock source frequency. The Clock Divider (also known as the Postscaler) settings are typically available in the microcontroller's Configuration Bits as well
                                                  1. Initialize Clock in Code

                                                    Annotations:

                                                    • After configuring the clock source and divider in the Configuration Bits, you need to initialize the clock settings in your code
                                                    1. Verify Clock Settings

                                                      Annotations:

                                                      • It's a good practice to verify that the clock settings are correctly configured by reading the relevant status bits.
                                                2. Clock sample code

                                                  Annotations:

                                                  • #include <xc.h> // Clock Configuration void configureClock() { // Configure the internal oscillator to 8 MHz (HFINTOSC) OSCCON = 0b01110000; // Bits 7-6: IRCF<1:0> = 11 (8 MHz frequency) // Bit 5: SCS = 0 (Select internal oscillator) // Wait until the internal oscillator stabilizes while (!OSCCONbits.IOFS); // Wait until the IOFS bit is set } int main() { // Configure the clock configureClock(); // The rest of your program here while (1) { // Main loop } return 0; }
                                                3. Ports set up
                                                  1. Libraries
                                                    1. Configure Pin Direction
                                                      1. Write to the Ports
                                                        1. Read from the Ports
                                                          1. Manipulate Individual Bits
                                                            1. Configure Pull-Up/Pull-Down Resistors
                                                          Show full summary Hide full summary

                                                          0 comments

                                                          There are no comments, be the first and leave one below:

                                                          Similar

                                                          Command or Process Words for Essay Writing
                                                          Bekki
                                                          The English Language Techniques
                                                          craycrayley
                                                          Edexcel Biology Topic 1 and 2 AS
                                                          Emily Carson
                                                          anatomy of the moving body: Skeletal system
                                                          Rupa Kleyn
                                                          Key Biology Definitions/Terms
                                                          jane zulu
                                                          History - Treaty of Versailles
                                                          suhhyun98
                                                          Why did the Cold War begin?
                                                          n.mcdonald
                                                          Les Aliments
                                                          dAnn dAnn
                                                          1PR101 2.test - Část 9.
                                                          Nikola Truong
                                                          OP doplnovaci otazky II.
                                                          Helen Phamova