MC68HC912B32VFU8 Freescale Semiconductor, MC68HC912B32VFU8 Datasheet - Page 140
MC68HC912B32VFU8
Manufacturer Part Number
MC68HC912B32VFU8
Description
Manufacturer
Freescale Semiconductor
Datasheet
1.MC68HC912B32VFU8.pdf
(334 pages)
Specifications of MC68HC912B32VFU8
Cpu Family
HC12
Device Core Size
16b
Frequency (max)
8MHz
Interface Type
SCI/SPI
Program Memory Type
EPROM
Program Memory Size
32KB
Total Internal Ram Size
1KB
# I/os (max)
63
Operating Supply Voltage (typ)
5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
4.5V
On-chip Adc
8-chx10-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 105C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
80
Package Type
PQFP
Lead Free Status / Rohs Status
Not Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC912B32VFU8
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
- Current page: 140 of 334
- Download datasheet (2Mb)
Pulse-Width Modulator (PWM)
11.4.3 Code Listing
INCLUDE 'EQUATES.ASM'
; ----------------------------------------------------------------------
;
; ----------------------------------------------------------------------
;
MAIN:
;
;
;
DONE:
;* --------------------------------------------------------
;*
;* --------------------------------------------------------
TIMERINIT:
;
;
;
;
;
;
140
Subroutine TIMERINIT: Initialize Timer for PWM on OC5
ORG
BSR
BRA
CLR
MOVB
MOVB
MOVB
MOVB
MOVB
MOVW
MOVW
MOVB
RTS
A comment line is deliminted by a semi-colon. If there is no code before
comment, an “;” must be placed in the first column to avoid assembly
errors.
MAIN PROGRAM
$7000
TIMERINIT
DONE
TMSK1
#$0A,TMSK2
#$88,TCTL1
#$A0,TIOS
#$20,OC7M
#$20,OC7D
#$0800,TC7H
#$0400,TC5H
#$80,TSCR
; Equates for all registers
M68HC12B Family Data Sheet, Rev. 9.1
; 16K On-Board RAM, User code data area,
; start main program at $7000
; Subroutine used to initialize the timer:
; Out. comp. chan. using OC7 & OC5,
; no interrupts
; OC7 = PERIOD & OC5 = HIGH TIME of PWM
; Branch to itself, Convinient for Breakpoint
; Disable All Interrupts
; Disable overflow interrupt, disable pull-up
; resistor function with normal drive capability
; and Cntr reset by a succesful OC7 compare,
; Prescaler = sys clock / 4.
; Init. OC5 to Clear ouput line to zero on
; successful compare.
; Select Channel 5 and 7 to act as output compare.
; Initialize OC7 compare to affect OC5 pin(OC7M)
; Enable OC7 to set output compare 5 pin high(OC7D).
; Load TC7 with "PERIOD" of the PWM
; Load TC5 with "HIGH TIME" of the PWM.
; Enable Timer, Timer runs during wait state,
; and while in Background Mode, also clear flags
; normally.
; Return from Subroutine
NOTE
Freescale Semiconductor
Related parts for MC68HC912B32VFU8
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: