PIC18F4580-I/P Microchip Technology Inc., PIC18F4580-I/P Datasheet - Page 22

no-image

PIC18F4580-I/P

Manufacturer Part Number
PIC18F4580-I/P
Description
40 PIN, 32 KB FLASH, 1536 RAM, 36 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F4580-I/P

A/d Inputs
11-Channel, 10-Bit
Comparators
2
Cpu Speed
10 MIPS
Eeprom Memory
256 Bytes
Input Output
36
Interface
CAN/I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
32K Bytes
Ram Size
1.5K Bytes
Speed
40 MHz
Timers
1-8 bit, 3-16 bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F4580-I/P
Manufacturer:
RENESAS
Quantity:
5 600
Part Number:
PIC18F4580-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F4580-I/PT
Manufacturer:
MICROCHIP
Quantity:
201
Part Number:
PIC18F4580-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F4580-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC18F4580-I/PT
0
2.6
The PIC18FXX8 devices include a feature that allows
the system clock source to be switched from the main
oscillator to an alternate low-frequency clock source.
For the PIC18FXX8 devices, this alternate clock source
is the Timer1 oscillator. If a low-frequency crystal
(32 kHz, for example) has been attached to the Timer1
oscillator pins and the Timer1 oscillator has been
enabled, the device can switch to a Low-Power Execu-
tion mode. Figure 2-6 shows a block diagram of the
system clock sources. The clock switching feature is
enabled by programming the Oscillator Switching
Enable (OSCSEN) bit in Configuration register,
CONFIG1H, to a ‘0’. Clock switching is disabled in an
erased device. See Section 12.2 “Timer1 Oscillator”
for further details of the Timer1 oscillator and
Section 24.1 “Configuration Bits” for Configuration
register details.
FIGURE 2-6:
REGISTER 2-1:
DS41159D-page 20
PIC18FXX8
Oscillator Switching Feature
bit 7-1
bit 0
Note:
OSC2
OSC1
T1OSO
T1OSI
DEVICE CLOCK SOURCES
OSCCON: OSCILLATOR CONTROL REGISTER
bit 7
Unimplemented: Read as ‘0’
SCS: System Clock Switch bit
When OSCSEN configuration bit = 0 and T1OSCEN bit is set:
1 = Switch to Timer1 oscillator/clock pin
0 = Use primary oscillator/clock input pin
When OSCSEN is clear or T1OSCEN is clear:
Bit is forced clear.
Legend:
R = Readable bit
-n = Value at POR
U-0
I/O pins have diode protection to V
Timer 1 Oscillator
Main Oscillator
PIC18FXX8
U-0
Sleep
T1OSCEN
Enable
Oscillator
U-0
W = Writable bit
‘1’ = Bit is set
DD
Clock Source Option
for Other Modules
4 x PLL
and V
U-0
T
T
configuration bits. When the SCS bit is set, the system
2.6.1
The system clock source switching is performed under
software control. The system clock switch bit, SCS
(OSCCON register), controls the clock switching. When
the SCS bit is ‘0’, the system clock source comes from
the main oscillator selected by the FOSC2:FOSC0
clock source comes from the Timer1 oscillator. The SCS
bit is cleared on all forms of Reset.
T
OSC
1
Note:
P
SS
.
T
OSC
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U-0
SYSTEM CLOCK SWITCH BIT
The Timer1 oscillator must be enabled to
switch the system clock source. The
Timer1 oscillator is enabled by setting the
T1OSCEN bit in the Timer1 Control regis-
ter (T1CON). If the Timer1 oscillator is not
enabled, any write to the SCS bit will be
ignored (SCS bit forced cleared) and the
main oscillator continues to be the system
clock source.
/4
Source
Clock
U-0
 2004 Microchip Technology Inc.
T
x = Bit is unknown
SCLK
U-0
R/W-1
SCS
bit 0

Related parts for PIC18F4580-I/P