mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 288
![no-image](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_sml.jpg)
mc9s12hz256v2
Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1.MC9S12HZ256V2.pdf
(692 pages)
- Current page: 288 of 692
- Download datasheet (4Mb)
Chapter 9 Motor Controller (MC10B8CV1)
;------------------------------------------------------------------------------------------
;global motor controller init
;------------------------------------------------------------------------------------------
GLB_INIT: MOVB
;------------------------------------------------------------------------------------------
;motor controller startup
;------------------------------------------------------------------------------------------
STARTUP:
MAIN:
MN0:
TIM_SR:
NEW_CFG:
SHUTDOWN: MOVB
LOOP
NEW_SEQ:
END_SR:
288
MOVB
MOVW
MOVW
MOVW
MOVW
MOVW
MOVB
LDAA
ANDA
BEQ
JSR
TST
BEQ
JSR
BRA
LDX
LDAA
ANDA
BNE
LDX
BEQ
LDD
STD
DEX
DEX
LDD
STD
BRA
MOVW
MOVW
LDAA
DECA
BNE
MOVW
MOVW
LDX
STX
MOVB
RTS
#$0000,MCCTL0
#$0000,MCCTL1
#$D0D0,MCCC0
#$0000,MCPER_HI
#$0000,MCDC0_HI
#$0000,MCDC1_HI
#MCPERIOD,MCPER_HI
#$80,TSCR1
PORTB
#$01
MN0
TIM_SR
TFLG2
MAIN
TIM_SR
MAIN
TEMP_X
PORTB
#$01
SHUTDOWN
TEMP_X
NEW_SEQ
DTYDAT,X
MCDC0_HI
DTYDAT,X
MCDC1_HI
END_SR
#$00,TSCR1
#$0000,MCDC0_HI
#$0000,MCDC1_HI
#$0000
LOOP
#$0000,MCPER_HI
TABLESIZE,TEMP_X
TEMP_X
TEMP_X
#$80,TFLG2
MC9S12HZ256 Data Sheet, Rev. 2.05
; fMC = fBUS, FAST=0, DITH=0
; RECIRC=0, MCTOIE=0
; dual full h-bridge mode, left aligned,
; no channel delay
; disable motor controller
; define startup duty cycles
; define PWM period
; enable timer
; if PB=0, activate shutdown
; poll for timer counter overflow flag
; TOF set?
; yes, go to TIM_SR
; restore index register X
; if PB=0, enter shutdown routine
; restore index register X
; all mc configurations done?
; load new config’s
; leave sub-routine
; disable timer
; define startup duty cycle
; define startup duty cycle
; ensure that duty cycle registers are
; cleared for some time before disabling
; the motor controller
; define pwm period
; start new tx loop
; save byte counter
; clear TOF
; wait for new timer overflow
Freescale Semiconductor
Related parts for mc9s12hz256v2
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MC14560BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12034AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MPIC2112P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14520BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12026AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC145152P2](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC68HC11A0P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MCM6726DWJ10](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC44355](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC13282AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14519BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14495P1](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![SN74LS796N](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC142100CP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC34014P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: