DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

SN8P2501 Ver la hoja de datos (PDF) - Sonix Technology Co., Ltd

Número de pieza
componentes Descripción
Fabricante
SN8P2501
SONiX
Sonix Technology Co., Ltd SONiX
SN8P2501 Datasheet PDF : 11 Pages
1 2 3 4 5 6 7 8 9 10
SN8P2501
使用注意事項 V1.0
5.2 @PWM0_MAX_DUTY 巨集說明:
語法:@PWM0_MAX_DUTY Max_Duty
Max_Duty TC0 Overflow Boundary PWM Duty Range
256
FFh to 00h
0/256 ~ 255/256
64
3Fh to 40h
0/64 ~ 63/64
32
1Fh to 20h
0/32 ~ 31/32
16
0Fh to 10h
0/16 ~ 15/16
PWM Resolution
8-bit
6-bit
5-bit
4-bit
範例:設置 PWM Max. Duty = 64Duty = 2:1
@PWM0_MAX_DUTY 64
MOV
A,#42 ; 42 = 63 (Max. TC0R) / 3 X 2
B0MOV
TC0R,A
B0BSET
FPWM0OUT
B0BSET
FTC0ENB
6 PEDGE 設定:
SN8P2501 PEDGE 暫存器中的 P00G[1:0] 定義與 S8KD-2 ICE 不同,ICE 模擬結果無法與 real chip 一致,
兩者差異列表如下:
PEDGE
P00G1 P00G0
0
0
0
1
1
0
1
1
SN8P2501
Reserved
Rising Edge
Falling Edge
Bi-Direction
S8KD-2 ICE
Reserved
Falling Edge
Rising Edge
Bi-Direction
為求 ICE 模擬結果與 SN8P2501 real chip 一致性,提供巨集程式供使用者在 ICE 上模擬,此巨集已經內建
Assembler 中,使用者直接下達指令即可。此巨集程式必須配合 ICE_MODE 宣告使用,ICE_MODE
EQU 0 應用於 SN8P2501 real chip “.SN8”檔,ICE_MODE EQU 1 應用於 S8KD-2 ICE Emulation
6.1 @P00_EDGE 巨集說明:
語法:@P00_EDGE val
val: 1 = Rising edge. 2 = Falling edge. 3 = Level Change (Bi-direction).
範例: 設置 P0.0 interrupt trigger edge Rising Edge,使用 ICE 模擬。
CHIP SN8P2501
.DATA
ICE_MODE EQU 1
.CODE
@P00_EDGE 1
B0BSET
FP00IEN
本資料為松翰科技股份有限公司專有之財產,非經書面許可不准透露或使用本資料,亦不准複印複製或轉變成任何其他形式使用。
The information contained herein is the exclusive property of SONiX technology Co., Ltd. and shall not be distributedreproducedor disclosed in whole or in
part without prior written permission of SONiX technology Co., Ltd.
Page9

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]