EM6517 ETC, EM6517 Datasheet - Page 19

no-image

EM6517

Manufacturer Part Number
EM6517
Description
4 BIT MICROCONTROLLER
Manufacturer
ETC
Datasheet
7.4.4 PWM and Frequency Output
PB[3] can also be used to output the PWM (Pulse Width Modulation) signal from the 10-Bit Counter, the
Ck[11], Ck[16] as well as the Ck[12] prescaler frequencies.
-Selecting PWM
-Selecting Ck[11] output on PB[2] with bit PB1kHzOut in register OPTFSelPB
-Selecting Ck[16] output on PB[1] with bit PB32kHzOut in register OPTFSelPB
-Selecting Ck[12 ] output on PB[0] with bit PB2kHzOut in register OPTFSelPB
7.5 Port B registers
Table 7.5.1 Register RegPBData
Table 7.5.2 Register RegPBCntl
Table 7.5.3 Register OPTFSelPB
Table 7.5.4 Option Register OPTNoPdPB
Table 7.5.5 Option Register OPTNchOpDPB
R* : Direct read on pin (not the internal register read).
Default "0" is: Port B in input mode
Default "0" is: No frequency output, port A Input reset can not reset the SLEEP mode.
Default "0" is: Pull-down on
Default "0" is: CMOS on PB[3..0]
Bit
Bit
Bit
Bit
Bit
3
2
1
0
3
2
1
0
3
2
1
0
3
2
1
0
3
2
1
0
output on PB[3] with bit PWMOn in register RegPresc and running the counter.
NchOpDPB[3]
NchOpDPB[2]
NchOpDPB[1]
NchOpDPB[0]
PB32kHzOut
InpResSleep
PBIOCntl[3]
PBIOCntl[2]
PBIOCntl[1]
PBIOCntl[0]
PB1kHzOut
PB2kHzOut
NoPdPB[3]
NoPdPB[2]
NoPdPB[1]
NoPdPB[0]
PBData[3]
PBData[2]
PBData[1]
PBData[0]
Name
Name
Name
Name
Name
FOR ENGINEERING ONLY
power on
power on
power on
Reset
Reset
value
value
value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-
-
-
-
R/W*
R/W*
R/W*
R/W*
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
N-Channel Open Drain on PB[3]
N-Channel Open Drain on PB[2]
N-Channel Open Drain on PB[1]
N-Channel Open Drain on PB[0]
Reset From SLEEP with Port A
PB[3] input and output
PB[2] input and output
PB[1] input and output
PB[0] input and output
ck[11] output on PB[2]
ck[16] output on PB[1]
ck[12] output on PB[0]
No pull-down on PB[3]
No pull-down on PB[2]
No pull-down on PB[1]
No pull-down on PB[0]
I/O control for PB[3]
I/O control for PB[2]
I/O control for PB[1]
I/O control for PB[0]
Description
Description
Description
Description
Description
© EM Microelectronic-Marin SA, 09/99, Rev. A/277
EM6517
19

Related parts for EM6517