Overview of NY8A056A:
NY8A056A is an 8-bit microcontroller with EPROM as memory, designed for I/O applications such as home appliances or measurement. The CMOS process provides customers with significant advantages such as low cost, high performance, and high resistance to electromagnetic interference. The NY8A056A core is built on the RISC Reduced instruction set architecture for easy editing and control, 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.
In terms of I/O resources, the NY8A056A has 16 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, NY8A056A built in a selectable frequency of high-current output infrared carrier transmitter, the current can reach 340mA at 3V power supply.
The NY8A056A has three sets of timers that can be counted at the system frequency for general timing applications or triggered from an external signal. In addition, the NY8A056A provides two sets of 8-bit resolution PWM outputs or buzzer outputs that can be used to drive motors, leds, or buzzers.
NY8A056A uses a dual clock mechanism, high speed oscillation or low speed oscillation can be selected respectively internal RC oscillation or external Crystal input. Under the dual-clock mechanism, the NY8A056A can select multiple 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 the power saving mode, such as Standby mode and sleep mode, various events can trigger the NY8A056A to wake up to Normal mode or Slow mode to deal with emergencies.
NY8A056A特性:
寬廣的工作電壓:(指令週期為4個(gè)CPU clock,亦即4T模式)
2.0V ~ 5.5V @系統(tǒng)頻率≦8MHz。
2.2V ~ 5.5V @系統(tǒng)頻率>8MHz。
寬廣的工作溫度:-40°C ~ 85°C。
超過±8KV的ESD。
雜訊過濾功能(Noise Filter)打開時(shí)可容忍超過±4KV的EFT。(操作電壓@5V)
1Kx14 bits EPROM。
96 bytes SRAM。
16 根可分別單獨(dú)控制輸入輸出方向的I/O腳(GPIO)、PA[7:0]、PB[7:0]。
PA[5, 3:0]及PB[3:0]可選擇輸入時(shí)使用內(nèi)建下拉電阻。PA[7:6, 4:0]及PB[7:0]可選擇輸入時(shí)使用上拉電阻,上拉電阻值可選擇 100kΩ或1MΩ。
PB[7:0]可選擇開漏極輸出(Open-Drain)。
PA[5]可選擇當(dāng)作輸入或開漏極輸出(Open-Drain)。
所有I/O腳輸出可選擇定灌電流(Constant Sink Current)或一般灌電流(Normal Sink Current)或大灌電流(Large Sink Current)。
8層程式堆棧(Stack)。
存取資料有直接或間接定址模式。
一組8位元上數(shù)計(jì)時(shí)器(Timer0)包含可程式化的頻率預(yù)除線路。
二組8位元下數(shù)計(jì)時(shí)器(Timer1, 2)可選重複載入或連續(xù)下數(shù)計(jì)時(shí),二組8位元下數(shù)計(jì)時(shí)器可合併成一組16位元計(jì)時(shí)器。
二個(gè)脈衝寬度調(diào)變(PWM1, 2)。
二個(gè)蜂鳴器輸出(BZ1, 2)。
38/57KHz紅外線載波頻率可供選擇,同時(shí)載波之極性也可以根據(jù)數(shù)據(jù)作選擇。
大電流輸出紅外線載波發(fā)射口,可選一般或340mA灌電流。
內(nèi)建準(zhǔn)確的電壓比較器(Voltage Comparator)。
內(nèi)建上電復(fù)位電路(POR)。
內(nèi)建低壓復(fù)位功能(LVR)。
內(nèi)建看門狗計(jì)時(shí)(WDT),可由程式韌體控制開關(guān)。
雙時(shí)鐘機(jī)制,系統(tǒng)可以隨時(shí)切換高速振盪或者低速振盪。
高速振盪: E_HXT(超過 6MHz外部高速石英振盪)
E_XT(455K~6MHz外部石英振盪)
I_HRC(1~20MHz內(nèi)部高速RC振盪)
低速振盪: E_LXT(32KHz外部低速石英振盪)
I_LRC(內(nèi)部32KHz低速RC振盪)
四種工作模式可隨系統(tǒng)需求調(diào)整電流消耗:正常模式(Normal)、慢速模式(Slow mode)、待機(jī)模式(Standby mode)與睡眠模式(Halt mode)。
八種硬體中斷:
Timer0溢位中斷。
Timer1借位中斷。
Timer2借位中斷。
WDT中斷。
PB輸入狀態(tài)改變中斷。
外部中斷輸入。
低電壓偵測(cè)中斷。
比較器輸出轉(zhuǎn)態(tài)中斷。
NY8A056A在待機(jī)模式(Standby mode)下的八種喚醒中斷:
Timer0溢位中斷。
Timer1借位中斷。
Timer2借位中斷。
WDT中斷。
PB輸入狀態(tài)改變中斷。
外部中斷輸入。
低電壓偵測(cè)中斷。
比較器輸出轉(zhuǎn)態(tài)中斷。
NY8A056A在睡眠模式(Halt mode)下的三種喚醒中斷:
WDT中斷。
PB輸入狀態(tài)改變中斷。
外部中斷輸入。
NY8A056A功能框圖:
NY8A056A引腳分配:
NY8A056A引腳說明:
NY8A056A功能框圖:
NY8A056A引腳分配:
NY8A056A引腳說明: