Vous êtes sur la page 1sur 1

PIC18F4550

This microcontroller is very famous due it functionalities and features such as ADC and USB Integration. A typical
PIC18F4550 comes in various packages like DIP, QPF and QPN.

Features
PIC18F4550 has 16 bit Instruction Set Architecture, (ISA) which provides a degree of freedom to programmers with various
data types , registers , instructions, memory architecture, addressing modes, interrupt and IO operations. PIC18F4550 also
has an Extended Instruction Set as a special feature.

Memory Specifications:
A PIC18F4550 has 256 bytes of EEPROM (Electrically Erasable and Programmable Read Only Memory), 2KB of SRAM (Static
RAM) and 32KB of flash memory which in return proves another degree of freedom to programmers.

Communication Protocol:
The modern protocols for communications like USB, SPI, EUSART.
PIC18F4550 is compatible to work with different internal and external clock sources. It comes with four built-in timers or an
external oscillator can be interfaced for clocking. The frequency limit for a PIC18F4550 is from 31 KHz to 48 MHz
respectively.

USB SPEEDS and USB Registers in PIC18f4550
Full speed 12 MBit per second
Low speed 1.2 MBit per second
You can find more details about various USB Operation registers in PIC18F4550 like UCON, UCFG, USTAT, UADDR

PORTS
40 pins of PIC18F4550 are divided into 5 ports. Out of which, 35 pins are Input-Output pins which can be configured for
general Input or Output by setting registers associated with them.

Ports Number of pins Pin Name
PORTA 7 RA0-RA6
PORTB 8 RB0-RB7
PORTC 7 RC0-RC2, RC4-RC7 (Check the Pinout Diagram)
PORTD 7 RD0-RD7
PORTE 4 RE0-RE3

Registers Associated with Ports in PIC18F4550
Each port in pic18f4450 is associated with three 8 bit registers for IO operations.
TRISX (8 bit)
LATx (8 bit)
PORTx (8 bit)
TRISx : where X is the name of the ports either of A, B, C, D, E. For example TRISA, TRISB etc. This register assigns the
direction of the pins (Input or Output). For example TRISB = 0xF0, will set all the pins in port B to Output.
LATX: The latch registers reds and modifies the write operation on the value of I/O pin and stored the output data that is to
be passed on to the external hardware.
PORTX: Reads the device level, stores the Input level of the pins and reads and registers the input signal from the external
device if the pin is configured as Input


1 304 Syntax error: Expected "program" but "module" found
Identifier "B2" has been already declared in "P18F4550.mbas"
Lin 6 sigma institute

Vous aimerez peut-être aussi