PIC16C712 functions, features, application areas, and methods and precautions for replacing 16C711

Publisher:变形金刚Latest update time:2019-10-23 Source: eefocusKeywords:PIC16C712 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. PIC16C712 microcontroller functions, features, and application areas 


1. Functions and features: 
PIC16C712 microcontroller is an enhanced product based on the functions of 711 chip launched by Microchip. It is pin-to-pin compatible with 16C711. Its functions and prices are better than 16C711. The following table is a functional comparison table of 16C712 and 16C711:

model

Oscillation(Hz)

EPROM

RAM

A/D8 bit

Timer

CCP Module

Serial port

Interrupt Sources

Voltage

I/O Pins

Encapsulation

Reset Lock

16C710

DC~20M

0.5K×14

36×8

4

1

-

-

4

3.0V- 6.0V

13

18 feet

have

16C711

DC~20M

1K×14

68×8

4

1

-

-

4

3.0V- 6.0V

13

18 feet

have

16C712

DC~20M

1K×14

128×8

4

3

1

-

7

2.5V - 5.5V

13

18 feet

have

16C716

DC~20M

2K×14

128×8

4

3

1

-

7

2.5V - 5.5V

13

18 feet

have

The added functions are as follows: 
a. CCP module 
b. Two timers are added c. 
RAM is enlarged, 711 has 68 bytes, 712 has 128 bytes. 
If more program space is needed, the PIC16C716 microcontroller can also be selected. 


2. Application fields: 
In addition to the original application fields of 16C711 single-chip microcomputer, the addition of CCP module with PWM function has expanded the application scope, such as use in mobile phone smart chargers. 
The product models of alternative competitors are as follows:

model

Program Space

RAM

I/O Pins

Timer

A/D8 bit

PWM

Other peripheral interfaces

16C712

1K×14

128×8

13

2*8 bits, 1*16 bits

4*8 bits

10 bits (Max)*1ch

Capture/Comparator

16C712

1K×14

128×8

13

2*8 bits, 1*16 bits

4*8 bits

10 bits (Max)*1ch

Capture/Comparator

P87LPC768

4K

128

15/18

2*16 bits

4*8 bits

10 digits*4 channels

USARTI2C Comparator

P87LPC764

4K

128

15/18

2*16 bits

-

10 digits*4 channels

USARTI2C Comparator

KS86P4104

4K

208

16

2*8 bits

5*10 bits

10 digits*1ch


KS86P4304

2/4K

112

11/13

2*8 bits

5*10 bits

12bits*1ch

SIO

2. Development tools: 
Writer: PICSTART-PLUS (Fireware v2.01, Mplab v5.10) 
Emulator: Please consult the relevant emulator manufacturer. 
3. Methods and precautions for replacing 16C711 MCU When 
the original 711 program is transplanted to 712, the following matters should be noted: 
1. Modify the following register addresses. (As shown in the table below) 
PIC16C711 PIC16C712
ADCON0 08H 1FH
ADRES 09H and 89H 1EH
ADCON1 88H 9FH
PCON 87H 8EH

Register Name

PIC16C711

PIC16C712

ADCON0

08H

1FH

ADRES

09H and 89H

1EH

ADCON1

88H

9F

PCON

87H

8E


This can be solved by changing the INCLUDE header file.
2. Redefine the following flags: (as shown in the following table)


PIC16C711

PIC16C712

ADIE

INTCON,6

PIE1,6

ADIF

ADCON0,1

PIR1,6

 

3. To enable any external interrupt (including A/D), PEIE (INTCON<6>) must be set to 1. That is, when enabling each interrupt, the instruction BSF PEIE must be added. 
4. Different selections of A/D conversion pins 


a. The definition of A/D control register ADCON1 in 711 MCU is as follows:

b. The definition of A/D control register ADCON1 in 712/716 microcontroller is as follows:


PCFG2:PCFG0 defines the A/D port as follows:

PCFG2

PCFG

RA0

RA1RA2VREF
0x0AAAAVDD

0x1

A

A

AVREFRA3

100

A

A

DAVDD

101

A

A

DVREFRA3

11x

D

D

DDVDD


Note: A = analog input port D = digital I/O port VREF = reference voltage


5. Modify the address of the common register. 
The address range of the common register of the 711 chip is 0C~4F, while the address range of the common register of the 712/716 chip is 20~7F. Therefore, the common register address used in the original 711 program must be within the address range of the common register of the 712/716 microcontroller.


Keywords:PIC16C712 Reference address:PIC16C712 functions, features, application areas, and methods and precautions for replacing 16C711

Previous article:Using PIC16C54 to Make a Simple AM ​​Frequency Counter
Next article:Using PIC12C508A to control the model source program

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号