Detailed description of the STC12C5A60S2 pin

STC12C5A60S2/AD/PWM series MCU is a single clock/machine cycle (1T) MCU produced by Hongjing Technology. It is a new generation 8051 MCU with high speed/low power consumption and super anti-interference. The instruction code is fully compatible with the traditional 8051, but the speed is fast. 8-12 times faster. Internal integration of MAX810 dedicated reset circuit, 2 PWM, 8 high-speed 10-bit A/D conversion (250K/S), for motor control, strong interference occasions.

STC12C5A60S2 is an 8051 series MCU, which has the following characteristics compared with the ordinary 51 MCU:

1. In the case of the same crystal, the speed is 8~12 times that of ordinary 51.

2, there are 8 ways 10 bit AD

3, two more timers, with PWM function

4, there is SPI interface

5, with EEPROM

6, there is 1K internal expansion RAM

7, with WATCH_DOG

8, one more serial port

9, IO port can be defined, there are four states

10, interrupt priority has four states can be defined

STC12C5A60S2 pin function description:

STC12C5A60S2 pin

VCC: supply voltage;

GND: ground;

P0 port: P0 port is an 8-bit drain open bidirectional I/O port, each pin can absorb 8TTL gate current. When the pin of the P1 port writes "1", it is defined as a high-impedance input. P0 can be used for external program data memory, which can be defined as the eighth bit of data/address. In FLASH programming, P0 port is used as the original code input port. When FLASH performs verification, P0 outputs the original code. At this time, the external potential of P0 must be pulled high.

P1 port: P1 port is an 8-bit bidirectional I/O port with pull-up resistor inside. P1 port buffer can receive 4TTL gate current. After the P1 port pin is written to "1", the potential is internally pulled up high and can be used as an input. When the P1 port is pulled low externally, the current will be output, which is due to internal pull-up. In FLASH programming and verification, the P1 port is received as the eighth address;

P2 port: P2 port is an 8-bit bidirectional I/O port with internal pull-up resistor. P2 port buffer can receive and output 4 TTL gate currents. When P2 port is written "1", its pin potential is internally The pull-up resistor is pulled high and is used as an input. As an input, the pin potential of the P2 port is pulled low externally, and current will be output due to internal pull-up. When the P2 port is used for external program memory or 16-bit address external data memory for access, the P2 port outputs the upper eight bits of the address. When the address "1" is given, it takes advantage of the internal pull-up. When reading and writing to the external eight-bit address data memory, the P2 port outputs the contents of its special function register. The P2 port receives the upper eight-bit address signal and the control signal during FLASH programming and verification;

P3 port: P3 port pin is 8 bidirectional I/O ports with internal pull-up resistors, which can receive and output 4 TTL gate currents. When the P3 port is written to "1", they are internally pulled up high and used as inputs. As an input, since the external pull-down is low, the P3 port will output current (ILL), which is also due to pull-up. P3 port can also be used as some special function ports of AT89C51:

P3.0 RXD (serial input port)

P3.1 TXD (serial output port)

P3.2 INT0 (external interrupt 0)

P3.3 INT1 (external interrupt 1)

P3.4 T0 (timer 0 external input)

P3.5 T1 (Timer 1 external input)

P3.6 WR (external data memory write strobe)

P3.7 RD (external data memory read strobe)

At the same time, the P3 port receives some control signals for flash programming and programming verification at the same time;

RST: Reset input. When the oscillator resets the device, it is necessary to maintain the high-level time of the RST pin for two machine cycles;

ALE / PROG : When accessing external memory, the output level allowed by the address latch is used to latch the lower byte of the address. This pin is used to input the programming pulse during FLASH programming. In normal times, the ALE terminal outputs a positive pulse signal at a constant frequency cycle, which is 1/6 of the oscillator frequency. It can therefore be used as a pulse for external output or for timing purposes. However, it should be noted that an ALE pulse will be skipped whenever used as an external data memory. If you want to disable the output of ALE, you can set it to 0 on the SFR8EH address. At this time, ALE only works when the MOVX, MOVC instruction is executed. In addition, this pin is pulled slightly higher. If the microprocessor is in the external execution state ALE inhibit, the set is invalid;

PSEN: Strobe signal for external program memory. During the address from the external program memory, each machine cycle PSEN is active twice. However, when accessing the internal data memory, the two valid PSEN signals will not appear;

EA/VPP: When the EA is held low, access the external ROM; note that when the encryption mode is 1, the EA will be internally locked to RESET; when the EA terminal remains high, the internal ROM is accessed. This pin is also used to apply 12V programming power (VPP) during FLASH programming;

XTAL1: input of the inverting oscillator amplifier and input of the internal clock operating circuit;

XTAL2: output from the inverting oscillator

Rechargable Battries

In most cases, today you're better off using rechargeable batteries over disposable ones. ... And you wouldn't lose much performance: The best rechargeables can power your devices on a single charge for just as long as most high-quality single-use batteries can, but at a fraction of the cost over time.

Proper care and maintenance will prolong the life of any product, including your rechargeable batteries. With appropriate care and use, you should expect 2-7 years from most rechargeable batteries. Rechargeable cordless phone batteries can last 1-2 years with the right use and care.

Choose between nickel and lithium batteries. Watch for the memory effect with your NiCd batteries. The battery life decreases when you recharge the battery before it is fully depleted. ...Choose a lithium-ion (Li-ion) battery if you want to be able to charge it at any time.


Rechargeable Battery,Ups Inverter Battery,Rechargable Battries,Rechargeable 900Mah 3.7V Lithium

Shenzhen Glida Electronics Co., Ltd. , https://www.szglida.com