n Built-in 6502C 8-bit CPU
n 3 MHz CPU operation frequency when oscillator is
running at 6 MHz
n 6K bytes of OTP (one time programming) ROM
n 256 bytes of SRAM
n One 8-bit programmable base timer with pre-divider
circuit
n 29 programmable bi-directional I/O pins including two
external interrupts
n 3 LED direct sink pins with internal serial resistors
n On-chip oscillator (Crystal or Ceramic Resonator)
n Watch-dog timer reset
n Built-in power-on reset
n USB interface
n 3 supported endpoints
n Remote wakeup provided
n CMOS technology for low power consumption
n 40-pin DIP package, 42-pad Dice form and COB
General Description
The NT68P81 is a single chip micro-controller for USB
keyboard applications. It incorporates a 6502C 8-bit
CPU core, 6K bytes of OTP ROM, and 256 bytes of RAM
used as working RAM and stack area. It also includes 29
programmable bi-directional I/O pins with built-in
resistors, and one 8-bit pre-loadable base timer.
Additionally, it includes a built-in power-on reset, a builtin low voltage reset, an oscillator that requires crystal or
ceramic resonator applied, and a watch-dog timer that
prevents system standstill.
The 6502C is an 8-bit CPU that provides 56 instructions, decimal and binary arithmetic, thirteen addressing modes, true
indexing capability, programmable stack pointer and variable length stack, a wide selection of addressable memory
range, and an interrupt input. Other features are also included.
The CPU clock cycle is 3MHz (6MHz system clock divided by 2). Please refer to 6502 data sheet for more detailed
information.
07
Accumulator A
7
Index Register Y
70
Index Register X
Program Counter PCH
PCL
70
7
Stack Pointer SP
NStatus Register P
VBDIZC
0
815
0
07
Carry
Zero
IRQ Disable
Decimal Mode
BRK Command
Overflow
Negative
1 = TRUE
1 = Result ZERO
1 = DISABLE
1 = TRUE
1 = BRK
1 = TRUE
1 = NEG
Figure 1. 6502 CPU Registers and Status Flags
5
NT68P81
2.Instruction Set List
Instruction Code
Meaning Operation
ADC Add with carry A + M + C → A,C
AND Logical AND A•M → A
ASL Shift left one bit C ← M7•••M0 ← 0
BCC Branch if carry clear Branch on C=0
BCS Branch if carry set Branch on C=1
BEQ Branch if equal to zero Branch on Z=1
BIT Bit test A•M,M7 → N,M6 → V
BMI Branch if minus Branch on N=1
BNE Branch if not equal to zero Branch on Z=0
BPL Branch if plus Branch on N=0
BRK Break Forced interrupt PC + 2↓ PC↓
BVC Branch if overflow clear Branch on V=0
BVS Branch if overflow set Branch on V=1
CLC Clear carry 0 → C
CLD Clear decimal mode 0 → D
CLI Clear interrupt disable bit 0 → I
CLV Clear overflow 0 → V
CMP Compare accumulator to memory A - M
CPX Compare with index register X X - M
CPY Compare with index register Y Y - M
DEC Decrement memory by one M - 1 → M
DEX Decrement index X by one X - 1 → X
DEY Decrement index Y by one Y - 1 → Y
EOR Logical exclusive -OR A ⊕ M→A
INC Increment memory by one M + 1 → M
INX Increment index X by one X + 1 → X
INY Increment index Y by one Y + 1 → Y
JMP Jump to new location (PC + 1) → PCL,(PC + 2) → PCH
JSR Jump to subroutine PC + 2↓,(PC + 1) → PCL,(PC + 2) → PCH
6
NT68P81
Instruction Set List (contiuned)
Instruction Code
Meaning Operation
LDA Load accumulator with memory M → A
LDX Load index register X with memory M → X
LDY Load index register Y with memory M → Y
LSR Shift right one bit 0 → M7•••M0 → C
NOP No operation No operation (2 cycles)
ORA Logical OR A + M → A
PHA Push accumulator on stack A ↓
PHP Push status register on stack P ↓
PLA Pull accumulator from stack A ↑
PLP Pull status register from stack P ↑
ROL Rotate left through carry C ← M7•••M0 ← C
ROR Rotate right through carry C → M7•••M0 → C
RTI Return from interrupt P ↑,PC ↑
RTS Return from subroutine PC ↑,PC+1 → PC
SBC Subtract with borrow A - M - C → A,C
SEC Set carry 1 → C
SED Set decimal mode 1 → D
SEI Set interrupt disable status 1 → I
STA Store accumulator in memory A → M
STX Store index register X in memory X → M
STY Store index register Y in memory Y → M
TAX Transfer accumulator to index X A → X
TAY Transfer accumulator to index Y A → Y
TSX Transfer stack pointer to index X S → X
TXA Transfer index X to accumulator X → A
TXS Transfer index X to stack pointer X → S
TYA Transfer index Y to accumulator Y → A
*For more detailed specifications, please refer to 6502 programming data book.
7
NT68P81
3. OTP ROM: 6K X 8 bits
The built-in OTP ROM program code, executed by the 6502 CPU, has a capacity of 6K x 8-bit and is addressed from
E800H to FFFFH. It can be programmed by the universal EPROM writer through a conversion adapter and programming
configuration such as INTEL - 27C64. In the OPERATING mode, the OTP ROM is integrated with the system and it cannot
be directly accessed. When the user wants to work with the OTP ROM alone, the user must first enter the
PROGRAMMING mode by setting: PIN < RESET = VPP>. At this time, through multiplex pins, we can use familiar
procedures to program and verify the OTP ROM block with the universal programmer.
OTP ROM Mega Cell D.C. Electrical Characteristics (READ Mode)
(VDD = 5V, TA = 25℃, unless otherwise specified)
Symbol Parameter Min. Typ. Max. Unit Test Conditions Note
VIH Input Voltage VDD - 0.3 VDD + 0.3
VIL -0.3 0.3 V 1
IIL Input Current +/-10 µA
IOH Output Voltage -400 µA V
IOL 1 mA V
IDD Operating Current 1 mA F = 3MHz 2
I
Standby Current 100 µA 3
STB1
Note: 1. All inputs and outputs are CMOS compatible
2. F = 3MHz, l
= 0mA, CE = VIH. VDD = 5V
out
3. CE = VIH, OE = VIL, VDD = 5V
V 1
= 5V, V OH = 4.5V
DD
= 5V, V OL = 0.5V
DD
OTP ROM Meg a Cell A.C. Electrical Characteristics (READ Mode)
(VDD = 5V, TA = 25℃, unless otherwise specified)
Symbol Parameter Min. Max. Unit Conditions
T
Cycle Time 250 ns
cyc
T12 Non-overlap Time to PH1 & PH2 5 65 ns
T
Address Access Time 145 ns
acc
4.5V < VDD < 5.5V
Tce OTPCE to Output Valid 145 ns
Tst Output Data Setup Time 20 ns
Toh Output Data Hold Time 0 ns
OTP ROM Mega Cell A.C. Test Conditions
Output Load 1 CMOS Gate and CL = 10pF
Input Pulse Rise and Fall Times 10ns Max.
Input Pulse Levels 0V to 5V
Timing Measurement Reference Level Inputs 0V and 5V Outputs 0.3V and 4.7V
8
NT68P81
OTP ROM Mega Cell Timing Waveforms (READ mode)
T12
Tcyc
PH1
PH2
A0 - A14
OTPCE
DB0 - DB7
Tacc & TceTst
Toh
OTP ROM Mega Cell D.C. Electrical Characteristics (PROGRAMMING Mode)
(VDD = 5V, TA = 25℃, unless otherwise specified)
Symbol Parameter Min. Typ. Max. Unit Test Conditions Note
VDD Supply Voltage 6 6.5 V 4
VPP 10.5 12.75 V
VIH Input Voltage 2 VDD + 0.3
V
VIL -0.3 0.6 V
IIL Output Current +/-10 μA
IOH Output Current -400 μAVDD = 5V, V
IOL 1 mA V
= 5V, V
DD
= 4.5V
OH
= 0.5V
OL
IDD Operating Current 30 mA
IPP 20 mA VPP = 12.75V
CLK Input Clock 53.203424
VPIH Input Voltage 2 VDD + 0.3
MHz
V
VPIL -0.3 0.6 V
9
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.