em6521 EM Microelectronic, em6521 Datasheet - Page 20

no-image

em6521

Manufacturer Part Number
em6521
Description
Mfp Version Of Em6621 Ultra Low Power Microcontroller With 4x20 Lcd Driver
Manufacturer
EM Microelectronic
Datasheet
6.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[16], Ck[11] as well as the Ck[1] prescaler frequencies.
-Selecting PWM
-Selecting Ck[16] output on PB[2] with bit PB32kHzOut in register OPTFSelPB
-Selecting Ck[11] output on PB[1] with bit PB1kHzOut in register OPTFSelPB
-Selecting Ck[1 ]
6.5 Port B Registers
Table 6.5.1 Register RegPBData
* : Direct read on the port B terminal (not the internal register)
Table 6.5.2 Register RegPBCntl
Table 6.5.3 Option Register OPTFSelPB
Table 6.5.4 Option Register OPTNoPdPB
Table 6.5.5 Option Register OPTNchOpDPB
Copyright © 2005, EM Microelectronic-Marin SA
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
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 output
R
NchOpDPB[3]
NchOpDPB[2]
NchOpDPB[1]
NchOpDPB[0]
InpResSleep
PB32kHzOut
PBIOCntl[3]
PBIOCntl[2]
PBIOCntl[1]
PBIOCntl[0]
PB1kHzOut
NoPdPB[3]
NoPdPB[2]
NoPdPB[1]
NoPdPB[0]
output on PB[3] with bit PWMOn in register RegPresc and running the counter.
PB1HzOut
PBData[3]
PBData[2]
PBData[1]
PBData[0]
output on PB[0] with bit PB1HzOut
Name
Name
Name
Name
Name
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
in register OPTFSelPB
20
Reset from sleep with port A
Nch. Open Drain on PB[3]
Nch. Open Drain on PB[2]
Nch. Open Drain on PB[1]
Nch. Open Drain on PB[0]
Ck[16] output on PB[2]
Ck[11] output on PB[1]
PB[3] input and output
PB[2] input and output
PB[1] input and output
PB[0] input and output
No pull-down on PB[3]
No pull-down on PB[2]
No pull-down on PB[1]
No pull-down on PB[0]
Ck[1] output 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
www.emmicroelectronic.com
EM6521

Related parts for em6521