gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 67

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
6.2.6 PWM (Pulse Width Modulator)
6.2.6.1 Block Diagram
MiDAS1.1 Family
circuits in PWM is controlled by each control register; PWMCON.
increment until overflow occurs. To enable the PWM waveform output to P0.6, you set PWMCON[7] to
“1”. And to enable the PWM waveform output to P0.0, you set ALTSEL[4] to “1”. To start the counter
and enable the PWM block, you set PWMCON[0] to "1". If the counter is stopped, it retains its current
count value; when re-started, it resumes counting from the retained count value. When there is a need
to clear the counter you set PWMCON[0] to "0". To the value of the counter, set the clear bit,
PWMCON[1] to “1”.
F
OSC
Figure 6-13 Functional block diagram
The MiDAS1.1 family has one-channel 8-bit PWM circuit and enables two outputs. The operation of
The PWM counter can be used as 8-bit incrementing counters. Under operation, the counters
You can select a clock for the PWM counter by set PWMCON[6:4]. Clocks which you can select are
/128 F
OSC
/64, F
OSC
7
(1/2/4/8/16/32/64/128)
8-bit Buffer
/32, F
6
PWMD
PWM Counter
5
Clock Divide
F
PWM
OSC
4
F
/16, F
OSC
3
8-bit
2
OSC
Comparator
1
/8, F
0
Page 67 of 211
OSC
Overflow
/4, F
Clear
PWMCON[6:4]
PWM Clock to ADC
Set
OSC
Generation
/2, and F
Pulse
PWM
OSC
PWM00
P0SEL
(except for F
/1.
OSC
P0.6
P0.0
/1)

Related parts for gc80c510