Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SN8P1602AX Datasheet(PDF) 20 Page - SONiX Technology Company

Part # SN8P1602AX
Description  8-Bit Micro-Controller
PDF  94 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SONIX [SONiX Technology Company]
Direct Link  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8P1602AX Datasheet(HTML) 20 Page - SONiX Technology Company

Back Button SN8P1602AX Datasheet HTML 16Page - SONiX Technology Company SN8P1602AX Datasheet HTML 17Page - SONiX Technology Company SN8P1602AX Datasheet HTML 18Page - SONiX Technology Company SN8P1602AX Datasheet HTML 19Page - SONiX Technology Company SN8P1602AX Datasheet HTML 20Page - SONiX Technology Company SN8P1602AX Datasheet HTML 21Page - SONiX Technology Company SN8P1602AX Datasheet HTML 22Page - SONiX Technology Company SN8P1602AX Datasheet HTML 23Page - SONiX Technology Company SN8P1602AX Datasheet HTML 24Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 94 page
background image
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 20
Revision 1.94
GENERAL PURPOSE PROGRAM MEMORY AREA
The 1017/4089-word at ROM locations 0009H~03FEH/0FFEH are used as general-purpose memory. The area is
stored instruction’s op-code and look-up table data. The SN8P1600 includes jump table function by using program
counter (PC) and look-up table function by using ROM code registers (R, Y, Z).
The boundary of program memory is separated by the high-byte program counter (PCH) every 100H. In jump table
function and look-up table function, the program counter can’t leap over the boundary by program counter
automatically. Users need to modify the PCH value to “PCH+1” when the PCL overflows (from 0FFH to 000H).
LOOK-UP TABLE DESCRIPTION
In the ROM’s data lookup function, Y register is pointed to the bit 8~bit 15 and Z register to the bit 0~bit 7 data of ROM
address. After MOVC instruction is executed, the low-byte data of ROM then will be stored in ACC and high-byte data
stored in R register.
Example: To look up the ROM data located “TABLE1”.
B0MOV
Y, #TABLE1$M
; To set lookup table1’s middle address
B0MOV
Z, #TABLE1$L
; To set lookup table1’s low address.
MOVC
; To lookup data, R = 00H, ACC = 35H
;
; Increment the index address for next address
INCMS
Z
; Z+1
JMP
@F
; Not overflow
INCMS
Y
; Z overflow (FFH
00),
Y=Y+1
NOP
; Not overflow
;
@@:
MOVC
; To lookup data, R = 51H, ACC = 05H.
.
.
;
TABLE1:
DW
0035H
; To define a word (16 bits) data.
DW
5105H
; “
DW
2012H
; “
CAUSION: The Y register can't increase automatically if Z register cross boundary from 0xFF to 0x00.
Therefore, user must take care such situation to avoid loop-up table errors. If Z register overflow, Y
register must be added one. The following INC_YZ macro shows a simple method to process Y and Z
registers automatically.
Note: Because the program counter (PC) is only 12-bit, the X register is useless in the application. Users
can omit “B0MOV
X, #TABLE1$H”. SONiX ICE support more larger program memory addressing
capability. So make sure X register is “0” to avoid unpredicted error in loop-up table operation.
Example: INC_YZ Macro
INC_YZ
MACRO
INCMS
Z
; Z+1
JMP
@F
; Not overflow
INCMS
Y
; Y+1
NOP
; Not overflow
@@:
ENDM



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com