NY8B062 Description :
NY8B062A is an 8-bit microcontroller with EPROM as memory, except for I/O applications such as home appliances or measurement. More optimized for atomizer products. The CMOS process provides customers with significant advantages such as low cost, high performance, and high resistance to electromagnetic interference. The NY8B062A core is built on the RISC Reduced instruction set architecture and can be easily edited and controlled, with a total of 55 instructions. Except for a few instructions that require 2 sequences, most instructions can be completed in 1 sequence, allowing users to easily complete different applications with program control. Therefore, it is ideal for a variety of low and medium memory capacity but complex applications.
NY8B062A built-in high precision eleven plus one channel twelve-bit analog to digital converter, and high precision voltage comparator, enough to cope with a variety of analog interface detection and measurement.
NY8B062A built-in high frequency oscillator can flexibly select the output frequency range to suit a variety of nebulizer components, and can also be programmed to fine-tune the output frequency, fine enough to cope with the nebulizer component deviation.
In terms of I/O resources, the NY8B062A has 14 elastic bidirectional I/O pins, each with a separate register control as an input or output pin. And each I/O pin has additional program-controlled functions such as pull or pull down resistance or Open-Drain output. In addition, for infrared remote control products, NY8B062A has built-in infrared carrier transmitter with selectable frequency.
The NY8B062A has four sets of timers, which can be counted on the system frequency as a general timing application or triggered from an external signal. In addition, the NY8B062A offers three sets of 10-bit resolution PWM outputs, and three sets of buzzer outputs can be used to drive motors, leds, or buzzers, among others.
The NY8B062A uses a dual clock mechanism, and the high speed oscillation or low speed oscillation can be selected respectively from the internal RC oscillation or the external Crystal input. Under the dual-clock mechanism, the NY8B062A can choose a variety of working modes such as Normal mode, Slow mode, Standby mode and sleep mode to save power consumption and extend battery life. And when the microcontroller uses the internal RC high-speed oscillation, the low-speed oscillation can be simultaneously timed using the external precise Crystal. It can maintain high-speed processing while accurately calculating the true time. In power-saving modes such as Standby mode and sleep mode, there are a variety of events that can trigger the interrupted wake-up of NY8B062A into Normal mode or Slow mode to deal with emergencies.
New high frequency oscillator (FHOSC has 11bit for users to adjust, factory preset +/ -1%, users can adjust to +/-0.1%, and output PWM3 to PA2.
NY8B062A built-in low-speed crystal oscillator (32768Hz) capacitor, CL has Disable, 7pF, 9pF, 12.5pF four options to choose, convenient for customers to reduce the external capacitor parts, still can get more accurate PPM value.
NY8B062A Features:
System frequency with 20.8 M / 19.2 M / 14.4 M/M / 13.6 M offer options.
Timer 3 option Output the system frequency directly and provides the fastest half Clock system frequency output.
High Frequency oscillator (FHOSC) has 11bit R-page(1DH&1EH) for user fine-tuning, factory trim to +/-1%, user adjustment to +/-0.1%.
Built-in low speed crystal oscillator (32768Hz) capacitor, CL has Disable, 7pF, 9pF, 12.5pF four options to choose from, convenient for customers to reduce the external capacitor parts, still can get more accurate PPM value.
ESD exceeding ±8KV.
The Noise Filter can tolerate EFT in excess of ±4KV when turned on. (Operating voltage @5V)
Wide operating voltage: (instruction cycle is 4 CPU clock, i.e. 4T mode)
2.0V ~ 5.5V @ System frequency ≦8MHz.
2.2V ~ 5.5V @ System frequency >8MHz.
Wide operating temperature: -40°C ~ 85°C.
2Kx14 bits EPROM.
128 bytes SRAM.
14 I/O pins (GPIO), PA[7:0], PB[5:0] that can separately control the input and output directions.
PA[5, 3:0] and PB[3:0] can be optionally input with built-in pull-down resistors.
PA[7:0] and PB[5:0] are optionally input with pull-up resistors.
PB[5:0] has the option of Open-Drain.
PA[5] can be selected as an input or an Open-Drain output.
The output of all I/O pins can be selected as Constant Sink Current, Small Sink Current, Normal Sink Current, or Large Sink Current.
The output of all I/O pins can be Small Drive Current or Normal Drive Current, except PA5.
8-layer Stack.
Access data has direct or indirect addressing modes.
A set of 8-bit upper timer (Timer0) contains programmable frequency predivision lines.
Three sets of 10-bit downcount timers (Timer1, 2, 3) can optionally be loaded repeatedly or counted continuously.
Three 10-bit pulse width modulation (PWM1, 2, 3).
Three buzzer outputs (BZ1, 2, 3).
The 38/57KHz infrared carrier frequency can be selected, and the carrier polarity can also be selected according to the data.
Built-in accurate low voltage detection circuit (LVD).
An 11-plus-one channel 12-bit Analog to Digital Converter is built in.
An accurate Voltage Comparator is built in.
Built-in power-on reset circuit (POR).
Built-in low voltage reset (LVR).
Built-in watchdog timer (WDT), which can be switched on and off by the program firmware.
Built-in resistance frequency converter (RFC) function.
Dual clock mechanism, the system can switch between high speed oscillation or low speed oscillation at any time.
High speed oscillation: E_HXT(over 6MHz external high speed quartz oscillation)
E_XT (455K~6MHz external quartz oscillation)
I_HRC (1~20.8MHz internal high speed RC oscillation)
Low speed oscillation: E_LXT (32KHz external low speed quartz oscillation)
I_LRC (internal 32KHz low speed RC oscillation)
Four operating modes can be used to adjust current consumption according to system requirements: Normal mode, Slow mode, Standby mode, and sleep mode.
Eleven hardware interrupts:
Timer0 The overflow is interrupted.
Timer1 borrow interrupt.
Timer2 borrow interrupt.
Timer3 borrow interrupt.
The WDT is interrupted.
Description The PA/PB input status changed.
Two sets of external interrupt inputs.
Low voltage detection interrupted.
Comparator output transition interrupt.
Analog to digital conversion complete interrupt °
NY8B062A 11 wake interrupts in Standby mode:
Timer0 The overflow is interrupted.
Timer1 borrow interrupt.
Timer2 borrow interrupt.
Timer3 borrow interrupt.
The WDT is interrupted.
Description The PA/PB input status changed.
Two sets of external interrupt inputs.
Low voltage detection interrupted.
Comparator output transition interrupt.
The analog-to-digital conversion completes interrupt º
NY8B062A Four wake interrupts in Halt mode:
The WDT is interrupted.
Description The PA/PB input status changed.
Two sets of external interrupt inputs.
NY8B062A functional block diagram:

NY8B062A Pin distribution diagram:

NY8B062A Pin Description:
