MC68HC05L28B MOTOROLA [Motorola, Inc], MC68HC05L28B Datasheet - Page 67
![no-image](/images/no-image-200.jpg)
MC68HC05L28B
Manufacturer Part Number
MC68HC05L28B
Description
Flexible general-purpose microcomputer
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
1.MC68HC05L28B.pdf
(156 pages)
- Current page: 67 of 156
- Download datasheet (621Kb)
6.2.4
‘Output compare’ is a technique that may be used, for example, to generate an output waveform,
or to signal when a specific time period has elapsed, by presetting the output compare register to
the appropriate value. There are two output compare registers – OC1 and OC2. All the bits are
readable and writable and are not altered by the timer hardware or reset. If the compare function
is not needed, the two bytes of the output compare register can be used as storage locations.
6.2.4.1 Output compare register 1
The 16-bit output compare register 1 is made up of two 8-bit registers at locations $22 (MSB) and
$23 (LSB). The contents of the output compare 1 register are compared with the contents of the
free-running counter once every four internal processor clock cycles. If a match is found, the output
compare 1 flag (OC1F) in the timer status register is set and the output level 1 (OLVL1) bit is
clocked to the TCMP1 pin. The output compare 1 register values and the output level 1 bit should
be changed after each successful comparison to establish a new elapsed timeout. An interrupt can
also accompany a successful output compare provided the corresponding interrupt enable bit
(OC1IE) is set.
After a processor write cycle to the output compare register 1 containing the MSB ($22), the output
compare function is inhibited until the LSB ($23) is also written. The user must write both bytes
(locations) if the MSB is written first. A write made only to the LSB will not inhibit the compare
function.
The processor can write to either byte of the output compare register 1 without affecting the other
byte. The output level 1 bit (OLVL1) is clocked to the output level 1 register whether the output
compare 1 flag (OC1F) is set or clear. The minimum time required to update the output compare 1
register is a function of the program rather than the internal hardware. Because the output
compare 1 flag and the output compare 1 register are not defined at power on, and not affected by
reset, care must be taken when initialising output compare functions with software. The following
procedure is recommended:
MC68HC05L28
Output compare high 1 (OCH1)
Output compare low 1 (OCL1)
1) write to output compare high 1 to inhibit further compares;
2) read the timer status register to clear OC1F (if set);
3) write to output compare low 1 to enable the output compare 1 function.
Output compare registers
Address
$0022
$0023
16-BIT PROGRAMMABLE TIMER
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
MOTOROLA
Unaffected
Unaffected
on reset
State
TPG
6-11
6
Related parts for MC68HC05L28B
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MC1723L](/images/manufacturer_photos/0/4/459/motorola_tmb.jpg)
Part Number:
Description:
Motorola, Inc [VOLTAGE REGULATOR]
Manufacturer:
Motorola
Datasheet:
![MPQ1000](/images/no-image3.png)
Part Number:
Description:
6367254 MOTOROLA SC (XSTRS/R F)
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MC1494L](/images/manufacturer_photos/0/4/459/motorola_tmb.jpg)
Part Number:
Description:
MC1494LMotorola, Inc [MONOLITHIC FOUR-QUADRANT MULTIPLIER]
Manufacturer:
Motorola
Datasheet:
![MC1466L](/images/manufacturer_photos/0/4/459/motorola_tmb.jpg)
Part Number:
Description:
MC1466LMotorola, Inc [PRECISION WIDE RANGE VOLTAGE AND CURRENT REGULATOR]
Manufacturer:
Motorola
Datasheet:
![MC145532DW](/images/manufacturer_photos/0/4/459/motorola_tmb.jpg)
Part Number:
Description:
MC145532DWMotorola, Inc [ADPCM Transcoder]
Manufacturer:
Motorola
Datasheet:
![MCR704](/images/no-image3.png)
Part Number:
Description:
Silicon Controlled Rectifiers
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MRF21010](/images/no-image3.png)
Part Number:
Description:
RF Power Field Effect Transistors N-Channel Enhancement-Mode Lateral MOSFETs
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MRF21125S](/images/no-image3.png)
Part Number:
Description:
RF POWER FIELD EFFECT TRANSISTORS
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MRF282S](/images/no-image3.png)
Part Number:
Description:
LATERAL N-CHANNEL BROADBAND RF POWER MOSFETs
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MRF5P20180](/images/no-image3.png)
Part Number:
Description:
RF POWER FIELD EFFECT TRANSISTOR
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MRF8372R1](/images/no-image3.png)
Part Number:
Description:
RF LOW POWER TRANSISTOR NPN SILICON
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![1SMA5921BT3](/images/no-image3.png)
Part Number:
Description:
PLASTIC SURFACE MOUNT ZENER DIODES 1.5 WATTS 3.3-68 VOLTS
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MR2835S](/images/no-image3.png)
Part Number:
Description:
OVERVOLTAGE TRANSIENT SUPPRESSOR
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MTD15N06](/images/no-image3.png)
Part Number:
Description:
TMOS POWER FET 15 AMPERES 60 VOLTS
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet:
![MTD20P03](/images/no-image3.png)
Part Number:
Description:
TMOS POWER FET LOGIC LEVEL 19 AMPERES 30 VOLTS RDS(on) = 0.099 OHM
Manufacturer:
MOTOROLA [Motorola, Inc]
Datasheet: