Файл: Microcontroller Programming. Thi Micro Chip PIC (Julio Sanchez, 2007).pdf

ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 14.06.2025

Просмотров: 8580

Скачиваний: 0

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

The Microchip PIC

137

Table 7.3

PIC12F510 and 12F506

16F506

12F510

Clock:

Maximum Frequency of Operation (MHz)

20

8

Memory:

Flash Program Memory

1024

1024

Data Memory (bytes)

67

38

Peripherals:

Timer Module(s)

TMR0

TMR0

Wake-up from Sleep on Pin Change

Yes

Yes

Features:

I/O Pins

11

5

Input Only Pin

1

1

Internal Pull-ups

Yes

Yes

In-Circuit Serial Programming

Yes

Yes

Number of Instructions

33

33

Packages

14-pin PDIP,

8-pin PDIP

SOIC,

SOIC,

TSSOP

MSOP

Two other members of the PIC12F are the 12F629 and 12F675. The only difference between these two devices is that the 12F675 has a 10-bit analog-to-digital converter while the 629 has no A/D converter. Table 7.4 lists some important features of both PICs.

Table 7.4

PIC12F629 and 12F675

12F629

12F675

Clock:

Maximum Frequency of Operation (MHz)

20

20

Memory:

Flash Program Memory

1024

1024

Data Memory (SRAM bytes)

64

64

Peripherals:

Timers 8/16 bits

1/1

1/1

Wake-up from Sleep on Pin Change

Yes

Yes

Features:

I/O Pins

6

6

Analog comparator module

Yes

Yes

Analog-to-digital converter

No

10-bit

In-Circuit Serial Programming

Yes

Yes

Enhanced Timer1 module

Yes

Yes

Interrupt capability

Yes

Yes

Number of Instructions

35

35

Relative addressing

Yes

Yes

Packages

8-pin PDIP,

8-pin PDIP

SOIC,

SOIC,

DFN-S

DFN-S


138

Chapter 7

Several members of the PIC12 family; the 12F635, 12F636, 12F639, and 12F683, are equipped with special power-management features (called nano-watt technology). These devices were especially designed for systems that require extended battery life.

PIC14 Devices

The single member of this family is the PIC14000. The 14000 is built with CMOS technology; this makes it fully static and gives the PIC an industrial temperature range. The 14000 is recommended for battery chargers, power supply controllers, power management system controllers, HVAC controllers, and for sensing and data acquisition applications. Table 7.5 lists the most important characteristics of this PIC.

Table 7.5

PIC14000

Clock:

Maximum Frequency of Operation (MHz)

20

Memory:

Flash Program Memory

4096

Data Memory (SRAM bytes)

192

Peripherals:

Timers (16 bits with capture)

1

Wake-up from Sleep on Pin Change

Yes

Features:

I/O Pins

22

Analog-to-digital converter

2

channels

On-chip temperature sensor

1

On-chip comparator modules

2

In-Circuit Serial Programming

Yes

Interrupt capability:

Internal

6

sources

External

5

sources

I2C-compatible serial port

1

Number of Instructions

35

Relative addressing

Yes

Packages

22-pin PDIP,

SOIC, SSOP,

Windowed CERDIOP

7.1.2 Mid-range PIC Family

The mid-range PIC family includes members of the PIC12 and PIC16 groups. According to Microchip, the mid-range PICs all have 14-bit program words with either flash or OTP program memory. Those with flash program memory have EEPROM data memory and support interrupts. Some members of the mid-range group have USB, I2C, LCD, USART, and A/D converters. Implementations range from 8 to 64 pins. In the following subsections the basic characteristics of some mid-range PICs are listed.


The Microchip PIC

139

PIC16 Devices

This is by far the most extensive PIC family. Currently, over 80 versions of the PIC16 are listed in production by Microchip. The remainder of this book is devoted to programming two of these PICs: the 16F84 and the 16F877. Here we listed a few of the most prominent members of the PIC16 family and their most important features. The Microchip website has more detailed information on these devices.

Table 7.6

PIC16 Devices

16C432

16C58

16C770

16F54

16F84A

16F946

Clock:

Maximum Frequency MHz

20

40

20

20

20

20

Memory:

Program memory type

OTP

OTP

OTP

Flash

Flash

Flash

K-bytes

3.5

3

3.5

0.75

1.75

14

K-words

2

2

2

0.5

1

8

Data EEPROM

0

0

0

0

64

256

Peripherals:

I/O channels

12

12

16

12

13

53

ADC channels

0

0

6

0

0

8

Comparators

0

0

0

0

0

2

Timers

1/8-bit

1/8-bit

2/8-bit

1/8-bit

1/8-bit

2/8-bit

1/16-bit

1/16-bit

Watchdog timer

Yes

Yes

Yes

Yes

Yes

Yes

Features:

ICSP

Yes

No

Yes

No

Yes

Yes

ICD

No

No

No

No

0

1

Pin count

20

18

20

18

18

64

Communications

-

-

MPC/SPI

-

-

AUSART

Packages

20/CERDIP, 18/CERDIP

20/CERDIP

18/PDIP

18/PDIp

64/TQFP

20/SSOP

18/PDIP

20/PDIP

18/SOIC

18/SOIC

208mil

18/SOIC

20/SOIC

300mil

300mil

300mil

300mil

7.1.3 High-Performance PIC Family

The high-performance PICs belong to the PIC18 group. They have 16-bit program words, flash program memory, a linear memory space of up to two Mbytes, and proto- col-based communications facilities. They all support internal and external interrupts and have a much larger instruction set than members of the baseline and mid-range families.

PIC18 Devices

The PIC18 family is also a large one, with over 70 different variations currently in production. The PIC18 family uses 16-bit program words and are furnished in 18 to 80 pin packages. Microchip describes the PICs in this family as high-performance with integrated A/D converters. They have 32-level stacks and support interrupts. The instruction set is much larger and starts at 79 instructions. The PICs in this family have flash program memory, a linear memory space of up to 2 Mbytes, 8-by-8 bit hardware multiplier, and communications peripherals and protocols. Table 7.7 lists some members of the PIC18 family.


140

Chapter 7

Table 7.7

PIC18 Devices

18F222

18F2455

18F2580

18F4580

18F8622

Clock:

Maximum Frequency MHz

40

48

40

40

40

Memory:

Program memory type

flash

flash

flash

flash

flash

K-bytes

4

24

32

32

64

K-words

2

12

16

16

321

Data EEPROM

256

256

256

256

1024

Peripherals:

I/O channels

25

23

25

36

70

ADC channels

10

10

8

11

16

Comparators

2

2

0

2

2

Timers

1/8-bit

1/8-bit

1/8-bit

1/8-bit

2/8-bit

3/16-bit

3/16-bit

3/16-bit

3/16-bit

3/16-bit

Watchdog timer

Yes

Yes

Yes

Yes

Yes

Features:

EUSART

Yes

Yes

Yes

Yes

2

ICSP

Yes

Yes

Yes

Yes

Yes

ICD

1

3

3

3

3

Pin count

28

28

28

44

80

Communications

MPC/SPI

MPC/SPI/USB

MPC/SPI

MPC/SPI

2-MPC/SPI

Packages

28/PDIP,

28/SOIC

28/QFN

40/PDIP

80/TQFP

28/SOIC

28/PDIP

20/PDIP

44/QFN

300mil 300mil 300mil 44/TQFP