NY8A051H is an IO-type consumer low-cost 8-bit Jiuqi microcontroller with 6 IO ports, 1K ROM, with a PWM, and built-in LVR. The simplest IO type low unit price microcontroller. It can be compatible with Yuanxiang Feiling microcontroller, Yingguang microcontroller, Shengsi microcontroller, Xinsheng microcontroller, Elan microcontroller, Songhan microcontroller, Zhongwei Aixin, etc. It is available in SOP8 and SOT23-6 packages. The development environment can be in assembly or C. There is a democode for reference, and there is also technical support for customers to consult at any time.
Overview: In terms of IO resources, the NY8A051H has 6 elastic bidirectional I-o pins, each of which has a separate register to control as an input or output pin. In addition, each IO pin has additional programmable functions such as pull-up or pull-down resistors or open-drain outputs. In addition, for infrared remote control products, the NY8A051H has a built-in infrared carrier transmitter with selectable frequency. The NY8A051H has two sets of timers, which can be used as system frequency.
Typical timing applications can either be triggered from an external signal to count. In addition, the NY8A051H provides one set of 8-bit resolution PWM output or buzzer output, which can be used to drive motors, LEDs, or buzzers, etc. The NY8A051H adopts a dual-clock mechanism, and both high-speed and low-speed oscillations are input by internal RC oscillation. Under the dual-clock mechanism, the NY8A051H can choose from a variety of operating modes such as Normal Mode, Slow Mode, Standby Mode and Sleep Mode to save power consumption and extend battery life. In power-saving modes such as standby mode and halt mode, there are various events that can trigger an interrupt to wake up NY8A051H into normal or slow mode to deal with emergencies.
1.1 Features
Wide operating voltage: 20v ~5.5V @系统频率 8MHz.
2.2v ~5.5V @系统频率 8MHz.
Wide operating temperature range: -25°C to 85°C.
Up to 5kV ESD.
Built-in 16-order accurate low-voltage detection circuitry.
1kx14 bits eprom。
48 bytes sram。
6 O pins (GPIO) and PB [5:0] that can control the input and output directions separately.
PB [3:0] selects the use of a built-in pull-down resistor for input.
The inputs are available in three configurations (TTL CMOS without Schmitt).
PB[3] has a built-in pull-up resistor and output high-push function.
PB [5:0] selects either a pull-up resistor or an open-drain output.
All I-o pin outputs can be selected as either small sink current or normal sink current.
All I-O pin outputs can be selected as either Small Drive Current or Normal Drive Current, except for PB3.
8-layer program stack.
There is a direct or indirect addressing pattern for accessing data.
A set of 8-bit up-digit timers (timer0) contains programmable frequency predivision lines.
A set of 8-digit down timers (timer1) can be used to choose between repeated loading or continuous lower timing.
An 8-bit pulse-width modulation output (PWM1).
One buzzer output (bz1).
The frequency of the 38 57kHz infrared carrier can be selected, and the polarity of the carrier can also be selected according to the data.
Built-in power-on reset circuit (POR).
Built-in Low Voltage Reset (LVR).
Built-in Watchdog Timer (WDT) can be switched on and off by the program firmware.
With a dual-clock mechanism, the system can switch between high-speed oscillation and low-speed oscillation at any time.
High-speed oscillation: I HRC (internal 1 20MHz high-speed RC oscillation).
Low-speed oscillation: ILRC (internal 32kHz low-speed RC oscillation).
Four operating modes adjust the current consumption according to the system demand: Normal, Slow Mode, Standby Mode, and Halt Mode.
Six types of hardware interrupts:
timer0 overflow interrupts.
Timer1 debit interrupted.
WDT interrupts.
The PB input state changes interrupted.
External interrupt input.
Interrupts are detected for low voltage.
NY8A051H Six Wake Up Interrupts in Standby Mode:
timer0 overflow interrupts.
Timer1 debit interrupted.
WDT interrupts.
The PB input state changes interrupted.
External interrupt input.
Interrupts are detected for low voltage.
NY8A051H Three wake-up interruptions in Sleep Mode (HALT MODE):
WDT interrupts.
The PB input state changes interrupted.
External interrupt input.
Foot position:
Diff Diagram: