MC68HC912B32CFU8 Freescale Semiconductor, MC68HC912B32CFU8 Datasheet - Page 140

no-image

MC68HC912B32CFU8

Manufacturer Part Number
MC68HC912B32CFU8
Description
IC MCU 32K FLASH 8MHZ 80-QFP
Manufacturer
Freescale Semiconductor
Series
HC12r
Datasheet

Specifications of MC68HC912B32CFU8

Core Processor
CPU12
Core Size
16-Bit
Speed
8MHz
Connectivity
SCI, SPI
Peripherals
POR, PWM, WDT
Number Of I /o
63
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Eeprom Size
768 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
80-QFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC912B32CFU8
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68HC912B32CFU8
Manufacturer:
FREESCALE
Quantity:
20 000
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 MC68HC912B32CFU8