Microcontroller dedicated to vacuum cleaner solution
High-performance RISC CPU
Using RISC architecture, only 37 single instructions
(All other instructions except program jump instructions are single cycle instructions, and program jump instructions are double cycle instructions)
8-level deep hardware stack
14-bit wide instruction set, 8-bit wide data path
OTP chip, on-chip flash memory (ROM) is 2K words, data storage (RAM) is 128 bytes
Direct, indirect and relative addressing modes for data and instructions
PA-5 is independently set up internally through software
PC0-7 independently set internal pull-up through software
PA0-2, 4, 5 & PC0-1 have output open drain function
Operating voltage 2.0V to 5.5V
Optional power supply low-voltage detection, under-voltage reset function (PED), three-level under-voltage reset
There are 7 channels of 10-bit AD and 12-bit AD optional, with internal reference 1.25V, internal reference 2V/3V
Timer 0: 8Bit timer with 3Bit prescaler
Timer 1: 16Bit timer with 2Bit prescaler
Timer 2: 12Bit timer with PWM0
Timer 3: 12Bit timer with PWM1
Two PWMs: PWM0 (software selectable pins PA2/PC4), PWM1 (software selectable pins PA1/PC5)
Self-oscillating watchdog timer
14 independent and direct control I/O ports
Working speed: internal 16M to 32KHz oscillator, optional 4-frequency/2-frequency working cycle
9 interrupt sources: 5 internal interrupt sources: TM0, TM1, TM2, TM3, ADC
4 external interrupt sources: PA2, PC2, PC3 and PA0-5 pin changes
Features of MCU
Power-on Reset (POR)
Low voltage detection (LVD) and brown-out reset (BOR)
Power-on Reset (POR)
Watchdog timer (WDT) with dedicated on-chip RC oscillator, able to work reliably
Code protection function
Independent programmable pull-up function
Sleep mode to save power
Optional oscillator options:
IRC: 16M/8M/4M/32KHz internal oscillator
RC: Cheap external RC oscillator
LFXT: low frequency crystal oscillator
XTAL: Standard crystal oscillator
Low power consumption characteristics CMOS technology
Working current:
<170 uA at 2V, 8MHz
stand-by current:
Typical value at 2V is <1UA
Watchdog timer current:
When the voltage is 2.0V, the typical value is 300nA
TIMER1 oscillator current:
When the frequency is 32khz and the voltage is 2.0v, the typical value is 4uA. Fully static design
Wide operating voltage range: 1.8V to 6.0V
Peripheral function
14 I/O pins:
13 I/O pins with independent direction control
1 input-only pin
1 IO port can be set to automatically output according to the input signal through the register, suitable for single-wire communication design
High sink/source current can directly drive LED
PORTC can be set for high current (60mA) and low current (20mA) output
Analog to digital converter module:
7 channels up to 12-bit resolution AD, with internal reference 1.25V
Programmable 4 channel input
Reference voltage input, with internal voltage amplification up to 16 times acquisition
8-bit real-time clock/counter with 8-bit programmable prescaler: (TMR0)
Enhanced Timer1:
16-bit timer/counter with prescaler
External strobe input mode
If INTOS mode has been selected, OSC1 and OSC2 can be selected as Timer oscillator in LP mode
TMR2 with PWM0 function:
12-bit timer/counter with prescaler
TMR3 with PWM1 function:
12-bit timer/counter with prescaler
application
Suitable applications for the device are: from home appliance motor control and high-speed cars to low-power remote transmitter/receiver, LED control, infrared remote control, remote communication processor, controller, instrument, charger, toy, car and PC peripherals, etc. .