SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
0: page 0 mode.
1: page 1 mode.
Page_mode: This flag is used to select SFR register table.
0: SFR Method 1 (indirect mode).
1: SFR Method 2 (page mode).
4.12
PWM Address Register( PWMADDR )
Mnemonic: PWMADDR
7
6
5
Address: A2h
0
Reset
00H
4
3
PWMADDR[7:0]
2
1
PWMADDR: PWM address register and can only use in SFR method 1 (Indirect mode).
PWMADDR and PWMDATA need to be used together.
4.13
PWM Data Register( PWMDATA )
Mnemonic: PWMDATA
7
6
5
Address: A3h
0
Reset
00H
4
3
PWMDATA[7:0]
2
1
PWMDATA: PWM data register and can only use in SFR method 1 (Indirect mode).
PWMDATA and PWMADDR need to be used together.
Read a data from PWM register in SFR Method 1 (Indirect Mode):
Example: Read the PWMSEV data in SFR Method 1.
PAGESEL = 0x0h;
// Method 1.
PWMADDR = 0xEDh;
Val = PWMDATA;
// PWMSEV indirect address: 0xEDh (Indirect mode)
// (Refer Page1 Table of the Method 2)
// Val: Read data from PWMSEV.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A
SM59A16U1
04/12/2013
- 38 -