NY8A051D General Description:
NY8A051D is an EPROM based 8-bit MCU tailored for I/O based applications like remote controllers, fan/light controller, game controllers, toy and various controllers. NY8A051D adopts advanced CMOS technology to provide customers remarkable solution with low cost and high performance benefits. RISC architecture is applied to NY8A051D and it provides 55 instructions. All instructions are executed in single instruction cycle except program branch and skip instructions which will take two instruction cycles. Therefore, NY8A051D is very suitable for those applications that are sophisticated but compact program size is required.
As NY8A051D address I/O type applications, it can provide 6 I/O pins for applications which require abundant input and output functionality. Moreover, each I/O pin may have additional features, like Pull-High/Pull-Low resistor and open-drain output type through programming. Moreover, NY8A051D has built-in infrared (IR) carrier generator with selectable IR carrier frequency and polarity for applications which demand remote control feature.
NY8A051D also provides 2 sets of timers which can be used as regular timer based on system oscillation or event counter with external trigger clock. Moreover, NY8A051D provides 1 set of 8-bit resolution Pulse Width Modulation (PWM) output and buzzer output in order to drive motor/LED and buzzer.
NY8A051D employs dual-clock oscillation mechanism, both high oscillation or low oscillation can be derived from internal resistor/capacitor oscillator. Moreover, based on dual-clock mechanism, NY8A051D provides kinds of operation mode like Normal mode, Slow mode, Standby mode and Halt mode in order to save power consumption and lengthen battery operation life.
While NY8A051D operates in Standby mode and Halt mode, kinds of event will issue interrupt requests and can wake-up NY8A051D to enter Normal mode and Slow mode in order to process urgent events.
NY8A051D Features:
Wide operating voltage range: (@ 4 CPU clock per instruction, i.e. 4T mode)
2.0V ~ 5.5V @system clock ≦8MHz.
2.2V ~ 5.5V @system clock >8MHz.
Wide operating temperature: -40°C ~ 85°C.
1K x 14 bits EPROM.
48 bytes SRAM.
6 general purpose I/O pins (GPIO), PB[5:0], with independent direction control.
PB[3:0] have features of Pull-Low resistor for input pin.
PB[5:4] and PB[2:0] have features of Pull-High resistor, and open-drain output.
PB[3] have feature of input or open-drain output.
8-level hardware Stack.
Direct and indirect addressing modes for data access.
One 8-bit up-count timer (Timer0) with programmable prescaler.
One 8-bit reload or continuous down-count timers (Timer1).
One 8-bit resolution PWM (PWM1) output.
One buzzer (BZ1) output.
Selectable 38/57KHz IR carrier frequency and high/low polarity according to data value.
Built-in Power-On Reset (POR).
Built-in Low-Voltage Reset (LVR).
Built-in Watch-Dog Timer (WDT) enabled/disabled by firmware control.
Dual-clock oscillation: System clock can switch between high oscillation and low oscillation.
High oscillation: I_HRC (Internal High Resistor/Capacitor Oscillator ranging from 1M~20MHz)
Low oscillation: I_LRC (Internal 32KHz oscillator)
Low oscillation: I_LRC (Internal 32KHz oscillator)
Four kinds of operation mode to reduce system power consumption:
Normal mode, Slow mode, Standby mode and Halt mode.
Five hardware interrupt events:
Timer0 overflow interrupt.
Timer1 underflow interrupt.
WDT timeout interrupt.
PB input change interrupt.
External interrupt.
Five interrupt events to wake-up NY8A051D from Standby mode:
Timer0 overflow interrupt.
Timer1 underflow interrupt.
WDT timeout interrupt.
PB input change interrupt.
External interrupt.
Three interrupt events to wake-up NY8A051D from Halt mode:
WDT timeout interrupt.
PB input change interrupt.
External interrupt.
NY8A051D Block Diagram:
NY8A051D Pin Assignment
NY8A051D provides three kinds of package type which are SOP8, DIP8 and SOT23-6.
NY8A051D Pin Description:
NY8A051D Pin Description: