Module 1 - 411
Module 1 - 411
🞆 Harvard Architecture
RISC CISC
Reduced Instruction Set Complex Instruction Set
Computer Computer
🞆 All clocks are derived either from an oscillator internal to the PIC32 or
an external resonator or oscillator provided by the user. High-speed
operation requires an external circuit to use a phase-locked loop (PLL)
on the PIC32 to multiply this frequency by a factor of 10, generating a
SYSCLK of 80 MHz.
The PBCLK is set to the same frequency.
🞆 The USBCLK is also derived from the 8 MHz resonator by a PLL
multiplying the frequency by 6.
DIGITAL INPUT AND OUTPUT:
🞆 The PIC32 has five 16-bit counters. Each can count from 0 up to 2ˆ16-
1, or any preset value less than 2 ˆ 16 -1 that we choose, before rolling
over. Counters can be configured to count external events, such as
pulses on a TxCK pin, or internal events, like PBCLK ticks. In the
latter case, we refer to the counter as a timer.
🞆 The counter can be configured to generate an interrupt when it rolls
over. This allows the execution of an ISR on exact timing intervals.
🞆 Two 16-bit counters can be configured to make a single 32-bit counter.
This can be done with two different pairs of counters, giving one 16-bit
counter and two 32-bit counters.
ANALOG INPUT:
ADC:
🞆The PIC32 has a single analog-to-digital converter (ADC), but 16
different pins can be connected to it, one at a time. This allows up to 16
analog voltage values (typically sensor inputs) to be monitored.
🞆The ADC can be programmed to continuously read in data from a
sequence of input pins, or to read in a single value when requested. Input
voltages must be between 0 and 3.3 V.
🞆The ADC has 10 bits of resolution, allowing it to distinguish 1024
different voltage levels.
🞆Conversions are theoretically possible at a maximum rate of 1 million
samples per second on the PIC32MX795F512L.
OUTPUT COMPARE AND INPUT CAPTURE :
🞆 Output compare: pins are used to generate a single pulse of specified
duration, or a continuous pulse train of specified duty cycle and
frequency. They work with timers to generate the precise timing.
A common use of output compare pins is to generate PWM (pulse-
width modulated) signals as control signals for motors.
Pulse trains can also be low-pass filtered to generate approximate
analog outputs.
(There are no analog outputs on the PIC32.)
🞆 Input Capture:
A changing input on an input capture pin can be used to store the
current time measured by a timer.
This allows precise measurements of input pulse widths and signal
frequencies. Optionally, the input capture pin can generate an interrupt.
CHANGE NOTIFICATION , COMPARATORS, AND
REAL-TIME CLOCK AND CALENDAR(RTCC) :
🞆 PMP Module:
The PMP module is used to read data from and write data to
external parallel devices with 8-bit and 16-bit data buses.
🞆 DMA Controller:
The Direct Memory Access controller is useful for data transfer
without involving the CPU. For example, DMA can allow an
external device to dump data through a UART directly into
PIC32 RAM.
SPI SERIAL COMMUNICATION THE
SERIAL PERIPHERAL INTERFACE: